Question
Nucleo project hung in system memory
Using STM32CubeIde 1.6.0.
Using ST-LINK on NUCLEO-l4r5zi for debug.
- Create a new project selecting NUCLEO-l4r5zi board.
- Build with default settings - able to debug and step through main().
- Add printf("Entering while loop\n") just before final while(1) loop in main. During USB initialization ends up looping in system memory during HAL_Delay(50u) call in USB_SetCurrentMode(). System is locked up.
- Comment out HAL_Delay call. printf outputs "Entering " then ends up in system memory.
- Tried increasing Min_Stack and Min_Heap to 128K, does not make a difference.
- Redirecting STDOUT with int __io_putchar(int ch) does not cause the problem, just adding printf.
Any suggestions for fixes or how to debug this?
