I am new to R7FA6E10F. I am developing a program to communicate with a smartcard via SCI0 interface,It works fine until I start receiving the ATR (0x3B, ...) values sent by the smartcard into the RDR register,sci_smartcard_rxi_isr() doesn't seem to be called.
When I check the ICU Interrupt, it comes up as Pending, but the breakpoint is not working inside sci_smartcard_rxi_isr().
I'm wondering if there are any other settings I need to make besides the ones I attached.
We share the details in the article below. Thanks
Yes, I made a debugging mistake. Specifically, I had set a breakpoint in another part of the code that operates before the smartcard's ATR response, and I was unaware of this condition and kept looking…
Thanks for posting your question online.
You do not need to add any interrupts manually on Interrupts tab or use the ICU in order to enable the UART interrupts. Just select the interrupts that you want on FSP configuration alongside with their priority. Every time one of these interrupts occur, the user defined callback function is called:
Please let us know if you have further questions on this issue.
Hi. Thanks for the quick response. The answer you gave seems to be the interrupt setting when using UART. I want to use SCI0 as Smart Card Interface mode. Can you tell me how to set interrupt in SCI0 Smart Card Interface mode? Thank you.
Have you enabled the receive interrupt in SCR_SMCI register ?
Hi there. I found the cause of my error, thank you for your reply.
Glad that you found the solution. Could you share it so other users can check it too ?
Yes, I made a debugging mistake. Specifically, I had set a breakpoint in another part of the code that operates before the smartcard's ATR response, and I was unaware of this condition and kept looking for a reason why the smartcard's interrupt handler was not breaking. Your first answer, entering the interrupt handler in UART mode, was the hint I needed to find my mistake. I've been struggling with this for about 3 days, so thanks for your help.