cancel
Showing results for 
Search instead for 
Did you mean: 

ST25R3916 initial problem

sahiinbeyza
Associate II

Hi, I am using a customer board with h7. Similarly, I want to read a simple nfc card using the st25r3916 chip. For this, I made the necessary adjustments using RFAL libraries without using the cubeMx ready package.
I have completed the necessary hardware and software processes for SPI, interrupt and IRQ.
Sometimes it completes the initial step successfully, sometimes the ID is wrong (st25r3916ReadRegister) and it gives an error. (In fact, when you look at the mosi line, you can see that something is not right)

sahiinbeyza_0-1744288031132.pngsahiinbeyza_1-1744288036020.png

Mosi keeps changing even though I haven't changed the functions. It doesn't make any sense..

SPI1 Config :

CPOL : Low

CPHA : 2 Edge

I am using pg15 pin for IRQ and spi1 for connections.

NVIC settings:

sahiinbeyza_2-1744288246485.png

1 REPLY 1
Ulysses HERNIOSUS
ST Employee

Hi,

not sure what you mean. Of course when you send data over SPI it will appear on MOSI. Or do you see un-intended toggling? Unfortunately the screen shots don't allow to check/interpret the signals as too coarse. I see some glitches on CS. Likely artifacts - better to twist the cables a bit and enable the glitch filter.

You can also just share the trace files from Saleae.

BR, Ulysses