Questions about the build settings in Mbed Studio

After building software for GR-MANGO in Mbed Studio, the generated BIN file works when written to the target using CMSIS-DAP.
However, when I try to write and debug the ELF file generated during the build to GR-MANGO using e2studio and J-Link debugger, it does not work.
Nevertheless, when I dump the ROM, it is the same as the contents of the BIN file.
I am having trouble understanding why it does not work with the e2studio + J-Link debugger.
Are there different build settings in Mbed Studio for CMSIS-DAP and J-Link?
I would appreciate any advice.

Hi,

I am not familiar with the debugging by Renesas e2studio + Segger J-Link, but you can refer some useful information below:

https://os.mbed.com/teams/Renesas/wiki/Exporting-to-e2studio-with-J_Link-debug#the-way-to-debug

Thank you for your reply.
I have readed the URL you provided, and it mentioned importing the Mbed Studio project into e2studio and building & debugging within e2studio.
However, I would like to debug the ELF file built in Mbed Studio on a debug-only project in e2studio. Is this possible?
Is it impossible to debug the ELF file, which is generated simultaneously with the BIN file for writing to GR-MANGO via CMSIS-DAP, using e2studio and a J-Link debugger?

Please let me add some additional information.

I tried disassembling the ‘Image Entry point: 0x5000403c’ from the map file in e2studio. The code at address 0x5000403c was displayed as .


When executed, it jumps to the address FFFF000Ch.

Why does it show as ? I would appreciate your guidance.

With the J-Link debugger, you can use the ‘Ozone’ application, which allows debugging with an ELF file.
I tried disassembling the ‘Image Entry point: 0x5000403c’ from the map file using this ‘Ozone’ application.


I was able to disassemble it as a BLX mnemonic.

Here, when I perform a Step-In operation, it jumps to __scatterload.

When I perform a Step-In operation, it jumps to the address FFFF000Ch, similar to what happens in e2studio.
image

Why does it jump to the address FFFF000Ch?
I am puzzled by the cause. Could you please enlighten me?

hmm, I have no idea.

Maybe you can test other working example and compare differences.

Or, ask to the gadget Renesas forum:
https://community-ja.renesas.com/gr_user_forum_japanese/f/gr-mango