S32K312 CMU triggers bus fault

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

S32K312 CMU triggers bus fault

988 次查看
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 项奖励
回复
2 回复数

887 次查看
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 项奖励
回复

959 次查看
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 项奖励
回复