I have a bug I'm trying to track down and when the system stops I get the reason = 0x800bca0 <__func__.6453> "chEvtSignalI".
Is it correct to assume that the cause of this error has to do with the call to a chEvtSignalI somewhere?
If so, I have two chEvtSignalI in my code but it is correctly bounded as:
Code: Select all
/**
* @brief MPU6050 external interrupt callback.
*
* @param[in] extp Pointer to EXT Driver.
* @param[in] channel EXT Channel whom fired the interrupt.
*/
void MPU6050cb(EXTDriver *extp, expchannel_t channel)
{
(void)extp;
(void)channel;
if (thread_sensor_read_p != NULL)
{
/* Wakes up the sensor read thread */
chSysLockFromISR();
chEvtSignalI(thread_sensor_read_p, ACCGYRO_DATA_AVAILABLE_EVENTMASK);
chSysUnlockFromISR();
}
}
/**
* @brief HMC5983 external interrupt callback.
*
* @param[in] extp Pointer to EXT Driver.
* @param[in] channel EXT Channel whom fired the interrupt.
*/
void HMC5983cb(EXTDriver *extp, expchannel_t channel)
{
(void)extp;
(void)channel;
if (thread_sensor_read_p != NULL)
{
/* Wakes up the sensor read thread */
chSysLockFromISR();
chEvtSignalI(thread_sensor_read_p, MAG_DATA_AVAILABLE_EVENTMASK);
chSysUnlockFromISR();
}
}This is where I don't quite know what to look for any more.
But for starters, have I interpreted the reason correctly?
Any pointer as to what I should be looking for?
Thanks in advance!