Skip to main content
Explorer II
March 11, 2025
Solved

STM32U5 + ST2525R3916B

  • March 11, 2025
  • 3 replies
  • 654 views

I am currently using STM32U5 + ST25R3196B with STM32CubeMX and X-CUBE-NFC6.

The program is based on the documentation from X-CUBE-NFC6.

Previously, I tested the example on the STM32F4 series, and it worked correctly. However, after migrating to STM32U5, the program does not function as expected.

After tracing, I found that execution stops at the following segment:

截圖 2025-03-11 11.18.21.png

 

Additionally, "BSP_NFC0XCOMM_IRQ_Callback()" is not triggered as expected.

I am aware that EXTI configurations differ between STM32U5 and STM32F4, so I modified the settings as follows:

image (2).png

 

The SPI initialization appears to be correct, but the issue persists. Could you help check if there are any potential issues? Thank you.

    This topic has been closed for replies.
    Best answer by biopunk101

    Thank you all for your replies.

    I have confirmed that the issue was due to an incorrect CS pin configuration. The NUCLEO-L476 and NUCLEO-U545 actually have differences in their pin assignments.

    Below is the correct configuration, which can be used for NUCLEO-U545 + ST25R3916B (X-NUCLEO-NFC08A1).

    截圖 2025-03-13 11.09.17.png

     

    3 replies

    Technical Moderator
    March 11, 2025

    Hi biopunk101,

    which NUCLEO board are you using? To which pins are the button and the IRQ of ST25R3916 connected. I propose you inspect which settings are currently applied on your project vs the actual HW connection.

    I find integrate-nfc08a1-expansion-board-with-stm32-u575zi-q which addresses at least the user button problem.

    BR, Ulysses

    Super User
    March 11, 2025

    Please see How to insert source code - not as images.

     


    @biopunk101 wrote:

    After tracing, I found that execution stops at the following segment:

    截圖 2025-03-11 11.18.21.png


    Where, exactly, in that segment?

    This line:

    AndrewNeil_0-1741698643172.png

    That's waiting for the pin to go high - so have you checked (eg, with a voltmeter) if the pin ever does go high?

    Explorer II
    March 12, 2025

     

    Thanks for your reply and reminder.

    Now, I understand that the button configuration on STM32U5 and F4 is different. I am using the  NUCLEO-U545 to test.

    I also referred to the NUCLEO-L476RG, where the interrupt (INT) is connected to PA0, and I believe it should be the same for NUCLEO-U545.

    However, the ISR is still not working. My current settings are as follows:

    biopunk101_0-1741756435595.png

     

    biopunk101_0-1741764501148.png


    Is there anything else I need to check or modify? Any suggestions would be greatly appreciated.

    biopunk101AuthorAnswer
    Explorer II
    March 13, 2025

    Thank you all for your replies.

    I have confirmed that the issue was due to an incorrect CS pin configuration. The NUCLEO-L476 and NUCLEO-U545 actually have differences in their pin assignments.

    Below is the correct configuration, which can be used for NUCLEO-U545 + ST25R3916B (X-NUCLEO-NFC08A1).

    截圖 2025-03-13 11.09.17.png

     

    Super User
    March 13, 2025