cancel
Showing results for 
Search instead for 
Did you mean: 

I want to send the ST25R3916B nfc tag readings to CAN bus.

NAkku.1
Associate III

I have program for CAN bus and NFC08a1 but when i combine i get several errors. All i want to do is get the reading from the nfc reader and send them on can. does anyone know how to do that?

35 REPLIES 35
Brian TIDAL
ST Employee

Hi,

make sure to keep platformErrorHandle aligned with the error handler function defined in the main.c (i.e. Error_Handler).

The SPI settings are incorrect vs the ST26R3916B Datasheet .:

  •  hspi1.Init.DataSize = SPI_DATASIZE_8BIT; <<<<< 8 bits, not 4 bits
  •  hspi1.Init.CLKPhase = SPI_PHASE_2EDGE; <<<< a clock polarity of 0, a clock phase of 1, 
  • SPI_BAUDRATEPRESCALER_2 looks strange to me. Make sure to not exceed 6Mbps when configuring from STM32CubeMx (likely SPI_BAUDRATEPRESCALER_16 for a system clock `@80MHz)

Rgds

BT

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

ok i get it.

the field led field is very dim and when i put a nfcv the ledv doesn't turn on. it only blinkes like led field

Brian TIDAL
ST Employee

hi,

can you now provide the logic analyzer trace?

rgds

BT

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

yes ofcourse.

Brian TIDAL
ST Employee

Hi,

can you add the IRQ_3916B signal and send to me the salae file so that I can analyze it (I can do nothing with a screen shot).

Thanks

Rgds

BT

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

it wont let me send sal file here.

Brian TIDAL
ST Employee

zip it and send it to me in private message

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

here it is

this one is with irq on channel 4