SPI initialization hard faults

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

SPI initialization hard faults

跳至解决方案
3,292 次查看
Pod_GaetanoG
Contributor I

Hi, I am trying to configure my RTD of s32k344 microcontroller and I have a problem with SPI Init process. When I choose LPSPI from 0 to 2, they work well, but from 3 to 5 it goes in hard fault. I also tried to change project, workspace and even board, but it always happens in the same manner.

In attachments you can find the screenshot of the problem above.

Thank you in advance.

0 项奖励
回复
1 解答
3,287 次查看
sobo
Contributor III

Hello,

Have you check if the clock for the LPUART you want to use are enabled ?

MCUModeSettingConf => MCUPeripheral => clock enable

 

Sophie

在原帖中查看解决方案

0 项奖励
回复
2 回复数
3,264 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @Pod_GaetanoG,

Since the CM7 core has very similar fault handling as the CM4, you can refer to this document/example:

https://community.nxp.com/t5/S32K-Knowledge-Base/Fault-handling-on-S32K14x/ta-p/1114447

and identify the type of the fault, find the PC address of the fault, or the bus address in case of a bus fault exception.

 

Thank you,

BR, Daniel

 

0 项奖励
回复
3,288 次查看
sobo
Contributor III

Hello,

Have you check if the clock for the LPUART you want to use are enabled ?

MCUModeSettingConf => MCUPeripheral => clock enable

 

Sophie

0 项奖励
回复