CAN driver - error passive state
If there are no other devices on the bus &mdash; and I'm assuming your "CAN analyser" is completely passive &mdash; then that's your problem. As soon as your device sends a message, it fails to see any acknowledgement of it, and keeps resending until the error counters force it into the error passive state.

A functional CAN bus always has to have at least two active devices on it.