2024-08-27 12:47 AM
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
2024-08-27 01:17 AM - edited 2024-08-27 01:18 AM
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:
Make sure to have the following PA0 configuration:
And make sure to enable EXTI Line 0 interrupt
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
2024-08-27 04:24 AM
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:
& also i have attached .ioc file here.
2024-08-27 04:44 AM
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:
When reading the identity register 3Fh, the returned value has a wrong value. This causes st25r200CheckChipID() to return an error.
Rgds
BT