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;