Skip to main content
Visitor II
March 11, 2024
Solved

Stuck on st253916b initialization in RFAL polling demo

  • March 11, 2024
  • 1 reply
  • 1653 views

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. 

dwagner4_3-1710178969404.png

dwagner4_4-1710179000264.png

 

But, I am getting stuck at initialization, specifically at st25r3916CheckChipID().

 

dwagner4_0-1710178554634.png

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):

dwagner4_1-1710178759605.png

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:

dwagner4_2-1710178853126.png

Anywhere else you think I should look?  Thanks.

    This topic has been closed for replies.
    Best answer by Ulysses HERNIOSUS

    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

     

    1 reply

    dwagner4Author
    Visitor II
    March 11, 2024

    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.

    Technical Moderator
    March 12, 2024

    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

     

    dwagner4Author
    Visitor II
    March 14, 2024

    Thank you, as always!