-
Notifications
You must be signed in to change notification settings - Fork 424
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HAL_Delay() causes infinite loop because systick not incrementing on stm32F4 and stm32L4 and stm32G4 boards due to bugs in system_stm32f4xx.c / system_stm32l4xx.c when making new default project running from flash #113
Comments
Hi @beachmiles, Are you flashing using Serial? (Thanks bootloader)? By default the system_stm32f4xx.c template file does not restore the VTOR. In that case systick could not be incremented. |
I am flashing / debugging using a stlink v3 usb programmer. Creating a new project still had this line commented out #define USER_VECT_TAB_ADDRESS |
Dear @beachmiles |
Hi @beachmiles, Thank you your contribution. Actually, the point you raised has already been dealt and fixed internally. The fix will be made available in the frame of a future release. Thank you once more for your contribution. We are looking forward to reading from you again. With regards, |
ST Internal Reference: 116475 |
|
It Work for STM32L496 |
It looks like this is still "In Progress" as of 1/17/2023, it's unfortunate this is the case as I suspect many people across the world will have ripped many hairs out from this bug the past 10+ months. |
Verified this is still a bug in the stm32L496ZG-P on the Nucleo board. |
Dear @fpistm @ALABSTM @RKOUSTM , I verified this is still a bug when creating a new project for a stm32L4 (NUCLEO-L496ZG-P) with the original fix still working except the the 2nd step is no longer needed as the #if defined(USER_VECT_TAB_ADDRESS) line is now in both of the latest system_stm32f4xx.c and system_stm32l4xx.c files. So it looks like ST needs to update these files with this one line fix unless there is a better/different fix in the works. Thanks! |
I didn't like to say this like, out of morality, but as it has wasted a lot of time from developers who trusted developers of cube MicroXplorer, it is a pity that til now there had been no workaround for a line to be uncommented, and a line to be added. |
Currently the lates version for L4 seems to be 1.17.2. The issue is present in this library at least for the STM32L431. |
Hi @beachmiles |
Can confirm this also affected me on an STM32L432, |
Issue also exists on STM32L433CBT6 using STM32CubeIDE 1.12.1, STM32CubeMX version 6.8.1 |
Issue still exists on STM32H743IIT6., CubeIDE Version :- 1.11.2 |
Issue exists with a fresh project built with STM32CubeIDE 1.13.2, STM32CubeMX 6.9.2, targeting STM32G030J6M6. |
Issue persistent with STM32G491RET6, STM32CubeIDE 1.11.0, STM32Cube FW_G4 V1.5.2. Wasted my time checking my board design/soldering because a blank project with a blink and delay was broken. |
Issue persistent with STM32L051R8T6 |
Can confirm this issue is still persistent on STM32G431KBU6, STM32CubeIDE 1.16.0 & STM32Cube FW_G4 V1.6.0 The solution posted here still works... It's been over 2 years, this is a joke right? |
Issue still exists with a fresh project built with STM32CubeIDE 1.16.0, STM32Cube FW_U5 V1.6.0, targeting STM32U545RETxQ. Following fix does not work on this processor... |
Caution
The Issues are strictly limited for the reporting of problem encountered with the software provided in this project.
For any other problem related to the STM32 product, the performance, the hardware characteristics and boards, the tools the environment in general, please post a topic in the ST Community/STM32 MCUs forum.
Describe the set-up
stm32f469VI and stm32f479AI custom board stm32cubeide IDE version 1.8.0 running on windows 10 and stm32cubemx 6.4.0
Describe the bug
A clear and concise description of what the bug is.
Creating a new stm32cubemx project for either of the stm32F4 chips using the stm32cube 1.26.0-1.26.2 drivers causes HAL_Delay to enter infinite loop because the systick timer to not increment and the default systick priority set to 15 instead of 0. Setting systick priority to 0 does not help.
How To Reproduce
Indicate the global behavior of your application project.
Create a new stm32cube project for the stm32f469VI or stm32f479AI (suspect same issue on all stm32F4 chips) using stm32cube 1.26.0-1.26.2 drivers. Insert a HAL_Delay(5) in the while loop.
The modules that you suspect to be the cause of the problem (Driver, BSP, MW ...).
system_stm32f4xx.c
The use case that generates the problem.
Trying to make a stm32cube project.
How we can reproduce the problem.
Make a new stm32cube project for the stm32f469VI or stm32f479AI (suspect same issue on all stm32F4 chips)
Additional context
If you have a first analysis or patch correction, thank you to share your proposal.
Screenshots
If applicable, add screenshots to help explain your problem.
The text was updated successfully, but these errors were encountered: