flexcan_loopback_transfer#
Overview#
The flexcan_loopback example shows how to use the loopback test mode to debug your CAN Bus design:
To demonstrates this example, only one board is needed. The example will config one FlexCAN Message Buffer to Rx Message Buffer and the other FlexCAN Message Buffer to Tx Message Buffer with same ID. After that, the example will send a CAN Message from the Tx Message Buffer to the Rx Message Buffer through internal loopback interconnect and print out the Message payload to terminal.
Supported Boards#
EVK9-MIMX8ULP
Hardware requirements
Micro USB cable
MIMX8ULP-EVK/EVK9 board
JLink Plus
5V power supply
Personal Computer
Board settings
No special is needed.
Prepare the Demo
Connect 5V power supply and JLink Plus to the board, switch SW10 to power on the board
Connect a micro USB cable between the host PC and the J17 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 press the reset button on your board or launch the debugger in your IDE to begin running the demo.
Running the demo
When the example runs successfully, following information can be seen on the terminal:
==FlexCAN loopback functional example -- Start.==
Send message from MB8 to MB9
tx word0 = 0x11223344
tx word1 = 0x55667788
Receved message from MB9
rx word0 = 0x11223344
rx word1 = 0x55667788
==FlexCAN loopback functional example -- Finish.==
IMX952LPD5EVK-19
Hardware requirements
Micro USB cable
IMX952-EVK board
JLink Plus
12V~20V power supply
Personal Computer
Board settings
No special is needed.
Prepare the Demo
Connect 12V~20V power supply and JLink Plus to the board, switch SW4 to power on the board
Connect a micro USB cable between the host PC and the J31 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.
Running the demo
When the example runs successfully, following information can be seen on the terminal:
==FlexCAN loopback functional example -- Start.==
Send message from MB8 to MB9
tx word0 = 0x11223344
tx word1 = 0x55667788
Receved message from MB9
rx word0 = 0x11223344
rx word1 = 0x55667788
==FlexCAN loopback functional example -- Finish.==
EVKB-IMXRT1050
Hardware requirements
Mini/micro USB cable
EVKB-IMXRT1050 board
Personal Computer
Board settings
No special settings are required.
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.
Running the demo
Consider special errata 005829 feature, the 1st valid MB should be used as reserved one. The TX MB number will change from 8 to 9, while RX MB number will change from 9 to 10 When the example runs successfully, following information can be seen on the OpenSDA terminal:
==FlexCAN loopback example -- Start.==
Send message from MB9 to MB10
tx word0 = 0x11223344
tx word1 = 0x55667788
Receved message from MB10
rx word0 = 0x11223344
rx word1 = 0x55667788
==FlexCAN loopback example -- Finish.==
MIMXRT1060-EVKB
Hardware requirements
Mini/micro USB cable
MIMXRT1060-EVKB board
Personal Computer
Board settings
No special settings are required.
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.
Running the demo
Consider special errata 005829 feature, the 1st valid MB should be used as reserved one. The TX MB number will change from 8 to 9, while RX MB number will change from 9 to 10 When the example runs successfully, following information can be seen on the OpenSDA terminal:
==FlexCAN loopback example -- Start.==
Send message from MB9 to MB10
tx word0 = 0x11223344
tx word1 = 0x55667788
Receved message from MB10
rx word0 = 0x11223344
rx word1 = 0x55667788
==FlexCAN loopback example -- Finish.==
MIMXRT1170-EVKB
Hardware requirements
Mini/micro USB cable
MIMXRT1170-EVKB board
Personal Computer
Board settings
No special settings are required.
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.
Running the demo
When the example runs successfully, following information can be seen on the OpenSDA terminal:
==FlexCAN loopback example -- Start.==
Send message from MB8 to MB9
tx word0 = 0x11223344
tx word1 = 0x55667788
Received message from MB9
rx word0 = 0x11223344
rx word1 = 0x55667788
==FlexCAN loopback example -- Finish.==
MIMXRT1060-EVKC
Hardware requirements
Mini/micro USB cable
MIMXRT1060-EVKC board
Personal Computer
Board settings
No special settings are required.
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.
Running the demo
Consider special errata 005829 feature, the 1st valid MB should be used as reserved one. The TX MB number will change from 8 to 9, while RX MB number will change from 9 to 10 When the example runs successfully, following information can be seen on the OpenSDA terminal:
==FlexCAN loopback example -- Start.==
Send message from MB9 to MB10
tx word0 = 0x11223344
tx word1 = 0x55667788
Receved message from MB10
rx word0 = 0x11223344
rx word1 = 0x55667788
==FlexCAN loopback example -- Finish.==
FRDM-IMXRT1152
Hardware requirements
Type-C USB cable
FRDM-IMXRT1152 board
Personal Computer
Board settings
No special settings are required.
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.
Running the demo
When the example runs successfully, following information can be seen on the OpenSDA terminal:
==FlexCAN loopback example -- Start.==
Send message from MB8 to MB9
tx word0 = 0x11223344
tx word1 = 0x55667788
Received message from MB9
rx word0 = 0x11223344
rx word1 = 0x55667788
==FlexCAN loopback example -- Finish.==
EVK-MIMX8MP
Hardware requirements
Micro USB cable
EVK-MIMX8M Plus board
J-Link Debug Probe
12V power supply
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect 12V power supply and J-Link Debug Probe to the board, switch SW3 to power on the board
Connect a USB cable between the host PC and the J23 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.
Launch the debugger in your IDE to begin running the demo.
Running the demo
When the example runs successfully, following information can be seen on the terminal:
==FlexCAN loopback example -- Start.==
Send message from MB8 to MB9
tx word0 = 0x11223344
tx word1 = 0x55667788
Received message from MB9
rx word0 = 0x11223344
rx word1 = 0x55667788
==FlexCAN loopback example -- Finish.==
EVK-MIMX8ULP
Hardware requirements
Micro USB cable
MIMX8ULP-EVK/EVK9 board
JLink Plus
5V power supply
Personal Computer
Board settings
No special is needed.
Prepare the Demo
Connect 5V power supply and JLink Plus to the board, switch SW10 to power on the board
Connect a micro USB cable between the host PC and the J17 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 press the reset button on your board or launch the debugger in your IDE to begin running the demo.
Running the demo
When the example runs successfully, following information can be seen on the terminal:
==FlexCAN loopback functional example -- Start.==
Send message from MB8 to MB9
tx word0 = 0x11223344
tx word1 = 0x55667788
Receved message from MB9
rx word0 = 0x11223344
rx word1 = 0x55667788
==FlexCAN loopback functional example -- Finish.==
EVK-MIMXRT1020
Hardware requirements
Mini/micro USB cable
EVK-MIMXRT1020 board
Personal Computer
Board settings
No special settings are required.
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.
Running the demo
Consider special errata 005829 feature, the 1st valid MB should be used as reserved one. The TX MB number will change from 8 to 9, while RX MB number will change from 9 to 10 When the example runs successfully, following information can be seen on the OpenSDA terminal:
==FlexCAN loopback example -- Start.==
Send message from MB9 to MB10
tx word0 = 0x11223344
tx word1 = 0x55667788
Receved message from MB10
rx word0 = 0x11223344
rx word1 = 0x55667788
==FlexCAN loopback example -- Finish.==
Note: To debug in qspiflash, following steps are needed:
Select the flash target and compile.
Set the SW8: 1 off 2 off 3 on 4 off, then power on the board and connect USB cable to J23.
Start debugging in IDE.
Keil: Click “Download (F8)” to program the image to qspiflash first then clicking “Start/Stop Debug Session (Ctrl+F5)” to start debugging.
MIMXRT1024-EVK
Hardware requirements
Mini/micro USB cable
MIMXRT1024-EVK board
Personal Computer
Board settings
No special settings are required.
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.
Running the demo
Consider special errata 005829 feature, the 1st valid MB should be used as reserved one. The TX MB number will change from 8 to 9, while RX MB number will change from 9 to 10 When the example runs successfully, following information can be seen on the OpenSDA terminal:
==FlexCAN loopback example -- Start.==
Send message from MB9 to MB10
tx word0 = 0x11223344
tx word1 = 0x55667788
Receved message from MB10
rx word0 = 0x11223344
rx word1 = 0x55667788
==FlexCAN loopback example -- Finish.==
Note: To debug in qspiflash, following steps are needed:
Select the flash target and compile.
Set the SW8: 1 off 2 off 3 on 4 off, then power on the board and connect USB cable to J23.
Start debugging in IDE.
Keil: Click “Download (F8)” to program the image to qspiflash first then clicking “Start/Stop Debug Session (Ctrl+F5)” to start debugging.
MIMXRT1040-EVK
Hardware requirements
Mini/micro USB cable
MIMXRT1040-EVK board
Personal Computer
Board settings
No special settings are required.
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.
Running the demo
Consider special errata 005829 feature, the 1st valid MB should be used as reserved one. The TX MB number will change from 8 to 9, while RX MB number will change from 9 to 10 When the example runs successfully, following information can be seen on the OpenSDA terminal:
==FlexCAN loopback example -- Start.==
Send message from MB9 to MB10
tx word0 = 0x11223344
tx word1 = 0x55667788
Receved message from MB10
rx word0 = 0x11223344
rx word1 = 0x55667788
==FlexCAN loopback example -- Finish.==
EVK-MIMXRT1064
Hardware requirements
Mini/micro USB cable
EVK-MIMXRT1064 board
Personal Computer
Board settings
No special settings are required.
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.
Running the demo
Consider special errata 005829 feature, the 1st valid MB should be used as reserved one. The TX MB number will change from 8 to 9, while RX MB number will change from 9 to 10 When the example runs successfully, following information can be seen on the OpenSDA terminal:
==FlexCAN loopback example -- Start.==
Send message from MB9 to MB10
tx word0 = 0x11223344
tx word1 = 0x55667788
Receved message from MB10
rx word0 = 0x11223344
rx word1 = 0x55667788
==FlexCAN loopback example -- Finish.==
MIMXRT1160-EVK
Hardware requirements
Mini/micro USB cable
MIMXRT1160-EVK board
Personal Computer
Board settings
No special settings are required.
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.
Running the demo
When the example runs successfully, following information can be seen on the OpenSDA terminal:
==FlexCAN loopback example -- Start.==
Send message from MB8 to MB9
tx word0 = 0x11223344
tx word1 = 0x55667788
Received message from MB9
rx word0 = 0x11223344
rx word1 = 0x55667788
==FlexCAN loopback example -- Finish.==
MIMXRT1180-EVK
Hardware requirements
Mini/micro USB cable
MIMXRT1180-EVK board
Personal Computer
Board settings
No special settings are required.
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.
Running the demo
When the example runs successfully, following information can be seen on the OpenSDA terminal:
==FlexCAN loopback example -- Start.==
Send message from MB8 to MB9
tx word0 = 0x11223344
tx word1 = 0x55667788
Received message from MB9
rx word0 = 0x11223344
rx word1 = 0x55667788
==FlexCAN loopback example -- Finish.==
FRDM-MCXA156
Hardware requirements
Type-C USB cable
FRDM-MCXA156 Board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect the type-C USB cable between the PC host and the USB ports on the board.
Open a serial terminal on PC for the 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 demo.
Running the demo
When the example runs successfully, following information can be seen on the terminal:
==FlexCAN loopback example -- Start.==
Send message from MB1 to MB0
tx word0 = 0x11223344
tx word1 = 0x55667788
Received message from MB0
rx word0 = 0x11223344
rx word1 = 0x55667788
==FlexCAN loopback example -- Finish.==
FRDM-MCXA346
Hardware requirements
Type-C USB cable
FRDM-MCXA346 board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect the type-C USB cable between the PC host and the USB ports on the board.
Open a serial terminal on PC for the 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 demo.
Running the demo
When the example runs successfully, following information can be seen on the terminal:
==FlexCAN loopback example -- Start.==
Send message from MB0 to MB1
tx word0 = 0x11223344
tx word1 = 0x55667788
Received message from MB1
rx word0 = 0x11223344
rx word1 = 0x55667788
==FlexCAN loopback example -- Finish.==
FRDM-MCXE247
Hardware requirements
Type-C USB cable
FRDM-MCXE247 board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect the type-C USB cable between the PC host and the USB ports on the board.
Open a serial terminal on PC for the 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 demo.
Running the demo
When the example runs successfully, following information can be seen on the terminal:
==FlexCAN loopback example -- Start.==
Send message from MB0 to MB1
tx word0 = 0x11223344
tx word1 = 0x55667788
Received message from MB1
rx word0 = 0x11223344
rx word1 = 0x55667788
==FlexCAN loopback example -- Finish.==
FRDM-MCXN236
Hardware requirements
Type-C USB cable
FRDM-MCXN236 board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect the type-c and mini USB cable between the PC host and the USB ports on the board.
Open a serial terminal on PC for the 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 demo.
Running the demo
When the example runs successfully, following information can be seen on the terminal:
==FlexCAN loopback example -- Start.==
Send message from MB0 to MB1
tx word0 = 0x11223344
tx word1 = 0x55667788
Received message from MB1
rx word0 = 0x11223344
rx word1 = 0x55667788
==FlexCAN loopback example -- Finish.==
FRDM-MCXN947
Hardware requirements
Type-C USB cable
FRDM-MCXN947 Board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect the type-c and mini USB cable between the PC host and the USB ports on the board.
Open a serial terminal on PC for the 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 demo.
Running the demo
When the example runs successfully, following information can be seen on the terminal:
==FlexCAN loopback example -- Start.==
Send message from MB0 to MB1
tx word0 = 0x11223344
tx word1 = 0x55667788
Received message from MB1
rx word0 = 0x11223344
rx word1 = 0x55667788
==FlexCAN loopback example -- Finish.==
FRDM-MCXN947T
Hardware requirements
Type-C USB cable
FRDM-MCXN947T Board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect the type-c and mini USB cable between the PC host and the USB ports on the board.
Open a serial terminal on PC for the 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 demo.
Running the demo
When the example runs successfully, following information can be seen on the terminal:
==FlexCAN loopback example -- Start.==
Send message from MB0 to MB1
tx word0 = 0x11223344
tx word1 = 0x55667788
Received message from MB1
rx word0 = 0x11223344
rx word1 = 0x55667788
==FlexCAN loopback example -- Finish.==
FRDM-MCXW71
Hardware requirements
Type-C USB cable
FRDM-MCXW71 Board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect the micro and mini USB cable between the PC host and the USB ports on the board.
Open a serial terminal on PC for the 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 demo.
Running the demo
When the example runs successfully, following information can be seen on the terminal:
==FlexCAN loopback example -- Start.==
Send message from MB1 to MB0
tx word0 = 0x11223344
tx word1 = 0x55667788
Received message from MB0
rx word0 = 0x11223344
rx word1 = 0x55667788
==FlexCAN loopback example -- Finish.==
MCX-W71-EVK
Hardware requirements
Type-C USB cable
MCX-W71-EVK Board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect a USB cable between the host PC and the EVK board J14.
Open a serial terminal on PC for the 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 demo.
Running the demo
When the example runs successfully, following information can be seen on the terminal:
==FlexCAN loopback example -- Start.==
Send message from MB1 to MB0
tx word0 = 0x11223344
tx word1 = 0x55667788
Received message from MB0
rx word0 = 0x11223344
rx word1 = 0x55667788
==FlexCAN loopback example -- Finish.==
IMX95LPD5EVK-19
Hardware requirements
Micro USB cable
IMX95LPD5-EVK board
JLink Plus
12V~20V power supply
Personal Computer
Board settings
No special is needed.
Prepare the Demo
Connect 12V~20V power supply and JLink Plus to the board, switch SW4 to power on the board
Connect a micro USB cable between the host PC and the J31 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.
Running the demo
When the example runs successfully, following information can be seen on the terminal:
==FlexCAN loopback functional example -- Start.==
Send message from MB8 to MB9
tx word0 = 0x11223344
tx word1 = 0x55667788
Receved message from MB9
rx word0 = 0x11223344
rx word1 = 0x55667788
==FlexCAN loopback functional example -- Finish.==
FRDM-IMX95
Hardware requirements
Micro USB cable
FRDM-IMX95 board
JLink Plus
12V~20V power supply
Personal Computer
Board settings
No special is needed.
Prepare the Demo
Connect 12V~20V power supply and JLink Plus to the board, switch SW4 to power on the board
Connect a micro USB cable between the host PC and the J31 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.
Running the demo
When the example runs successfully, following information can be seen on the terminal:
==FlexCAN loopback functional example -- Start.==
Send message from MB8 to MB9
tx word0 = 0x11223344
tx word1 = 0x55667788
Receved message from MB9
rx word0 = 0x11223344
rx word1 = 0x55667788
==FlexCAN loopback functional example -- Finish.==
FRDM-IMX952
Hardware requirements
Micro USB cable
FRDM-IMX952 board
JLink Plus
15V~20V USB Type-C PD power supply
Personal Computer
Board settings
No special is needed.
Prepare the Demo
Connect 15V~20V USB Type-C PD 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 J1 USB Type-C 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.
Running the demo
When the example runs successfully, following information can be seen on the terminal:
==FlexCAN loopback functional example -- Start.==
Send message from MB8 to MB9
tx word0 = 0x11223344
tx word1 = 0x55667788
Receved message from MB9
rx word0 = 0x11223344
rx word1 = 0x55667788
==FlexCAN loopback functional example -- Finish.==
FRDM-IMX937
Hardware requirements
Micro USB cable
FRDM-IMX937 board
JLink Plus
12V~20V power supply
Personal Computer
Board settings
No special is needed.
Prepare the Demo
Connect 12V~20V power supply and JLink Plus to the board, switch SW4 to power on the board
Connect a micro USB cable between the host PC and the J31 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.
Running the demo
When the example runs successfully, following information can be seen on the terminal:
==FlexCAN loopback functional example -- Start.==
Send message from MB8 to MB9
tx word0 = 0x11223344
tx word1 = 0x55667788
Receved message from MB9
rx word0 = 0x11223344
rx word1 = 0x55667788
==FlexCAN loopback functional example -- Finish.==
KW45B41Z-EVK
Hardware requirements
Mini/micro USB cable
KW45B41Z-EVK Board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect the micro and mini USB cable between the PC host and the USB ports on the board.
Open a serial terminal on PC for the 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 demo.
Running the demo
When the example runs successfully, following information can be seen on the terminal:
==FlexCAN loopback example -- Start.==
Send message from MB0 to MB1
tx word0 = 0x11223344
tx word1 = 0x55667788
Received message from MB1
rx word0 = 0x11223344
rx word1 = 0x55667788
==FlexCAN loopback example -- Finish.==
KW47-EVK
Hardware requirements
Type-C USB cable
KW47-EVK Board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect a USB cable between the host PC and the EVK board J14.
Open a serial terminal on PC for the 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 demo.
Running the demo
When the example runs successfully, following information can be seen on the terminal:
==FlexCAN loopback example -- Start.==
Send message from MB1 to MB0
tx word0 = 0x11223344
tx word1 = 0x55667788
Received message from MB0
rx word0 = 0x11223344
rx word1 = 0x55667788
==FlexCAN loopback example -- Finish.==
MCIMX93AUTO-EVK
Hardware requirements
USB Type-C cable
MCIMX93AUTO-EVK board
JLink Plus
12V~20V power supply
Personal Computer
Board settings
No special is needed.
Note
Please run the application in Low Power boot mode (without Linux BSP). The IP module resource of the application is also used by Linux BSP. Or, run with Single Boot mode by changing Linux BSP to avoid resource conflict.
Prepare the Demo
Connect 12V~20V power supply and JLink Plus to the board, switch SW2 to power on the board
Connect a USB Type-C cable between the host PC and the J26 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.
Running the demo
When the example runs successfully, following information can be seen on the terminal:
==FlexCAN loopback functional example -- Start.==
Send message from MB8 to MB9
tx word0 = 0x11223344
tx word1 = 0x55667788
Receved message from MB9
rx word0 = 0x11223344
rx word1 = 0x55667788
==FlexCAN loopback functional example -- Finish.==
MCIMX93-EVK
Hardware requirements
USB Type-C cable
MCIMX93-EVK board
JLink Plus
12V~20V power supply
Personal Computer
Board settings
No special is needed.
Note
Please run the application in Low Power boot mode (without Linux BSP). The IP module resource of the application is also used by Linux BSP. Or, run with Single Boot mode by changing Linux BSP to avoid resource conflict.
Prepare the Demo
Connect 12V~20V power supply and JLink Plus to the board, switch SW301 to power on the board
Connect a USB Type-C cable between the host PC and the J1401 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.
Running the demo
When the example runs successfully, following information can be seen on the terminal:
==FlexCAN loopback functional example -- Start.==
Send message from MB8 to MB9
tx word0 = 0x11223344
tx word1 = 0x55667788
Receved message from MB9
rx word0 = 0x11223344
rx word1 = 0x55667788
==FlexCAN loopback functional example -- Finish.==
MCIMX93W-EVK
Hardware requirements
USB Type-C cable
MCIMX93W-EVK board
JLink Plus
12V~20V power supply
Personal Computer
Board settings
No special is needed.
Note
Please run the application in Low Power boot mode (without Linux BSP). The IP module resource of the application is also used by Linux BSP. Or, run with Single Boot mode by changing Linux BSP to avoid resource conflict.
Prepare the Demo
Connect 12V~20V power supply and JLink Plus to the board, switch SW301 to power on the board
Connect a USB Type-C cable between the host PC and the J1401 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.
Running the demo
When the example runs successfully, following information can be seen on the terminal:
==FlexCAN loopback functional example -- Start.==
Send message from MB8 to MB9
tx word0 = 0x11223344
tx word1 = 0x55667788
Receved message from MB9
rx word0 = 0x11223344
rx word1 = 0x55667788
==FlexCAN loopback functional example -- Finish.==
MCIMX93-QSB
Hardware requirements
USB Type-C cable
MCIMX93-QSB board
JLink Plus
12V~20V power supply
Personal Computer
Board settings
No special is needed.
Prepare the Demo
Connect 12V~20V power supply and JLink Plus to the board, switch SW301 to power on the board
Connect a USB Type-C cable between the host PC and the J1708 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.
Note
Please run the application in Low Power boot mode (without Linux BSP). The IP module resource of the application is also used by Linux BSP. Or, run with Single Boot mode by changing Linux BSP to avoid resource conflict.
Running the demo
When the example runs successfully, following information can be seen on the terminal:
==FlexCAN loopback functional example -- Start.==
Send message from MB0 to MB1
tx word0 = 0x11223344
tx word1 = 0x55667788
Receved message from MB1
rx word0 = 0x11223344
rx word1 = 0x55667788
==FlexCAN loopback functional example -- Finish.==
IMX943-EVK
Hardware requirements
Micro USB cable
IMX943-EVK board
JLink Plus
12V~20V power supply
Personal Computer
Board settings
Connect below pins, J17-2(CAN1_H) <-> J17-3(CAN1_L)
Prepare the Demo
Connect 12V~20V power supply and JLink Plus to the board, switch SW1(SYS_PWR) to power on the board
Connect a micro USB cable between the host PC and the J15(FTDI_DEBUG) 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.
Running the demo
When the example runs successfully, following information can be seen on the terminal:
==FlexCAN loopback functional example -- Start.==
Send message from MB8 to MB9
tx word0 = 0x11223344
tx word1 = 0x55667788
Receved message from MB9
rx word0 = 0x11223344
rx word1 = 0x55667788
==FlexCAN loopback functional example -- Finish.==
MCX-N5XX-EVK
Hardware requirements
Mini/micro USB cable
MCX-N5XX-EVK Board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect the micro and mini USB cable between the PC host and the USB ports on the board.
Open a serial terminal on PC for the 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 demo.
Running the demo
When the example runs successfully, following information can be seen on the terminal:
==FlexCAN loopback example -- Start.==
Send message from MB0 to MB1
tx word0 = 0x11223344
tx word1 = 0x55667788
Received message from MB1
rx word0 = 0x11223344
rx word1 = 0x55667788
==FlexCAN loopback example -- Finish.==
MCX-N9XX-EVK
Hardware requirements
Mini/micro USB cable
MCX-N9XX-EVK Board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect the micro and mini USB cable between the PC host and the USB ports on the board.
Open a serial terminal on PC for the 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 demo.
Running the demo
When the example runs successfully, following information can be seen on the terminal:
==FlexCAN loopback example -- Start.==
Send message from MB0 to MB1
tx word0 = 0x11223344
tx word1 = 0x55667788
Received message from MB1
rx word0 = 0x11223344
rx word1 = 0x55667788
==FlexCAN loopback example -- Finish.==
MCX-W72-EVK
Hardware requirements
Type-C USB cable
MCX-W72-EVK Board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect a USB cable between the host PC and the EVK board J14.
Open a serial terminal on PC for the 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 demo.
Running the demo
When the example runs successfully, following information can be seen on the terminal:
Send message from MB1 to MB0
tx word0 = 0x11223344
tx word1 = 0x55667788
Received message from MB0
rx word0 = 0x11223344
rx word1 = 0x55667788
==FlexCAN loopback example -- Finish.==
FRDM-MCXE31B
Hardware requirements
Micro USB cable
FRDM-MCXE31B Board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect a type-c USB cable between the host PC and the MCU-Link USB port (J13) 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 press the reset button on your board or launch the debugger in your IDE to begin running the demo.
Running the demo
Consider special errata 005829 feature, the 1st valid MB should be used as reserved one. The TX MB number will change from 8 to 9, while RX MB number will change from 9 to 10 When the example runs successfully, following information can be seen on the OpenSDA terminal:
==FlexCAN loopback example -- Start.==
Send message from MB0 to MB1
tx word0 = 0x11223344
tx word1 = 0x55667788
Receved message from MB1
rx word0 = 0x11223344
rx word1 = 0x55667788
==FlexCAN loopback example -- Finish.==
FRDM-MCXE32B
Hardware requirements
Micro USB cable
FRDM-MCXE32B board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect a type-c USB cable between the host PC and the MCU-Link USB port (J13) 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 press the reset button on your board or launch the debugger in your IDE to begin running the demo.
Running the demo
Consider special errata 005829 feature, the 1st valid MB should be used as reserved one. The TX MB number will change from 8 to 9, while RX MB number will change from 9 to 10 When the example runs successfully, following information can be seen on the OpenSDA terminal:
==FlexCAN loopback example -- Start.==
Send message from MB0 to MB1
tx word0 = 0x11223344
tx word1 = 0x55667788
Receved message from MB1
rx word0 = 0x11223344
rx word1 = 0x55667788
==FlexCAN loopback example -- Finish.==
FRDM-MCXA174
Hardware requirements
Type-C USB cable
FRDM-MCXA174 board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect the type-C USB cable between the PC host and the USB ports on the board.
Open a serial terminal on PC for the 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 demo.
Running the demo
When the example runs successfully, following information can be seen on the terminal:
==FlexCAN loopback example -- Start.==
Send message from MB0 to MB1
tx word0 = 0x11223174
tx word1 = 0x55667788
Received message from MB1
rx word0 = 0x11223174
rx word1 = 0x55667788
==FlexCAN loopback example -- Finish.==
FRDM-MCXA344
Hardware requirements
Type-C USB cable
FRDM-MCXA344 board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect the type-C USB cable between the PC host and the USB ports on the board.
Open a serial terminal on PC for the 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 demo.
Running the demo
When the example runs successfully, following information can be seen on the terminal:
==FlexCAN loopback example -- Start.==
Send message from MB0 to MB1
tx word0 = 0x11223344
tx word1 = 0x55667788
Received message from MB1
rx word0 = 0x11223344
rx word1 = 0x55667788
==FlexCAN loopback example -- Finish.==
KW47-LOC
Hardware requirements
Type-C USB cable
KW47-LOC Board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect a USB cable between the host PC and the LOC board J3.
Open a serial terminal on PC for the 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 demo.
Running the demo
When the example runs successfully, following information can be seen on the terminal:
==FlexCAN loopback example -- Start.==
Send message from MB1 to MB0
tx word0 = 0x11223344
tx word1 = 0x55667788
Received message from MB0
rx word0 = 0x11223344
rx word1 = 0x55667788
==FlexCAN loopback example -- Finish.==
MCXW72-LOC
Hardware requirements
Type-C USB cable
MCXW72-LOC Board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect a USB cable between the host PC and the LOC board J3.
Open a serial terminal on PC for the 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 demo.
Running the demo
When the example runs successfully, following information can be seen on the terminal:
==FlexCAN loopback example -- Start.==
Send message from MB1 to MB0
tx word0 = 0x11223344
tx word1 = 0x55667788
Received message from MB0
rx word0 = 0x11223344
rx word1 = 0x55667788
==FlexCAN loopback example -- Finish.==
FRDM-IMXRT1186
Hardware requirements
Type-C USB cable
FRDM-IMXRT1186 board
Personal Computer
Board settings
No special settings are required.
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.
Running the demo
When the example runs successfully, following information can be seen on the OpenSDA terminal:
==FlexCAN loopback example -- Start.==
Send message from MB8 to MB9
tx word0 = 0x11223344
tx word1 = 0x55667788
Received message from MB9
rx word0 = 0x11223344
rx word1 = 0x55667788
==FlexCAN loopback example -- Finish.==
FRDM-MCXA266
Hardware requirements
Type-C USB cable
FRDM-MCXA266 Board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect the type-C USB cable between the PC host and the USB ports on the board.
Open a serial terminal on PC for the 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 demo.
Running the demo
When the example runs successfully, following information can be seen on the terminal:
==FlexCAN loopback example -- Start.==
Send message from MB0 to MB1
tx word0 = 0x11223344
tx word1 = 0x55667788
Received message from MB1
rx word0 = 0x11223344
rx word1 = 0x55667788
==FlexCAN loopback example -- Finish.==
FRDM-MCXA366
Hardware requirements
Type-C USB cable
FRDM-MCXA366 Board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect the type-C USB cable between the PC host and the USB ports on the board.
Open a serial terminal on PC for the 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 demo.
Running the demo
When the example runs successfully, following information can be seen on the terminal:
==FlexCAN loopback example -- Start.==
Send message from MB0 to MB1
tx word0 = 0x11223344
tx word1 = 0x55667788
Received message from MB1
rx word0 = 0x11223344
rx word1 = 0x55667788
==FlexCAN loopback example -- Finish.==
FRDM-MCXW72
Hardware requirements
Type-C USB cable
FRDM-MCXW72 Board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect a USB cable between the host PC and the FRDM board J10.
Open a serial terminal on PC for the 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 demo.
Running the demo
When the example runs successfully, following information can be seen on the terminal:
==FlexCAN loopback example -- Start.==
Send message from MB1 to MB0
tx word0 = 0x11223344
tx word1 = 0x55667788
Received message from MB0
rx word0 = 0x11223344
rx word1 = 0x55667788
==FlexCAN loopback example -- Finish.==
FRDM-MCXA577
Hardware requirements
Type-C USB cable
FRDM-MCXA577 Board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect the type-C USB cable between the PC host and the USB ports on the board.
Open a serial terminal on PC for the 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 demo.
Running the demo
When the example runs successfully, following information can be seen on the terminal:
==FlexCAN loopback example -- Start.==
Send message from MB0 to MB1
tx word0 = 0x11223344
tx word1 = 0x55667788
Received message from MB1
rx word0 = 0x11223344
rx word1 = 0x55667788
==FlexCAN loopback example -- Finish.==
FRDM-KW43
Hardware requirements
Type-C USB cable
FRDM-KW43 Board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect a USB cable between the host PC and the FRDM board J28.
Open a serial terminal on PC for the 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 demo.
Running the demo
When the example runs successfully, following information can be seen on the terminal:
==FlexCAN loopback example -- Start.==
Send message from MB1 to MB0
tx word0 = 0x11223344
tx word1 = 0x55667788
Received message from MB0
rx word0 = 0x11223344
rx word1 = 0x55667788
==FlexCAN loopback example -- Finish.==
FRDM-MCXW70
Hardware requirements
Type-C USB cable
FRDM-MCXW70 Board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect a USB cable between the host PC and the FRDM board J28.
Open a serial terminal on PC for the 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 demo.
Running the demo
When the example runs successfully, following information can be seen on the terminal:
==FlexCAN loopback example -- Start.==
Send message from MB1 to MB0
tx word0 = 0x11223344
tx word1 = 0x55667788
Received message from MB0
rx word0 = 0x11223344
rx word1 = 0x55667788
==FlexCAN loopback example -- Finish.==
FRDM-MCXA287
Hardware requirements
Type-C USB cable
FRDM-MCXA287 Board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect the type-C USB cable between the PC host and the USB ports on the board.
Open a serial terminal on PC for the 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 demo.
Running the demo
When the example runs successfully, following information can be seen on the terminal:
==FlexCAN loopback example -- Start.==
Send message from MB0 to MB1
tx word0 = 0x11223344
tx word1 = 0x55667788
Received message from MB1
rx word0 = 0x11223344
rx word1 = 0x55667788
==FlexCAN loopback example -- Finish.==