S32K342 SPI interrupt not triggered

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

S32K342 SPI interrupt not triggered

跳至解决方案
13,960 次查看
bbaskii
Contributor II

Hi NXP Team,

I am working on SPI communication with PMIC. SPI interrupts are not triggered when it is not receiving any data or when TX buffer is empty. If anyone faced similar situation and overcome please share the solution to fix the issue.

Thanks & Regards,

bbaskii

0 项奖励
回复
1 解答
13,937 次查看
VaneB
NXP TechSupport
NXP TechSupport

Hi @bbaskii 

Just to be sure, did you enable the SPI interrupt?

If you did it, could you verify if the interrupt is correctly addressed?

 

B.R.

VaneB

在原帖中查看解决方案

0 项奖励
回复
6 回复数
13,838 次查看
bbaskii
Contributor II

Hi VaneB,

Thanks for the reply. I got the linker error after i have enabled the interrupt in EBTresos configuration tool->Platform tab. Please refer it to EBTresos_Platform_Interrupt4.jpg. I have added interrupt configuration and enabled while i have tested. I have given below screenshot to show the method i have followed for enabling the interrupt. But i followed those steps i got the interrupt. Hope this help to analyze further.

Thanks & Regards,

bbaskii

0 项奖励
回复
13,816 次查看
VaneB
NXP TechSupport
NXP TechSupport

Hi @bbaskii 

Normally, It is needed to enable the flag "USING_OS_AUTOSAROS" inside the Base driver. One additional point is how you are defining it inside the Autosar OS.

For example:

ISR name: MCL_FLEXIO_ISR

sys_disableIsrSource(139);

sys_enableIsrSource(139, 7);

sys_registerIsrHandler(139, MCL_FLEXIO_ISR);

where:

139: NVIC Interrupt ID of FLEXIO module
7: The priority

0 项奖励
回复
13,762 次查看
bbaskii
Contributor II
Hi VaneB,
When i enable USING_OS_AUTOSAROS in EBTresos, got multiple error in the tool. We are using EBTresos version 29. But without that we configured the interrupt in ETAS OS and verified few interrupts which are working. Thanks for your support.
0 项奖励
回复
13,906 次查看
bbaskii
Contributor II

Hi VaneB,

Thanks for the reply. My project uses the EBTresos and Autosar OS. I have enabled the interrupt in the EBTresOS inside

Platform->Interrupt Controller and added Lpspi_Ip_LPSPI_2_IRQHandler in Generic Interrupt Settings Tab. I got the below linker error.

Linking main.elf
[elxr] (error #412) unresolved symbols: 2
LPUART_UART_IP_0_IRQHandler from IntCtrl_Ip_Cfg.o
Lpspi_Ip_LPSPI_2_IRQHandler from IntCtrl_Ip_Cfg.o

[elxr] (error) errors during processing
make: *** [makefile:266: main.elf] Error 1

 

Hope this information helps to look further. Please help me to fix the issue.

 

Thanks In Advance,

Regards,

bbaskii

0 项奖励
回复
13,892 次查看
VaneB
NXP TechSupport
NXP TechSupport

Hi @bbaskii 

Could you provide me with more details about how are you configuring the interruptions?

0 项奖励
回复
13,938 次查看
VaneB
NXP TechSupport
NXP TechSupport

Hi @bbaskii 

Just to be sure, did you enable the SPI interrupt?

If you did it, could you verify if the interrupt is correctly addressed?

 

B.R.

VaneB

0 项奖励
回复