2010-03-29 04:24 PM
Reset error condition in CAN?
2011-05-17 04:45 AM
you can not read or write to CAN errors , all errors are managed by internal hardware TX counter/RX counter state machine, check STM32 can controller datasheet.
2011-05-17 04:45 AM
oh, yes. I know that !
Why does the stdlib do it then ? How does one clear error ?2011-05-17 04:45 AM
The only way that I have found so far, is to reset the bxCan module with the APB1 peripheral reset register
RCC_APB1RSTR |= RCC_APB1RSTR_CAN1RST; RCC_APB1RSTR &= ~RCC_APB1RSTR_CAN1RST; Remembert to go to initialization mode first and then reload bitrate etc. after the reset. Cheers / Nicklas