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
O[CR]- Opens the CAN channelC[CR]- Closes the CAN channelsddxxyyzz[CR]- Sets custom nominal bit rateyddxxyyzz[CR]- Sets custom CANFD data segment bit ratetiiildd...[CR]- Transmits base frameTiiiiiiiildd...[CR]- Transmits extended framediiildd...[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]andv[CR]- Returns firmware version and remote path as a stringZ[CR]andz[CR]- Configures reporting mechanism including time stamp and Tx eventM[CR]andm[CR]- Configures CAN acceptance filterF[CR]- Returns status flags
[CR] : 0x0D (hex), \r (ascii)
Please find more information in the doc directory or the wiki.
The toolchain in this repository is designed to run on a Windows PC.
Please be aware that there are submodules inside usb2canfdv1-fw\Libs.
git clone --recursive https://github.com/Nakakiyo092/usb2canfdv1.git
Use STM32CubeIDE 1.19.0 with FW_G0 V1.6.2.
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.