cancel
Showing results for 
Search instead for 
Did you mean: 

STM32U5 + ST2525R3916B

biopunk101
Associate

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.

2 REPLIES 2
Ulysses HERNIOSUS
ST Employee

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

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?