Hi.
After last update of the ChbiOS the STM32G474 start to hangs up after cold start. If I press reset - the CPU restarted and worked well. On the previous commit it works fine in any case.
After some experiments I was found that the problem is with RTC and LSE, because If I set the option HAL_USE_RTC to FALSE - all works, or if I set the option STM32_RTCSEL to STM32_RTCSEL_LSI - it is also works.
I was sow that the function stm32_clock_init() was changed. Now LSE inited first, in previous commit it inited just before PLL init. I tried move this init just before PLL init and the problem dissapears. Also it seems that the hang is in function rtc_enter_init() in file hal_rtc_lld.c
STM32G47x hangs up after cold reset Topic is solved
- Giovanni
- Site Admin
- Posts: 14455
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
Re: STM32G47x hangs up after cold reset
HI,
I will look into it, the clock initialization has been reworked but I have not tried yet all the options. Moving in bug reports.
Giovanni
I will look into it, the clock initialization has been reworked but I have not tried yet all the options. Moving in bug reports.
Giovanni
- Giovanni
- Site Admin
- Posts: 14455
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
Re: STM32G47x hangs up after cold reset
Hi,
The problem was that the BD was reset after LSE initialization so LSE was turned off again before RTC initialization, fixed in repository.
Thanks for finding.
Giovanni
The problem was that the BD was reset after LSE initialization so LSE was turned off again before RTC initialization, fixed in repository.
Thanks for finding.
Giovanni
Who is online
Users browsing this forum: No registered users and 4 guests