2023-11-20 05:48 AM
Hey,
I am using the Nucleo-G474RE board with the X-Nucleo-NFC08A1 NFC Shield and use the X Cube NFC6 library in the Cube IDE environment. The initialization seems to work and there are no errors when building the code, but the demoCycle() function doesn´t work. It can only get into the state DEMO_ST_START_DISCOVERY and then breaks out of the switch function and if I comment out the break of the case it reaches DEMO_ST_DISCOVERY but the if statement gets an error and again breaks out of the switch statement. I can´t find the source of the error and don´t know what to do anymore. The gNfcDev seems to be in the wrong state and doesn´t change to the right one. Can someone please help me?
Solved! Go to Solution.
2023-11-20 06:37 AM
2023-11-20 06:12 AM
Hi Judith,
hard to judge on the little information provided. My first shot would be that you didn't select the correct chip on compilation (ST25R3916B), but then rfalInitialize() should be returning an error. Did you enable the ST25R_SELFTEST?
Please detail the error and code you are seeing where it breaks.
BR, Ulysses
2023-11-20 06:26 AM
Hi Ulysses,
in my rfalInitialize() I don´t see the paramater ST25R_SELFTEST. The IDE doesn´t give me an error, but the program fails to detect a tag. In the switch statement of the demoCycle() function for the case DEMO_ST_DISCOVERY the if statement seems to be not true so the function doesn´t even get to the part, where a tag is detected and the UID is read.
2023-11-20 06:37 AM
I don`t know what happend but now it works. Thanks for your help