cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F103: How to switch between CAN and USB?

TSchn.4
Associate

I know that they can not be used at the same time. But how can you switch between CAN and USB at runtime in the same application?

4 REPLIES 4
Uwe Bonnes
Principal II

With sufficient de-and re-initialization it can be done.

Imen.D
ST Employee

Hello @Community member​ ,

Have a look at this FAQ: Concurrent use of USB and CAN with STM32F103.

When your question is answered, please close this topic by choosing Select as Best.

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
klas
Associate

Hi! I know it is old topic but I didn't find any answer how to switch between CAN and USB at runtime.

Does anyone have suggestion or working solution how to do this?

Thanks in advance.

 


@Imen.D wrote:

Hello @Community member​ ,

 

Have a look at this FAQ: Concurrent use of USB and CAN with STM32F103.

 

When your question is answered, please close this topic by choosing Select as Best.

 

Imen


This link is ridiculously helpful - not at all... :D

@klas I guess it's possible with complete init / deinit (probably including turning off the peripheral clock)