STM32F103: How to switch between CAN and USB?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-11-09 01:16 AM
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?
- Labels:
-
CAN
-
STM32F1 Series
-
USB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-11-09 01:58 AM
With sufficient de-and re-initialization it can be done.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-11-09 02:33 AM
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
Thanks
Imen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-09-07 04:22 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-09-07 04:32 AM
@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)
