S32K342 SPI interrupt not triggered

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

S32K342 SPI interrupt not triggered

Jump to solution
6,257 Views
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 Kudos
Reply
1 Solution
6,234 Views
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

View solution in original post

0 Kudos
Reply
6 Replies
6,143 Views
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 Kudos
Reply
6,121 Views
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 Kudos
Reply
6,067 Views
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 Kudos
Reply
6,211 Views
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 Kudos
Reply
6,197 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @bbaskii 

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

0 Kudos
Reply
6,235 Views
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 Kudos
Reply