How majerle/canopenstm32 works
This repository provides CANopenNode-based STM32 demos, including a legacy STM32H735G-DK FDCAN implementation in bare-metal and FreeRTOS variants. The documented workflow initializes the board and CANopen node, configures CANopen services such as PDO, then processes communication and application work. The tree omits the main CANopenNode stack and newer examples, so those documented subsystems are represented without invented source paths; connections are limited to README or indexed evidence.
Main entry points: Src/main.c Bare-metal demo · Src/main.c RTOS demo · OD.c Object dictionary · CO_driver_stm32h735g-dk.c CAN driver
Components 14
CANopen demos
- Bare-metal demo
legacy/stm32h7xx_fdcan/Src/main.c - RTOS demo
legacy/stm32h7xx_fdcan_rtos/Src/main.c
CANopen domain
- CANopen stack
- Object dictionary
legacy/source/OD.c - Blank storage
CANopenNode_STM32/CO_storageBlank.c
STM32 platform
- CAN driver
legacy/source/CO_driver_stm32h735g-dk.c - STM32 HAL
legacy/drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_fdcan.h - Board communication
legacy/source/comm_stm32h735g-dk.c - STM32 CANopen port
CANopenNode_STM32/CO_driver_STM32.c
RTOS support
- CMSIS-RTOS2 adapter
legacy/libs/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.c - FreeRTOS kernel
legacy/libs/FreeRTOS/Source/tasks.c
Other components
- Demo user
- CAN network
- Board LEDs / VCP
Connections 17
- Demo user → Bare-metal demo: runs demo
README.md - Demo user → RTOS demo: runs demo
README.md - Bare-metal demo → CANopen stack: initializes and processes
legacy/stm32h7xx_fdcan/Src/main.c - RTOS demo → CANopen stack: initializes and processes
legacy/stm32h7xx_fdcan_rtos/Src/main.c - Bare-metal demo → Object dictionary: uses dictionary
legacy/stm32h7xx_fdcan/Src/main.c - RTOS demo → Object dictionary: uses dictionary
legacy/stm32h7xx_fdcan_rtos/Src/main.c - Object dictionary → CANopen stack: supplies data
- CANopen stack → CAN driver: uses port
- CAN driver → STM32 HAL: uses FDCAN HAL
legacy/source/CO_driver_stm32h735g-dk.c - Bare-metal demo → Board communication: uses communication
legacy/stm32h7xx_fdcan/Src/main.c - RTOS demo → Board communication: uses communication
legacy/stm32h7xx_fdcan_rtos/Src/main.c - CANopen stack → CAN network: communicates over CAN
README.md - Bare-metal demo → Board LEDs / VCP: reports and controls
- RTOS demo → CMSIS-RTOS2 adapter: calls RTOS API
legacy/stm32h7xx_fdcan_rtos/Src/main.c - CMSIS-RTOS2 adapter → FreeRTOS kernel: adapts kernel calls
legacy/libs/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.c - CANopen stack → Blank storage: optional storage
- CANopen stack → STM32 CANopen port: uses STM32 port
README.md