Hello for my student project, i need to communicate with an RF chip using SPI. I used the polling method, mentioned in the cookbook examples to build my code. Unfortunately, this is not efficient and i am getting wrong results in continuous run. Is there any examples available on SPI Interrupt non-SDK. I enabled the IER in SPI for RDIE and TDIE, but is a little bit confused regarding the definition of the handler, so i used only RDIE, but it was not working properly. I need to read 2 bytes in the recieve for getting the result. Attached code below for reference. *Sorry its incomplete due to some modifications. Kindly help me.
Hello @Adhi_11,
Unfortunately, we don't have an LPSPI Interrupt non-SDK example.
I don't see any interrupt handler in the project.
Also, it seems like you did not enable the interrupt in NVIC.
You can refer to the UART example:
There is only one handler for each module.
You need to read the flags in that handler.
Regards,
Daniel