Can't debug startup code Reset_Handler [message #1819064] |
Tue, 07 January 2020 00:42  |
Eclipse User |
|
|
|
Hi, maybe somebody can help me with this. I am trying to debug the startup code for my kl25z freedom board. I set a breakpoint at Reset_Handler label which is in file startup_MKL25Z4.S
I am using GDB PEMicro Interface Debugging plugin. In the eclipse 2019-12 Debug Configurations Startup tab, I set breakpoint at Reset_Handler (the label in startup code at address 0x4d0) and uncheck Run on reset checkbox. When starting debugging a new tab is created in the editor with a message:
"Break at address 0x4d0 with no debug information available, or outside of program code"
The code is compiled with debugging information with the -ggdb flag and optimization set to -O0 (no optimatization).
If I set the breakpoint at main, the program debug just fine, I can step through it.
Thanks in advance,
Anthony H.
|
|
|
|
|
|
|
|
Re: Can't debug startup code Reset_Handler [message #1819205 is a reply to message #1819177] |
Thu, 09 January 2020 21:14  |
Eclipse User |
|
|
|
Hi Tauno, thanks for replying again.
Project object file format is ELF (dac_adc_demo.elf)
startup_MKL25Z4.o (startup assembly object file)
I ran arm-none-eabi-objdump --syms startup_MKL25Z4.o I get an output that has a symbol for Reset_Handler. I have attached output file from the command.
Also ran arm-none-eabi-objdump --syms dac_adc_demo.elf > output.symbols
It also has symbol for Reset_Handler. I have attached output file from the command.
Regards,
Anthony H.
|
|
|
Powered by
FUDForum. Page generated in 0.05393 seconds