cancel
Showing results for 
Search instead for 
Did you mean: 

Error with X Cube NFC6 with Nucleo-G474RE and X-Nucleo-NFC08A1

Judith
Associate III

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?

This discussion has been locked for participation. If you have a question, please start a new topic in order to ask your question
1 ACCEPTED SOLUTION

Accepted Solutions
Judith
Associate III

I don`t know what happend but now it works. Thanks for your help

 

View solution in original post

3 REPLIES 3
Ulysses HERNIOSUS
ST Employee

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

Judith
Associate III

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.

Judith
Associate III

I don`t know what happend but now it works. Thanks for your help