debugging problem

I’m with a basic doubt:

I’ve successfully downloaded my binary to the target, but I’d like to debug it with Insight. The problem is that to write the flash with openocd I need a binary, and binaries don’t take debugging information, so how could I debug my program downloaded to the target with openocd?

thanks!

lmariano:
I’m with a basic doubt:

I’ve successfully downloaded my binary to the target, but I’d like to debug it with Insight. The problem is that to write the flash with openocd I need a binary, and binaries don’t take debugging information, so how could I debug my program downloaded to the target with openocd?

thanks!

I don’t use Insight, but I create the FLASH binary file from the ELF file, program the FLASH with that, and then use the ELF file for debugging. The actual code in the FLASH file and the ELF are identical, but the ELF also has the necessary debugger information. That works fine with my setup.

–Dave