cancel
Showing results for 
Search instead for 
Did you mean: 

execute nested functions in RAM on STM32F746

Wlad777
Associate II

Hello, 

I'm trying to get running own external loader for CubeMX compiled with CubeIDE.

I have followed this internet source to set-up envirement but without success. Because the CubeMX plugin doesn't work I tried to debug RAM-execution without CubeMX. By starting directly on target HW, the breakpount setted in Init function was served. But all nested function were not jumped-in at all. That leads to programm crash and therefor the pluging doesn't work inside CubeMX. But Plugin-selection inside CubeMX is possible, because parsing of the plugin is okay.

Please can some one explain what the problem with nested functions when executed from RAM. Thanks to every one.

 

2 REPLIES 2

Not clear exactly what you're describing. 

Calls to sub functions are relative not absolute, so you can't often move a small block of code linked at one address to an entirely different one.

Disassemble the code you're trying to run.

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

Thanks @Tesla DeLorean ,

as follows you find my Disassembling:

before stepinbefore stepin

 

after stepin (debugger remains running)after stepin (debugger remains running)

 

current binary memory detailscurrent binary memory details

 

that remarkable that the addresses are different of eg. the Function HAL_Init in Memory Details and Disassambler. Do you know how to get them equal? I need to run the functions from RAM.