![]() |
CANopen Master Protocol Stack
Version 7.00.02
|
The CANopen FD Master protocol stack for the STM32437I-EVAL runs on a bit-rate of 500 kBit/s on interface CAN2. Please make sure that:
For display of the CANopen network state the example uses the LEDs LD1 (green) and LD3 (red), the symbol COM_LED_SUPPORT is configured to 1.
The example uses Classical CANopen configuration (COM_FD_SUPPORT = 0) as default.
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 compilation in Windows you have to execute following command:
The amount of Flash and RAM is given under the following conditions:
| Symbol | Value |
|---|---|
| COM_NET_MAX | 1 |
| COM_LED_SUPPORT | 1 |
| COM_MGR_INT | 0 |
| COM_MGR_STD_RCV_FIFO_SIZE | 8 |
| COM_MGR_EXT_RCV_FIFO_SIZE | 2 |
| COM_SDO_CLN_FIFO_SIZE | 4 |
| COM_PDO_MAPPING_ENTRIES | 8 |
All other configuration symbols (refer to com_conf.h) are set to the default value.
| Protocol | Memory size Flash | Memory Size RAM |
|---|---|---|
| Classic CANopen | 48100 | 36616 |