cancel
Showing results for 
Search instead for 
Did you mean: 

Wrong entry point

machinist
Associate III
Posted on September 27, 2016 at 12:47

Hello,

I am using TrueStudio for STM My problem is, that when I start debugging the PC (program counter) shows an address of0xf3af48 As this address is somewhere in nomansland the Dissassembly shows ''Failed to execute MI command: -data-disassemble -s 4088350725 -e 4088350997 -- 3 Error message from debugger back end: Cannot access memory at address 0xf3af4804''I entered the ENTRY to point to my reset-function in the linkerscript. Where does this0xf3af4804 come from??? As soon as I want to step into the code the ST-Link crashes (as I would expect). I thought the ENTRY in the linker script is for exactly this purpose. But no matter what I put there the PC always starts at0xf3af48 Anyone had this already? am thank full for any tip.

Failed to execute MI command:
-data-disassemble -s 4088350725 -e 4088350997 -- 3
Error message from debugger back end:
Cannot access memory at address 0xf3af4804
Failed to execute MI command:
-data-disassemble -s 4088350725 -e 4088350997 -- 3
Error message from debugger back end:
Cannot access memory at address 0xf3af4804

2 REPLIES 2
slimen
Senior
Posted on September 29, 2016 at 13:59

Hello,

I think this issue is related to your build environment or RAM access.

Maybe you should look at the linker script and other settings.

Regards

Posted on September 29, 2016 at 17:30

The vector table is what defines the execution entry point. You'd need to inspect the vector table entries for the Initial SP and PC. Inspect the .MAP to confirm its correct placement.

You would perhaps want to disable ''run to main()'' options in the debugger and step the code from the Reset_Handler on forward.

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..