cancel
Showing results for 
Search instead for 
Did you mean: 

configuration of ST25R100 chip with STM32C031C6T6 microcontroller in STM32cube IDE

Hitesh_Pandey
Associate III

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 discussion has been locked for participation. If you have a question, please start a new topic in order to ask your question
17 REPLIES 17

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: Design 1.png 

Regards,

Hitesh Pandey

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

WhatsApp Image 2024-09-16 at 3.08.45 PM (1).jpegWhatsApp Image 2024-09-16 at 3.08.45 PM.jpegWhatsApp Image 2024-09-16 at 3.08.44 PM.jpegWhatsApp Image 2024-09-16 at 3.08.42 PM.jpeg

 

regards,

Hitesh

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

WhatsApp Image 2024-09-18 at 3.20.53 PM (2).jpegWhatsApp Image 2024-09-18 at 3.20.53 PM (1).jpegWhatsApp Image 2024-09-18 at 3.20.53 PM.jpeg

Hi Ulysses,

I have a 2 channel oscilloscope so i have attached here snippets.

 

regards,

Hitesh

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:

SPI_IC_ID.png

(Here 1us/div, BF being Read reg 3F: IC Identity).

BR, Ulysses

WhatsApp Image 2024-09-20 at 12.24.45 PM (1).jpegWhatsApp Image 2024-09-20 at 12.24.45 PM.jpeg

WhatsApp Image 2024-09-18 at 3.20.53 PM (1).jpeg  

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

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