CANopen Slave Documentation
Version 7.00.00
|
The CANopen FD Slave protocol stack for the STM32H735G-DK runs on a bit-rate of 500 kBit/s on interface CAN1. Please make sure that:
For display of the CANopen network state the example uses the LEDs LD1 (green) and LD3 (red), the symbol COS_LED_SUPPORT is configured to 1.
The example project can be built if the following programs are installed:
Please make sure that the value of WIN_TOOLCHAIN_PATH
(for Windows) or UNIX_TOOLCHAIN_PATH
(for macOS / Linux) inside the cmake/toolchain-gcc-<version>.cmake
file is equal to the install path of the GNU Arm Embedded Toolchain.
Create a local build
directory and start the build process within this directory. Make sure to pass the correct toolchain (i.e. GNU Arm Embedded Toolchain) to the CMake process via the parameter -DCMAKE_TOOLCHAIN_FILE
. The following examples assume a GNU Arm Embedded Toolchain version 13.2.1.
For generation of Classical CANopen code use the following build steps:
Under Windows, you may have to add the parameter -G"Unix Makefiles"
to the CMake configuration:
Under Windows, you may have to add the parameter -G"Unix Makefiles"
to the CMake configuration:
The amount of Flash and RAM is given under the following conditions:
Protocol | Memory size Flash | Memory Size RAM |
---|---|---|
Classic CANopen | 21296 | 8688 |
CANopen FD | 23580 | 9328 |
Upon reset, the example will transmit a boot-up message using the identifier 70Bh, representing the configured node-ID 11d.
Writing a value of 100 ms to the heartbeat producer object (1017:00h) shall result in a cycle heartbeat transmission of the device.