co_manager_bm#
Overview#
The CANopen manager demo application demonstrates a CANopen manager on the CANopenNode stack.The application acts as a CANopen manager and manages a CANopen device.
Running the demo#
We need to run this example first, and then run the CANopen device example! When the demo runs, the log would be seen on the terminal like:
==CANopenNode manager example -- Start.==
Allocated 5400 bytes for CANopen objects
CANopenNode - Reset communication...
CANopenNode - Running...
Please select a test case by pressing the up or down key on your keyboard:
****************************************************
* | CANopen Manager | CANopen Device *
****************************************************
* Node-Id | 0x01 | 0x02 *
* BaudRate | 1000K | 1000K *
* State | Operational | Operational *
****************************************************
* Sync Message Counter (1 time/s) | 4 *
****************************************************
* SYNC PDO Data (Per 5 SYNCs) | 0x 7FCCDB5 *
****************************************************
* Event PDO Data (Test case 4) | 0x 2E70E5C *
****************************************************
* Test cases *
****************************************************
* [>] 1. Start CANopen device (NMT Test) *
* [ ] 2. Set device to pre-operational (NMT Test) *
* [ ] 3. Read 'Heartbeat producer time' (SDO Test) *
* [ ] 4. Manually obtain the PDO data (PDO Test) *
****************************************************
* Log *
****************************************************
The command [1] is executed!
Supported Boards#
MIMXRT1180-EVK
Hardware requirements
Mini/micro USB cable
MIMXRT1180-EVK board
Personal Computer
Board settings
The example requires 2 sets of boards, each of them are mounted with the base board. Using a male to male CAN cable to connect the CAN3 instance (J35) between the 2 base boards.
Prepare the Demo
Connect a USB cable between the PC host and the OpenSDA USB on the board.
Open a serial terminal on PC for OpenSDA serial device with these settings:
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Download the program to the target board.
Either press the reset button on your board or launch the debugger in your IDE to begin running the example.
IMX943-EVK
Hardware requirements
Micro USB cable
IMX943-EVK board
JLink Plus
12V~20V power supply
Personal Computer
Board settings
The example requires 2 sets of boards. Connect below pins:
Board1(Manager) <-> Board2(Device)
J17-2(CAN3_H) <-> J17-2(CAN3_H)
J17-3(CAN3_L) <-> J17-3(CAN3_L)
J17-4(GND) <-> J17-4(GND)
Prepare the Demo
Connect 12V~20V power supply and JLink Plus to the board, switch SW1 to power on the board
Connect a micro USB cable between the host PC and the J15 USB port on the target board.
Open a serial terminal with the following settings:
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Download the program to the target board.
Either re-power up your board or launch the debugger in your IDE to begin running the demo.