!ACHTUNG! READ FIRST COPYRIGHT ISSUE
Target hardware: NUCLEO-H743ZI2 board
Pinout:
PIN/PINS | DESCRIPTION |
---|---|
PD0/PD1 | CAN1 RX/TX |
PB12/PB6 | CAN2 RX/TX |
PA11/PA12 | USB FS DM/DP |
Works with PEAK PCAN-View in Windows
Before connecting the device to the USB port, the following must be done in the PCAN-View window:
- All transmissions must be disabled.
- PCAN-View program must be disconnected from PCAN hardware.
Otherwise for unknown reasons there is a failure in USB connection.
Inside pcan_protocol_process_data() function fields pmsg->size and pmsg->type are zero.
Toolchain: GNU Arm Embedded Toolchain
It is possible to build firmware with STM32CubeIDE project (I used version 1.12.1) or make.
Limitations.
- Clock Frequency must be 80 MHz.
- Error Generator does not work.
WTFPL