Is this normal? CAN bus generates an error frame when waking up.
Here is what I observe:
I have an application running that communicates via the CAN bus. With a certain command via CAN the STM32 (STM32F2xx) is put into sleep mode. Thereby I configure the microcontroller to wake up and get an interrupt when activity is detected on the CAN bus. I wait until the configuration is done successfully by the hardware and then call __WFI().
As soon as a message comes in on the CAN bus the microcontroller also wakes up without problems and does its job perfectly BUT here one thing happens:
Should it be alone on the bus (apart from the sender of course), then the first message that wakes up the MC is answered with a NAK; only on the second repetition (ARQ) the message is answered with an ACK. Almost as if the controller takes too long to wake up.
In the Reference Manual I read that the bxCAN module needs 11 consecutive recessive
bits to synchronize with the CAN after a sleep.
Does this mean that this behavior can be considered normal?
Thanks for your help!
