Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Use first flash sectors for user data?
#2
OK, so the debugger is no completely dead.

The application is loaded starting from sector 2:


Code:
GDB Program Transfer:
***********
done.
EraseFlash - Sector:0x2 Size:0x4000
enabling 32-bit flash writes
WriteFlash - Size: 16384 @ 0x08008000
EraseFlash - Sector:0x3 Size:0x4000
enabling 32-bit flash writes
WriteFlash - Size: 16384 @ 0x0800C000
EraseFlash - Sector:0x4 Size:0x10000
...
Code:
Connected
Loading section .text, size 0x39e78 lma 0x8008000
Loading section .ARM.exidx, size 0x8 lma 0x8041e78
Loading section .data, size 0x214 lma 0x8041e80
Start address 0x8008000, load size 237716


Now when looking in Disassembly window, I can see pc is standing in the Reset_Handler.
I can single step there, BUT, it is executing at wrong address. 
pc is 0x08001B84 when it should be 0x08009b84 (according to the map-file, Reset_Handler is located at 0x08009b84).
I.e. the 0x00008000 offset is missing. 

Why is this happening, when gdb seems to load the program to the correct location?
Reply


Messages In This Thread
Use first flash sectors for user data? - by mri - 17-02-2017, 11:22 AM
RE: Use first flash sectors for user data? - by mri - 17-02-2017, 02:15 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)