2024-03-11 10:44 AM
Hello,
I am trying to port/get running the NFC08A1 RFAL polling demo on the NUCLEO-F072B. I had no issues using L476RG. I am fairly certain I have SPI set up correctly in CubeMX.
But, I am getting stuck at initialization, specifically at st25r3916CheckChipID().
ID is read as 0x18, which is causing it to return false and throw an error. I was taking a look at the SPI traces and MISO (pink) looks not quite as clean as MOSI (blue) (sorry, had to capture using phone camera):
Rise/fall on MISO looks a little slow compared to MOSI. Could this be causing the issue? From the datasheet, it looks like chip ID should come back as 0x31:
Anywhere else you think I should look? Thanks.
Solved! Go to Solution.
2024-03-12 12:51 AM
Hi,
On the scope you can read the 0x31 on falling slopes.
SPI clock is set incorrectly, you need to put at "2 Edge" instead of "1 Edge".
BR, Ulysses
2024-03-11 03:25 PM
Also just to check, I went back and created a new project but for an L476RG, and set up X-CUBE-NFC6 polling demo, and it runs into the same issue. The only version of this demo that has worked for me in the already set up demo included with the RFAL (where the other included projects are AP2P, NDEF, etc). These project files don't use a .ioc file to set up the board, though, so I'm unable to confirm if maybe one of my peripheral settings is causing the issue.
2024-03-12 12:51 AM
Hi,
On the scope you can read the 0x31 on falling slopes.
SPI clock is set incorrectly, you need to put at "2 Edge" instead of "1 Edge".
BR, Ulysses
2024-03-14 12:02 PM
Thank you, as always!