libhal-google / webtools

A tools to help with calculations for embedded software development, robotics, electrical engineering with the goal of being easy to use, interactive, and sharable,
Apache License 2.0
1 stars 4 forks source link

Add canable.io web serial interface #23

Open kammce opened 11 months ago

kammce commented 11 months ago

Canable is a serial to CAN firmware that allows a user to send and receive can messages on a can bus. A nice web tool to capture messages, configure the canable device as well record messages would be a helpful tool for the libhal ecosystem and others as well.

The device used for testing is: https://www.amazon.com/dp/B0BPY5HY6C

To flash it do the following:

  1. git clone the canable repo: git clone https://github.com/normaldotcom/canable-fw.git
  2. Build the binary by running make in the root
  3. Use a jumper to short BO & 3v3 on the canable and plug it into your computer. It should come up as STM32 Bootloader
  4. Run the following command to flash it: sudo dfu-util -d 0483:df11 -c 1 -i 0 -a 0 -s 0x08000000 -D build/canable-9fddea4.bin. Replace build/canable-9fddea4.bin with the name of the file within the build directory.
kammce commented 11 months ago

canable-9fddea4.zip