STM32F405 canStart/canStop
Posted: Wed Sep 07, 2016 12:58 pm
There is problem with canStop function, this code works corectly:
but this not:
I got panic message at line
and debug stop at :
Code: Select all
canStart(&CAND1, &cancfg500k_36Mhz);
canStart(&CAND2, &cancfg500k_36Mhz);
chThdSleepMilliseconds(500);
canStop(&CAND2);
canStop(&CAND1);but this not:
Code: Select all
canStart(&CAND1, &cancfg500k_36Mhz);
canStart(&CAND2, &cancfg500k_36Mhz);
chThdSleepMilliseconds(500);
canStop(&CAND1);
canStop(&CAND2);I got panic message at line
#if STM32_CAN_USE_CAN2
osalDbgAssert(CAND2.state == CAN_STOP, "CAN2 must be stopped");
and debug stop at :
/* Pointing to the passed message.*/
ch.dbg.panic_msg = reason;