2024-10-16 10:30 AM - edited 2024-10-16 11:21 AM
Hi,
I created this Reset config
The address of Reset_Hnadler () is from a .map file.
As the adress changes with builds, would be great to use function name.
'set $pc=Reset_Handler'
Is that possible ? What language is that 'set $pc ...'
See chapter '3.1.5.6.2 Restart configurations' in 'UM2609 STM32CubeIDE user guide'
(Eventually I'll port the handler from .s to .cpp and place it at a fixed address so that the address never change)
Thanks
Solved! Go to Solution.
2024-10-16 11:15 AM
Yes, it is possible and the code in question works as it is.
Still, I wonder what laguage it is, is it possible to execute some other code/commands/call a script there ?
2024-10-16 11:15 AM
Yes, it is possible and the code in question works as it is.
Still, I wonder what laguage it is, is it possible to execute some other code/commands/call a script there ?
2024-11-07 06:02 AM
@ferro wrote:Still, I wonder what laguage it is, is it possible to execute some other code/commands/call a script there ?
Language is GDB commands. I assume pc is the program counter register, so the dumb IDE thinks you are in the reset handler, while in fact you are nowhere since the MCU isn't running your program yet.
I'm not familiar with GDB commands. I tried the print command and nothing happened, nothing showed in the debugger console. It's all so poorly documented. Hard to find examples.