
The hardware connection diagram is as shown in the following figure
Figure 54. Physical connection for CAN using LS1028ARDB
13.3.3 Compiling the CANopen-app binary for the master node
This section describes the procedure for compiling the CANopen-app binary for the master node, for both LS1021A and LS1028A
platforms.
CANopen application's name is CANopen-app. Perform the steps listed below to compile Canopen-app as linux command to the
target/usr/bin
directory.
1. Configure cross-toolchain on your host environment.
2. Use the commands below:
$ git clone https://github.com/openil/openil.git
$ cd openil # checkout to OpenIL-201904
$ make nxp_ls1021aiot_baremetal_defconfig
# or
$ make nxp_ls1028ardb-64b_defconfig
$ make
3. The generated openil image file is in the
output/images/
directory.
4. Download the
sdcard.img
image file to the SD card:
In U-Boot mode, first run the
tftp
command for downloading
sdcard.img
to the buffer. Then, run the
mmc
command for
downloading the
sdcard.img
to SD card.
NXP Semiconductors
FlexCAN
Open Industrial User Guide, Rev. 1.8, 05/2020
User's Guide
172 / 199