cancel
Showing results for 
Search instead for 
Did you mean: 

Can I send data via CAN bus by reading data from USB using STM32?

Macun
Associate II

I have a GPS module and I use it by connecting it to my computer via USB.

I also want a CAN bus output. 

Can I use the STM32F730R8T6 processor?

How can I introduce the information from the USB to the STM32 processor? Which pins should I use?

After doing this I also need to get a CAN bus output.

Can you help me?

This discussion is locked. Please start a new topic to ask your question.
3 REPLIES 3
gbm
Principal

First, get familiar with USB CDC or HID class - both are supported by CubeMX, choose the one which suits you best.

My STM32 stuff on github - compact USB device stack and more: https://github.com/gbm-ii/gbmUSBdevice
Karl Yamashita
Principal

You can see if this video will get you started https://www.youtube.com/watch?v=oe5JmYYAZy0

It shows how to set the STM32 as a Custom HID device and also use CAN bus.

If a reply has proven helpful, click on Accept as Solution so that it'll show at top of the post.
CAN Jammer an open source CAN bus hacking tool
Javier1
Principal

STM32F730R8T6 is a bit overkill but yes,

MIND the extra transceiver needed : almost everyone forgets they need the canbus transceiver IC when starting with canbus

hit me up in https://www.linkedin.com/in/javiermu%C3%B1oz/