cancel
Showing results for 
Search instead for 
Did you mean: 

HAL_I2C_Master_Transmit returns Error on open session - X-NUCLEO-NFC01A1

BMróz.1928
Associate

I'm trying to use X-NUCLEO-NFC01A1 with STM32 F429ZI to read data from phone NFC. When I'm trying to open session

HAL_I2C_Master_Transmit(&hi2c1, M24SR_ADDR, (uint8_t*)pBuffer,NbByte, 1)

in function M24SR_SendI2Ccommand (file drv_I2C_M24SR.c) returns HAL_ERROR.

Any ideas why?

Thank you for your help.

1 ACCEPTED SOLUTION

Accepted Solutions
Rene Lenerve
ST Employee

Hi @Bartosz Mróz​ ,

Is there any RF Commands while you are trying to communicate with the M24SR?

Are you sure that the F429ZI is correctly configured for the I2C communication : GPIO configuration, clock for peripheral enabled?

Regards.

View solution in original post

1 REPLY 1
Rene Lenerve
ST Employee

Hi @Bartosz Mróz​ ,

Is there any RF Commands while you are trying to communicate with the M24SR?

Are you sure that the F429ZI is correctly configured for the I2C communication : GPIO configuration, clock for peripheral enabled?

Regards.