STM32L4R5 Nucleo FreeRTOS Broken
Hi,
The auto generated code does not work.
STM32CubeIDE version 1.7.0
Create a new STM project -> board selector -> NUCLEO-L4R5ZI
Project Name: rtostest
Firmware Package: V1.17.0
Initialize all peripherals with their default mode - Yes
Middleware -> FREERTOS -> CMSIS_V2
Save
Ignore warnings about timebase and newlib, yes to continue
Make
Debug
It gets to line 107 of main.c, MX_USB_OTG_FS_PCD_Init() and does not return. Looping between addresses 0x1fff16d2 to 0x1fff16e4
Stop debugging, open ioc file
Connectivity -> USB_OTG_FS -> Disable
Save, ignore warnings
Make, debug
When it starts the kernel (osKernelStart()), it again goes to looping between addresses 0x1fff16d2 to 0x1fff16e4. A breakpoint in the default task never triggers.
Stop debugging, open ioc file
Middleware -> FREERTOS -> Advanced Settings -> USE_NEWLIB_REENTR Enabled
Save, ignore timebase warning
Same behaviour, looping between addresses 0x1fff16d2 to 0x1fff16e4. A breakpoint in the default task never triggers.
Address the timebase warning by changing the timebase source
System Core -> SYS -> Timebase Source -> TIMXX
Going through every timer in the list, produces the same result - not returning from HAL_Init and looping between addresses 0x1fff16d2 to 0x1fff16e4
I have tried this on 2 different boards and get the same results