Skip to main content
Visitor II
November 20, 2023
Solved

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

  • November 20, 2023
  • 3 replies
  • 995 views

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 topic has been closed for replies.
    Best answer by Judith

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

     

    3 replies

    Technical Moderator
    November 20, 2023

    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

    JudithAuthor
    Visitor II
    November 20, 2023

    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.

    JudithAuthorAnswer
    Visitor II
    November 20, 2023

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