Table of Contents
NUCLEO-C092RC
STM32C092RC MCU with 256KB flash and 30KB RAM.
This board and MCU supports CAN FD, see the NUCLEO C071RB for a board and MCU that supports USB.
CAN FD
To attach cables to the CAN FD connector first remove it from the socket and use long nose pliers to depress the buttons to insert cables.
1 CAN HIGH 2 CAN LOW 3 GROUND
Demo
git clone --recursive https://github.com/STMicroelectronics/STM32CubeC0
One demo sends ABCD to the bus at 1 megabits when the user button is pressed.
Makefile
Create a GNU Makefile with EWP.py.
cd STM32CubeC0/Projects/NUCLEO-C092RC/Examples/FDCAN/FDCAN_Classic_Frame_Networking ewp.py -p1 . EWARM/FDCAN_Classic_Frame_Networking.ewp FDCAN_Classic_Frame_Networking > Makefile
Edit the makefile changing FIXME ARCH to cortex-m0 and FPU to soft.
vi Makefile
Compile
make -j 16
Program
openocd -f "interface/stlink.cfg" -c "transport select swd" \
-c "adapter serial 0668FF555748847187011351" -f "target/stm32c0x.cfg" \
-c "program ./FDCAN_Classic_Frame_Networking.bin preverify verify reset exit 0x8000000"
Test
Press user button and dump on Pi.
candump pican pican 444 [2] AB CD
Reply to turn on GREEN LED.
cansend pican 444#ABCD



