Skip to main content
Graduate
September 3, 2024
Solved

Possible bug in ST25NFC_Embedded_Lib_ST25R3911B_1.6.0

  • September 3, 2024
  • 1 reply
  • 637 views

We use ST25NFC_Embedded_Lib_ST25R3911B_1.6.0 for our current project.

There are some example inside.

In most example in stm32l4xx_hal_msp.c are the following code:

 

GPIO_InitStruct.Pin = GPIO_PIN_All & (!(GPIO_PIN_3));

HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);

 

But & (!(GPIO_PIN_ should be & (~(GPIO_PIN_

Please fix this in next release.

Otherwise an assert inside HAL_GPIO_Init trigger because GPIO_PIN_All & (!(GPIO_PIN_3)) results to 0

Do you ever test your code with assert_param() enabled?

    This topic has been closed for replies.
    Best answer by Brian TIDAL

    Hi,

    thanks for reporting again this error (see also https://community.st.com/t5/st25-nfc-rfid-tags-and-readers/possible-bug-in-st25nfc-embedded-lib-st25r3911b-1-5-0/td-p/649036).

    I've added this in the list of fix for next release.

    Sorry again for the inconvenience.

    Rgds

    BT

     

     

    1 reply

    Technical Moderator
    September 3, 2024

    Hi,

    thanks for reporting again this error (see also https://community.st.com/t5/st25-nfc-rfid-tags-and-readers/possible-bug-in-st25nfc-embedded-lib-st25r3911b-1-5-0/td-p/649036).

    I've added this in the list of fix for next release.

    Sorry again for the inconvenience.

    Rgds

    BT