cancel
Showing results for 
Search instead for 
Did you mean: 

configuration of ST25R100 chip with STM32C031C6T6 microcontroller in STM32cube IDE

Hitesh_Pandey
Associate

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

3 REPLIES 3
Brian TIDAL
ST Employee

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

 

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.

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.

 

 

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

 

 

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.