2015-09-27 01:35 PM
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?2018-10-26 10:36 PM
I had this problem too ,On AC6 IDE ,Im using stdperiph_Driver .
2018-10-26 10:41 PM
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 .
2018-10-26 10:41 PM
I did with both for l3g20 and lsm303dlhc .