2023-06-22 01:52 AM - last edited on 2023-06-22 02:12 AM by Peter BENSCH
Hello,
I'm using NFC08A1 Nucleo expansion board. I am trying to interface this board with another renesas microcontroller via SPI.I have connected the expansion board through jumper wires on SPI lines,IRQ,and GND ,VCC.
I'm using RFAL stack for 3916B IC.
Currently I'm facing issue in IC initialisation DemoIni() function, the code is getting stuck at
EXIT_ON_ERR( err, st25r3916Initialize() ); inside rfalInitialize() function. Can you please suggest how this issue can be solved.
Solved! Go to Solution.
2023-06-29 01:24 AM
Hi,
why are you still looking here where we explicitly indicated that the issue is in your SPI driving? The ReadID needs to look something like this:
Of course on ST25R3916B you will need to read 0x31 instead 0x2A!
Regards, Ulysses
2023-06-29 02:57 AM
Hello,
So currently as per the SPI configuration ,
This is the logic analyzer trace
2023-06-29 03:58 AM
Hi,
the shots don't show the complete 0x7f frame ( both bytes until SPI-Enable going high again).
Please also share the trace file as well.
Ulysses
2023-06-29 04:43 AM
HI,
Please find logic analyzer file: nfc_ssb29-6_1.sal, Nfc_29_6_2.sal
2023-06-29 05:06 AM
Hi,
still the same as before, the read chip ID is not correctly sent. Please work on achieving a waveform as shown in my post!
Regards, Ulysses
2023-07-12 05:30 AM
Hello,
I'm able to initialise IC now but not able to get interrupt from IC .Currently I'm porting RFAL code from 3911 to 3916 IC.I have called st25r3916Isr() function inside interrupts ISR but its not coming there.
IS there anything we need to configure for ISR .
2023-07-13 01:28 AM
Hi,
RFAL should be taking care of unmasking the interrupts as needed. In the trace is one of the channels the INT pin?
Best Regards, Ulysses
2023-07-13 02:52 AM
2023-07-14 03:23 AM
Hi,
well if the INT Pin goes high but st25r3916Isr() is not getting called you need to look on the MCU side.
In future also better to provide the actual trace file.
Regards, Ulysses
2023-07-18 10:24 PM
Hello,
Regarding the interrupt issue I was getting system error during initialisation inside st25r3916OscOn() at line 291 in file (st25r3916.c file )as shown in picture so i have disabled this part is there any way this can cause any issue ?