Skip to content

STM32: CAN Reset() #4396

@chrissnow

Description

@chrissnow

Description

  • Type: Bug

Bug

Target
STM32 (device not important)

Toolchain:
ARM

A call to reset() triggers the CAN peripheral reset bit, however the peripheral itself seems to set the sleep bit when this happens.

This means that CAN cannot be used after a call to reset without manually clearing the sleep bit in the MCR register (CAN_MCR_SLEEP) which the user has no easy way of doing.

Should can_reset() be changed to clear the sleep bit after the reset?

cc @thomasonw

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions