cancel
Showing results for 
Search instead for 
Did you mean: 

failed to use L3GD20 with STM32F3 discovery and keil

d4ng3r09
Associate II
Posted on September 27, 2015 at 22:35

Hi,

I am trying to use stm32F3 discovery gyroscope with keil  MDK.I used the template project provided by st and added the gyroscope head and .c file to the project.Unfortunately, when i build it i get this error: ''Undefined symbol L3GD20_TIMEOUT_UserCallBack (referred from stm32f3_discovery_l3gd20.o) ''.

Can you help me please?
3 REPLIES 3
TinLethax
Associate II

I had this problem too ,On AC6 IDE ,Im using stdperiph_Driver .

TinLethax
Associate II

It's started at line 457 of stm32f3_discovery_l3g20.c

from

#ifdef USE_DEFAULT_TIMEOUT_CALLBACK
/**
  * @brief  Basic management of the timeout situation.
  * @param  None.
  * @retval None.
  */
uint32_t L3GD20_TIMEOUT_UserCallback(void)
{
  /* Block communication and all processes */
  while (1)
  {   
  }
}
#endif /* USE_DEFAULT_TIMEOUT_CALLBACK */

to

//#ifdef USE_DEFAULT_TIMEOUT_CALLBACK
/**
  * @brief  Basic management of the timeout situation.
  * @param  None.
  * @retval None.
  */
uint32_t L3GD20_TIMEOUT_UserCallback(void)
{
  /* Block communication and all processes */
  while (1)
  {   
  }
}
//#endif /* USE_DEFAULT_TIMEOUT_CALLBACK */

Im skiped the "USE_DEFAULT_TIMEOUT_CALLBACK" if-else function .

TinLethax
Associate II

I did with both for l3g20 and lsm303dlhc .