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?

3 REPLIES 3
gbm
Lead III

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
Lead III

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 smoke escapes your device, put the smoke back in. It'll still work as a conversation piece. If you find my answers useful, click the Accept as Solution button so that way others can see the solution.
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

we dont need to firmware by ourselves, lets talk