2022-04-26 02:29 PM
I run a generated code from stm32cube IDE with LL drivers, and the debug process stops.
2022-04-26 02:58 PM
Did it hard fault? What do the hard fault registers indicate? Is HSE_VALUE used and set correctly?
Known good hardware or a custom board?
2022-04-26 03:54 PM
HSE is 16Mhz, it is configured correctly in clock
It is a custom hardware.
2022-04-26 05:00 PM
When I change from LL to HAL for RCC, the problem is solved.
I am using cube h7 1.10.0 and cube ide 1.9.0.
2022-04-27 04:53 AM
Hi @Community member ,
Thanks for sharing your finding, that is quite interesting to be investigated by our STM32CubeMX expert @Sara BEN HADJ YAHYA . Could you please share your ioc file to be able to reproduce your issue?
-Amel
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2022-04-27 07:37 AM
2022-04-27 07:38 AM
LL_RCC_SetSysClkSource(LL_RCC_SYS_CLKSOURCE_PLL1);
should be set AFTER
LL_RCC_SetAHBPrescaler(LL_RCC_AHB_DIV_2);
Intermediate AHB prescaler 2 when target frequency clock is higher than 80 MHz