Skip to content

Nakakiyo092/usb2canfdv1

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

257 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WeActStudio.USB2CANFDV1

This repository contains documentation and an implementation of a protocol that extends the LAWICEL CAN ASCII protocol with additional commands for CAN FD and new features. The implementation is for the USB2CANFDV1 from WeAct Studio.

URL to this repository: https://github.com/Nakakiyo092/usb2canfdv1

Frequently used commands

  • O[CR] - Opens the CAN channel
  • C[CR] - Closes the CAN channel
  • sddxxyyzz[CR] - Sets custom nominal bit rate
  • yddxxyyzz[CR] - Sets custom CANFD data segment bit rate
  • tiiildd...[CR] - Transmits base frame
  • Tiiiiiiiildd...[CR] - Transmits extended frame
  • diiildd...[CR] - Transmits CANFD base frame (BRS disabled)
  • Diiiiiiiildd...[CR] - Transmits CANFD extended frames (BRS disabled)
  • biiildd...[CR] - Transmits CANFD base frames (BRS enabled)
  • Biiiiiiiildd...[CR] - Transmits CANFD extended frames (BRS enable)
  • V[CR] and v[CR] - Returns firmware version and remote path as a string
  • Z[CR] and z[CR] - Configures reporting mechanism including time stamp and Tx event
  • M[CR] and m[CR] - Configures CAN acceptance filter
  • F[CR] - Returns status flags

[CR] : 0x0D (hex), \r (ascii)

Please find more information in the doc directory or the wiki.

Toolchain

The toolchain in this repository is designed to run on a Windows PC.

How to clone this repository

Please be aware that there are submodules inside usb2canfdv1-fw\Libs.

git clone --recursive https://github.com/Nakakiyo092/usb2canfdv1.git

How to build firmware

Use STM32CubeIDE 1.19.0 with FW_G0 V1.6.2.

How to flash firmware

Use the packager tool and the upgrade tool in the root repository.

Note

After flashing this firmware, there would be an issue upgrading to another firmware. You should force upgrade mode by shorting DIO and GND as described in the root repository. There would be no command to enter firmware upgrade mode.

About

A fan-made firmware for USB2CANFDV1, crafted in homage to LAWICEL’s legacy

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Contributors

Languages

  • C 97.5%
  • Python 2.1%
  • Other 0.4%