cancel
Showing results for 
Search instead for 
Did you mean: 

CSS is not triggering when HSE fails

load2005
Associate III
Posted on April 25, 2017 at 09:21

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

6 REPLIES 6
Imen.D
ST Employee
Posted on April 25, 2017 at 11:45

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

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
Posted on April 25, 2017 at 15:57

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=false
Posted on April 27, 2017 at 16:20

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?

Posted on April 27, 2017 at 19:27

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

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
Jeanne Joly
Senior III
Posted on April 28, 2017 at 09:26

Hello

p.a.002

,

I would inform you that anew patch

http://www.st.com/content/st_com/en/products/development-tools/software-development-tools/stm32-software-development-tools/stm32-configurators-and-code-generators/stm32cubemx.html

V 4.1is available to fix this issue.

Sorry for any inconvenience this may cause you.

BR. Eric

load2005
Associate III
Posted on August 25, 2017 at 14:03

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