STM32 CAN

From Stm32World Wiki
Revision as of 13:03, 22 December 2023 by Lth (talk | contribs)
Jump to navigation Jump to search

Introduction

Most STM32 MCUs are equipped with one or more CAN peripherals.

Loopback Example

CubeMX Config

The clock is configured to maximum speed using the external crystal:

Can loopback example clock.png

Notice the APB1 bus is running at 42 MHz. The CAN peripherals are connected to this bus.

Can loopback example pinout.png

We can now configure the CAN1 periopheral:

Can loopback example can1.png Can loopback example can nvic.png

Miscellaneous Links

To be added