Skip to main content
Visitor II
March 2, 2021
Solved

SPI interface for STM32L476VG

  • March 2, 2021
  • 185 replies
  • 63548 views

STM32L476VG is the MCU we are interfacing with ST25R3911B using SPI.

what we have understood from some search is that we need RFAL (abstraction layer) to interface with RF HAL.

Then once we integrate RFAL and RF HAL in our system workbench(ac6) project we need to build the integration then use SPI calls to read the register from RFID reader ST25R3911B

we wanted to use ISO-14443A standard to be configured and read the values.

where do we get the basic RFAL work space or code flow so that we shall use in our current project?

Kindly guide us and let us know are we in right path?

    This topic has been closed for replies.
    Best answer by Brian TIDAL

    Hi,

    X-CUBE-NFC5 package provides an NFC polling demo using the RFAL and running on NUCLEO-L476RG (MCU board) + X-NUCLEO-NFC05A1 (ST25R3911B expansion board). It can be a good starting point for a project based on SYM32L476VG.

    Rgds

    BT

    185 replies

    Technical Moderator
    May 21, 2021

    Hi Ravi

    feel free to try and to share the result

    Rgds

    BT

    RShiv.1Author
    Visitor II
    May 21, 2021

    Hi BT,

    I am getting succeeded message and thereafter no msg....yes we will share the result no probelm..let me know so that I can provide you..

    we atleast want to see this working in disco board so that we shall connect to our customized board and move on...any other means like skype or anything to talk to you..let me know.

    rgrds

    Ravi

    RShiv.1Author
    Visitor II
    May 21, 2021

    Hi BT,

    its been a great help talking to you ..you have supported us all along..any info so that we can move from here let me know.

    Thanks

    Ravi

    Technical Moderator
    May 21, 2021

    Hi,

    are you sure you have connected the proper pin on the X-NUCLEO-NFC05A1 side (i.e. CN8 pin 1)? Do you see the interrupt when probing with a scope?

    do you see the interrupt falling on MCU side?

    Rgds

    BT

    RShiv.1Author
    Visitor II
    May 21, 2021

    Hi BT,

    Yes we are sure we have connected to CN8 pin1 ..attaching the pics for your reference..

    No interrupt seen when probing in scope..on the MCU side and also on the CN8.

    regards

    Ravi

    RShiv.1Author
    Visitor II
    May 21, 2021

    Hi BT,

    attaching for PA3 and PA5

    RShiv.1Author
    Visitor II
    May 21, 2021

    Hi BT,

    attaching for PA4 ,PA2and PA6.

    regards

    Ravi

    RShiv.1Author
    Visitor II
    May 21, 2021

    Hi BT,

    let me know if these connections are fine.

    regards

    Ravi

    Technical Moderator
    May 21, 2021

    Hi,

    disconnect the ST25R3911B IRQ pin from the STM32L476VG-DISCO board and probe the IRQ on the X-NUCLEO-NFC05A1 with a scope (CN8 pin 1) : when resetting the MCU, you should see a falling interrupt just after few SPI exchanges following the MCU reset.

    Do you see the interrupt?

    Rgds

    BT

    RShiv.1Author
    Visitor II
    May 21, 2021

    Hi BT,

    No we are not seeing any activity after removing PA3 and connecting to CN8 pin 1 on the NFC side.

    regards

    Ravi