cancel
Showing results for 
Search instead for 
Did you mean: 

Stuck on st253916b initialization in RFAL polling demo

dwagner4
Associate III

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 discussion has been locked for participation. If you have a question, please start a new topic in order to ask your question
1 ACCEPTED SOLUTION

Accepted Solutions

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

 

View solution in original post

3 REPLIES 3
dwagner4
Associate III

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.

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

 

Thank you, as always!