cancel
Showing results for 
Search instead for 
Did you mean: 

Trouble with stsw-m24sr001 and STM32F4

anthony2399
Associate
Posted on May 05, 2014 at 15:37

Hello,

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  &sharpdefine 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 ?

Thx

#debug-mode #m24sr
1 ACCEPTED SOLUTION

Accepted Solutions
Anais GALLIGANI
Senior II
Posted on June 02, 2014 at 12:01

Hello,

We indeed have noticed sometimes debug mode activation generates some unexpected effects, due to the fact that real time is no longer in action. But my understanding is the problem you are mentioning no longer happens in run mode. So I also tend to concur with the fact it is due to a question of delay / timing.

Have a nice day,

Best regards,

ST NFC/RFID Dynamic tag support

View solution in original post

2 REPLIES 2
anthony2399
Associate
Posted on May 14, 2014 at 16:12

To illustrate the problem I took 2 captures on the oscillo (see the attach files). I don't understand why this parameter USE_FULL_ASSERT have an incidence on the behavior of the code. Anyone can explain to me ?

Thx

________________

Attachments :

USE_FULL_ASSERT_commented.png : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HzLj&d=%2Fa%2F0X0000000bKP%2F7y4WRVpAIL7L3pII0n6GTXpX0.Zj55yAMBftOB0CD3I&asPdf=false

USE_FULL_ASSERT_defined.png : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HzF8&d=%2Fa%2F0X0000000bKO%2Fut14dYbBuMTWaqlefkn8g9bhMnZYLc8oHBT7ZsJLxdQ&asPdf=false
Anais GALLIGANI
Senior II
Posted on June 02, 2014 at 12:01

Hello,

We indeed have noticed sometimes debug mode activation generates some unexpected effects, due to the fact that real time is no longer in action. But my understanding is the problem you are mentioning no longer happens in run mode. So I also tend to concur with the fact it is due to a question of delay / timing.

Have a nice day,

Best regards,

ST NFC/RFID Dynamic tag support