cancel
Showing results for 
Search instead for 
Did you mean: 

Stuck at HAL_init() with RAM.ld

GCanc.1
Associate II

Hi everyone!

I'm using a nucleo H755 board

I'm basically trying to debug my code from RAM. I already set the linker to use the autogenerated ld file (STM32H755ZITX_RAM.ld). When I try to debug, the application initializes, however It does not go beyond HAL_Init().

Has anyone else had this problem before?

1 ACCEPTED SOLUTION

Accepted Solutions

>>Has anyone else had this problem before?

People just tend to use debuggers, and have Error_Handler() and HardFault_Handler() output actionable data.

At a guess you aren't setting SCB->VTOR correctly in SystemInit() or wherever, to reflect where you've loaded to code.

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

View solution in original post

2 REPLIES 2

>>Has anyone else had this problem before?

People just tend to use debuggers, and have Error_Handler() and HardFault_Handler() output actionable data.

At a guess you aren't setting SCB->VTOR correctly in SystemInit() or wherever, to reflect where you've loaded to code.

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

Man. Thanks a lot. You were right.

I had just to define VECT_TAB_SRAM and it worked fine!