2025-03-11 3:04 AM
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:
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:
The SPI initialization appears to be correct, but the issue persists. Could you help check if there are any potential issues? Thank you.
2025-03-11 5:51 AM
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
2025-03-11 6:11 AM
Please see How to insert source code - not as images.
@biopunk101 wrote:After tracing, I found that execution stops at the following segment:
Where, exactly, in that segment?
This line:
That's waiting for the pin to go high - so have you checked (eg, with a voltmeter) if the pin ever does go high?