FAQ: Concurrent use of USB and CAN with STM32F103

Document created by Cedric L Moderator on Oct 24, 2017Last modified by Cedric L Moderator on Nov 6, 2017
Version 1Show Document
  • View in full screen mode

Q:

Is it possible to use USB and CAN on STM32F1 devices at the same time?

 

A:

No, it isn't.

 

In low, medium-, high- and XL-density devices, the USB and CAN share a dedicated 512-byte SRAM memory for data transmission and reception, and so they cannot be used concurrently: the shared SRAM is accessed through CAN and USB exclusively.

 

So the USB and CAN can be used in the same application but not at the same time on STM32F1.

 

However, for other (or newer) STM32 families, it is possible to use USB and CAN peripherals concurrently.

2 people found this helpful

Attachments

    Outcomes