S32K312 CMU triggers bus fault

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32K312 CMU triggers bus fault

991 Views
jhuang1
Contributor II

I want to monitor the fxosc via cmu, and I need to test the effectiveness of cmu. I set the fxosc to 20MHz, which the real frequency on the board is 16MHz, it should result in an interrupt, but it result in a bus fault. The picture attached is the setting of cmu, please help me to check the settings.

0 Kudos
Reply
2 Replies

890 Views
CongDang
NXP Employee
NXP Employee

I guess the bus fault comes from you set the fxosc to 20MHz, but the real frequency on the board is 16MHz. On k312, fxosc is source clock of PLL and the difference you made on fxosc makes PLL configuration is invalid.

0 Kudos
Reply

962 Views
jhuang1
Contributor II

I would like to add some information about it, it hit the CMU0_FC interrupt, and every time it triggers the fault because of reading a global variable to an internal variable, as the attached picture show.

0 Kudos
Reply