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
Solved! Go to Solution.
2024-09-11 01:09 AM
Thanks for support regarding the TAG, Brian.
I have checked all pins of SPI. CLK, MOSI, CS and IRQ_ST25R100 are working properly. But data not received on MISO pin. For your reference I have attached here a snippet:
Regards,
Hitesh Pandey
2024-09-12 01:03 AM
Hi Hitesh,
unfortunately the scope shot as shown is unusable. I cannot even see the time basis!
Please show all signals: CS, MOSI, MISO, SCLK together with a timescale which fits your SCLK and show one complete frame.
BR, Ulysses
2024-09-16 02:47 AM
regards,
Hitesh
2024-09-16 03:41 AM
Hi Hitesh,
a bit better, but I would need to see all 4 signals together to judge how the slopes are to each other. E.g. MOSI changing at falling/rising slope. See all 16 clocks of a read of IC identity register. Ideally you have a 4-channel oscilloscope and a logic analyzer.
You could also work with a 2-channel one but then I propose to shoot on 2 channel pairs (MOSI,CLK) and (CS,CLK) and (MISCO,CLK). Zoomed in such that one can nicely see all 16 pulses of the Read IC identity reg.
Ulysses
2024-09-18 03:02 AM
Hi Ulysses,
I have a 2 channel oscilloscope so i have attached here snippets.
regards,
Hitesh
2024-09-18 03:48 AM
Hi Hitesh,
Please: "Zoomed in such that one can nicely see all 16 pulses of the Read IC identity reg." !!!
I presume "M2.50ms" means one box is 2.5ms wide?
Should look always like two signals from below digital trace:
(Here 1us/div, BF being Read reg 3F: IC Identity).
BR, Ulysses
2024-09-20 12:24 AM
Hi Ulysses,
As you see in the above pictures, there is not any response on MISO pin from ST25R100 chip. I have 2 setup of hardware. But in both, there in no response on MISO pin. And i think what data is going through MOSI pin was right.
Thanks,
Hitesh
2024-09-20 12:42 AM - edited 2024-09-20 01:54 AM
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