WeActStudio.USB2CANFDV1
USB2CANFDV1, 1500V ISO, 5Mbps Max
Install / Use
/learn @WeActStudio/WeActStudio.USB2CANFDV1README
WeActStudio.USB2CANFDV1
STM32G0B1CBT6
64Mhz Max,128KB RAM,128KB ROM
CANFD/CAN2.0
1500V isolation, 5Mbps Max, support cangaroo or secondary development. Transceiver part number: SIT1051A&sitcores
Connector
3.81mm 1x3P WJ15EDGK-3.81-3P
SLCAN Protocol Description
Please upgrade to the latest firmware version to support more baud rates
Using the virtual serial, the command is as follows:
O[CR]- Opens the CAN channelC[CR]- Close the CAN channelS0[CR]- Set the nominal bit rate to 10kS1[CR]- Set the nominal bit rate to 20kS2[CR]- Set the nominal bit rate to 50kS3[CR]- Set the nominal bit rate to 100kS4[CR]- Set the nominal bit rate to 125k (default)S5[CR]- Set the nominal bit rate to 250kS6[CR]- Set the nominal bit rate to 500kS7[CR]- Set the nominal bit rate to 800kS8[CR]- Set the nominal bit rate to 1MS9[CR]- Set the nominal bit rate to 83.3kSA[CR]- Set the nominal bit rate to 75kSB[CR]- Set the nominal bit rate to 62.5kSC[CR]- Set the nominal bit rate to 33.3kSD[CR]- Set the nominal bit rate to 5kSxxyy[CR]- Custom nominal bit rate (60/2=30Mhz CAN clock) [xx=seg1(hex,0x02~0xff), yy=seg2(hex,0x02~0x80)]Sddxxyy[CR]- Custom nominal bit rate ([60/div]Mhz CAN clock) [dd=div(hex,0x01~0xff), xx=seg1(hex,0x02~0xff), yy=seg2(hex,0x02~0x80)]Y1[CR]- Set the CANFD data segment bit rate to 1MY2[CR]- Set CANFD data segment bit rate to 2M (default)Y3[CR]- Set the CANFD data segment bit rate to 3MY4[CR]- Set the CANFD data segment bit rate to 4MY5[CR]- Set the CANFD data segment bit rate to 5MYxxyy[CR]- Custom CANFD data segment bit rate (60Mhz CAN clock) [xx=seg1(hex,0x01~0x20), yy=seg2(hex,0x01~0x10)]Yddxxyy[CR]- Custom CANFD data segment bit rate ([60/div]Mhz CAN clock) [dd=div(hex,0x01~0x20), xx=seg1(hex,0x01~0x20), yy=seg2(hex,0x01~0x10)]M0[CR]- Set to normal mode (default)M1[CR]- Set to silent modeA0[CR]- Turn off automatic retransmission (default)A1[CR]- Enable automatic retransmission (not recommended, may crash)tIIILDD...[CR]- Transfer data frame (standard ID) [ID, length, data]TIIIIIIIILDD...[CR]- Transfer data frame (extended ID) [ID, length, data]rIIIL[CR]- Transfer remote frame (standard ID) [ID, length]RIIIIIIIIL[CR]- Transfer remote frame (extended ID) [ID, length]dIIILDD...[CR]- Transmit CANFD standard frames (without BRS enabled) [ID, length, data]DIIIIIIIILDD...[CR]- Transmit CANFD extended frames (without BRS enabled) [ID, length, data]bIIILDD...[CR]- Transmit CANFD standard frames (BRS enabled) [ID, length, data]BIIIIIIIILDD...[CR]- Transmit CANFD extended frames (BRS enable) [ID, length, data]V[CR]- Reads the firmware versionE[CR]- Read the failure stateX[CR]- Enter firmware upgrade mode
[CR] : 0x0D (hex), \r (ascii)
A status statement is returned after the command is sent
- [CR]: transmission successful
- 0x07: transmission failed
Note
The CANFD message length is as follows (in hex):
0-8: Same as standard CAN9: length = 12A: length = 16B: length = 20C: length = 24D: length = 32E: length = 48F: length = 64
cangaroo is located in Tools/cangaroo
The documentation for calculating custom Bitrate Settings is located in Doc/CAN Bitrate Calculate_波特率计算.xlsx
Pin Description
| pin | definition | specification | |:--:|:--:| :--:| |PA0|LED_RXD| Receive indicator, flashing when there is data | |PA1|LED_TXD| Send indicator light, flashing when there is data | |PA2|LED_READY| Status indicator, flashing 0.5S when the CAN port is opened and 1S when is in upgrade mode | |PB9|FDCAN1_TX|FDCAN1 tx | |PB8|FDCAN1_RX|FDCAN1 rx | |PA12|USB_DP|USB 2.0 12Mbps| |PA11|USB_DM|USB 2.0 12Mbps| |PF0|OSC_IN|16Mhz XTAL| |PF1|OSC_OUT|16Mhz XTAL|
Partitioning Notes
| Start address | Partition name | Size | Description | | :-: | :-: | :-: | :-: | |0x08000000|bootloader|26 kbyte| bootloader, character watermark: USB2CANV1| |0x08006800|app|50 kbyte| application | |0x08013000|download|50 kbyte| download partition |
How to compile your own firmware
See Example\Build_You_Own_firmware
SLCAN firmware is open source, see WeActStudio.USB2CANFDV1.SLCAN_Firmware
How to force firmware upgrade mode
When the firmware is brushed dead, short DIO and GND to power on, the blue light is on and then released, and the red light flashes slowly, indicating that is currently in upgrade mode.

How to upgrade firmware
Open Tools/WeActStudio_Upgrade_Tool and follow the prompts.

How to completely empty Flash
Open the STM32CubeProgrammer, connect the SWD interface of the module using STLink, and perform the following operations:

If you need to restore factory Firmware, see the
Firmware/READMEinstructions
Catalog Description
| Directory name | content | |:--:| :--:| |Doc|Datasheet| |Hardware| Hardware development data | |Examples| Software routines | |Tools| Tools|
/*---------------------------------------
- WeAct Studio Official Link
- taobao: weactstudio.taobao.com
- aliexpress: weactstudio.aliexpress.com
- github: github.com/WeActStudio
- gitee: gitee.com/WeAct-TC
- blog: www.weact-tc.cn
---------------------------------------*/
Related Skills
node-connect
353.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
111.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
353.3kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
353.3kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
