AnsweredAssumed Answered

Trouble with stsw-m24sr001 and STM32F4

Question asked by sick.anthony on May 5, 2014
Latest reply on Jun 2, 2014 by ST NFC

I am using your stsw-m24sr001 firmware with a M24SR (from the M24SR matrix antenna) and a STM32F4-discovery with a STm32F407VG.

I have many problems to use the functions of lib_ M24SR.c. When I use the M24SR_Initialization(), the program always stops here in the drv_I2C_M24SR.c :

  while ((!I2C_CheckEvent(M24SR_I2C, I2C_EVENT_MASTER_TRANSMITTER_MODE_SELECTED)) && M24SR_Timeout)/* EV6 */
    if (--M24SR_Timeout == 0) goto Error;

I found by uncommenting  #define USE_FULL_ASSERT    1 in the stm32f4xx_conf.h
I fixed the problem but I don't understand why. I think this could be a question of delay but i'm not sure.

Can you give some details ?