I’m just testing the noIce debugger/programmer and have a question.
I can compile my “hello world” (LED toggle) just fine using gcc-arm. I can also burn this file using openocd just fine.
Life is good.
Now, I would like to debug my file, and when I load noice and load the “bin” file, it’ll show the asm, but not the source…
any correct ways to debug this? Should I not be using the bin file? Now thinking about it, I’ll look at my make file and see if I need to add some debug flags?..
I havn’t used noice, but the “elf” file contains all the debug information. The “bin” file contains just the binary, machine code. So try to load the “elf” into the debugger.
I havn’t used noice, but the “elf” file contains all the debug information. The “bin” file contains just the binary, machine code. So try to load the “elf” into the debugger.
Regards,
Magnus
I use NoICE, and Magnus is, of course, correct. You must use the ELF file to get debugging information for the debugger. There is a small complication concerning NoICE though. The NoICE GUI does not have native support for the ELF file format. You need to pre-process the ELF file with the ELFNOI.EXE program that comes with NoICE. In my setup, I have incorporated that step into my build process, so I had almost forgot about that necessary step.