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
Solved! Go to Solution.
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
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
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
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
Hi @bbaskii
Could you provide me with more details about how are you configuring the interruptions?
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