2017-04-25 12:21 AM
Hello,
I'm using STM32F410RBT6 controller. I have configured it to use HSE with PLL (using cubeMX).
I didn't soldered the quarts to the chip because i want to check that interruupt is generated when HSE fails and the CPU is switched to internal RC.
So i have enabled CSS in CUBE MX also.
The problem that the code hangs in
HAL_RCC_OscConfig
function. It goes to Error_Handler where spins in while(true) cycle. That's strange because CPU should switch to internal RC.How can i check that HSE failed in the code?
Thanks
2017-04-25 02:45 AM
Hi
p.a.002
,Which CubeMx version are you using ?If you are using an old version try to use the latest one 4.1
If you facing this issue with the latest version, please share your .ioc file to check the fails and mention which firmware version you have used.
Imen
2017-04-25 08:57 AM
HEllo Imen, thanks for reply.
I have checked that the version of cube mx is the last.
I have added *.ioc file.
________________ Attachments : external_25.ioc.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HyPR&d=%2Fa%2F0X0000000bBG%2FtJjNbwIHepyDVhFjivu0WlPHYJu4zlRtdlwf_43f.t4&asPdf=false2017-04-27 09:20 AM
I still can't get interrupt from CSS. The quatz is not connected to MCU so it must fail and CSS should generate the interrupt. Do you have any working example of that?
2017-04-27 12:27 PM
Hi
p.a.002
,I have reported your issue internally to our CubeMx team to have more information on this case and we come back to you as soon as we have needed details.
Imen
2017-04-28 12:26 AM
Hello
p.a.002
,I would inform you that anew patch
V 4.1is available to fix this issue.Sorry for any inconvenience this may cause you.
BR. Eric
2017-08-25 05:03 AM
I have updated the Cube MX and there is still a problem. Current cube MX version is 4.0
I have configured the CPU to start from HSE 20MHz. I have enabled the CSS and RCC global interrupt.
The quartz is not soldered to the board.
I see that CPU is switching to HSI but theHAL_RCC_NMI_IRQHandler procedure is not triggered.
I have added the .ioc file to the attach.
________________ Attachments : EGC2_frmw_RTC_INT_RCC_EXT.ioc.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HyTc&d=%2Fa%2F0X0000000b8L%2F01Dn.AreFCeYnfHi3iwrt0ZHLQYh9phOpVZTXGmbBgY&asPdf=false