Skip to main content
Explorer II
August 27, 2024
Solved

configuration of ST25R100 chip with STM32C031C6T6 microcontroller in STM32cube IDE

  • August 27, 2024
  • 1 reply
  • 3100 views

Hello STMicroelectronics Community

I am facing issues in configuration of ST25R100 chip with STM32C031C6T6 microcontroller in STM#@cube IDE. I am using default configuration settings but still facing trouble in initialization.

Can anyone in here who is helping me in configuration of ST25R100 chip with STM32C031C6T6 microcontroller or any other stm32 microcontrollers.@stm32

 

Thanks,

Hitesh Pandey

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

    Hi,

    SPI mode and clock speed and BF command are correct. However I still don't see the complete Read IC Identity read. 8 more clocks are to come. Do you have such a big inter-byte delay?

    Even so if I interpret your second picture correctly then after the BF there are at least two more bytes being read. Our software is not doing such....

    SINGLETXRX option in RFAL should condense the SPI, easier to get an overview.

    MISO seems to be somehow reacting - could be crosstalk or also ST25R100 driving against an MCU pin in output mode. But hard to see at this resolution.

     

    Ulysses

    1 reply

    Technical Moderator
    August 27, 2024

    Hi Hitesh,

    Do you use the X-NUCLEO-NFC09A1 board or a custom board based on ST25R100?

    Do you use the X-CUBE-NFC9 expansion package and has your application be generated through STM32CubeMX (stand alone application or embedded inside STM32CubeIDE)?

    Is the reset PIN of the ST25R100 (D8 on the X-NUCLEO-NFC09A1 arduino connector) properly configured on PA9 as GPIO OUTPUT?

    Is the Interrupt pin of the ST25R100 (A0 on the X-NUCLEO-NFC09A1 arduino connector) properly configured on PA0 as GPIO_EXTI0:

    BrianTIDAL_0-1724746007837.png

    Make sure to have the following PA0 configuration:

    BrianTIDAL_1-1724746053866.png

    And make sure to enable EXTI Line 0 interrupt

    BrianTIDAL_2-1724746078795.png

    To further debug, you can enable ST25R_SELFTEST compilation switch, set a break point in st25r200Initialize and run this function step by step and send me information about where the failure is. Also feel free to share your ioc file.

    Rgds

    BT

     

    Explorer II
    August 27, 2024

    Thanks for your response Brian,

    I'm using a custom board with ST25R100.

    yes, I'm the X-CUBE-NFC9 expansion package.

    The RESET PIN of ST25R100 is connected to ground. As shown in datasheet of ST25R100 chip.

    Interrupt pin of the ST25R100 is properly configured as above.

    but during debug time, code is stuck in  "platformErrorHandle();" function. I have attached a snippet bellow:

    Screenshot 2024-08-27 163042.png

    & also i have attached .ioc file here.

     

     

    Technical Moderator
    August 27, 2024

    Hi Hitesh,

    the SPI configuration is incorrect. See Datasheet §5.8.2 "The ST25R100 has a standard serial peripheral interface with clock polarity of 0, a clock phase of 1"

    The proper configuration should be:

    BrianTIDAL_1-1724758846363.png

    When reading the identity register 3Fh, the returned value has a wrong value. This causes st25r200CheckChipID() to return an error.

    Rgds

    BT