Is it possible to generate CAN errors?

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderator: RoccoMarco

Post Reply
Laurent
Posts: 35
Joined: Mon Mar 25, 2013 9:01 am

Is it possible to generate CAN errors?

Post by Laurent »

Hi

I'm using a STM32F405. I need to generate valid error frames on the CAN bus, but I haven't found anything in the API for that. Is this even possible? I've succeeded to generate acknowledgement errors by using a wrong baudrate, but now I'd like to be able to control when error frames are sent, and what they contain. I don't care if it involves playing with low-level stuff, I just need a working solution.
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: Is it possible to generate CAN errors?

Post by Giovanni »

HI,

I never did that, is this even possible using the register-level interface of the bxCan?

Giovanni
Laurent
Posts: 35
Joined: Mon Mar 25, 2013 9:01 am

Re: Is it possible to generate CAN errors?

Post by Laurent »

To be honest, I have no idea. But after looking at the bxCan registers in the reference manual, I'm not very optimistic. I don't know how errors are handled at low-level, how frames are generated. All this stuff is still a little mystical to me :|
Post Reply