Skip to main content
GCanc.1
Associate II
May 5, 2021
Solved

Stuck at HAL_init() with RAM.ld

  • May 5, 2021
  • 2 replies
  • 1031 views

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?

This topic has been closed for replies.
Best answer by Tesla DeLorean

>>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.

2 replies

Tesla DeLorean
Tesla DeLoreanBest answer
Guru
May 5, 2021

>>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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
GCanc.1
GCanc.1Author
Associate II
May 5, 2021

Man. Thanks a lot. You were right.

I had just to define VECT_TAB_SRAM and it worked fine!