MCUXpresso SDK Documentation

flexcan_pretended_networking_wakeup

flexcan_pretended_networking_wakeup#

Overview#

The flexcan_pretended_networking_wakeup example shows how to wake up FLEXCAN module from Pretended Networking mode:

In this example, 2 boards are connected through CAN bus. Endpoint B need enter STOP mode first, then endpoint A(board A) send CAN Message to Endpoint B(board B) when user press space key in terminal. Endpoint B will wake up from STOP mode after receive 4 specific wake up frame, and print the message content to terminal.

Supported Boards#

EVK9-MIMX8ULP
Hardware requirements
  • Micro USB cable

  • two MIMX8ULP-EVK/EVK9 board

  • JLink Plus

  • 5V power supply

  • Personal Computer

Board settings

populate J8 for two boards. The example requires connecting between CAN pins of two boards. The connection should be set as follows:

Between two boards:

  • J8-1(CANH) node A, J8-1(CANH) node B

  • J8-2(CANL) node A, J8-2(CANL) node B

  • J8-3(GND) node A, J8-3(GND) node B

Prepare the Demo
  1. Connect 5V power supply and JLink Plus to the board, switch SW10 to power on the board

  2. Connect a micro USB cable between the host PC and the J17 USB port on the target board.

  3. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  4. Download the program to the target board.

  5. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Running the demo

After connecting the two boards, these instructions display on each terminal window. One board must be chosen as node A and the other board as node B. (Note: Node B should start first) Data is sent continuously between the node A and the node B.

This message displays on the node A terminal:


FlexCAN pretended networking wake up example.
Please select local node as A or B:
Note: Node B should start first.
Node:a
Press any key to trigger one-shot transmission
Send message ID: 0x123, payload: 0x0000000000005500

Press any key to trigger the next transmission!
Send message ID: 0x123, payload: 0x0000000000005501

Press any key to trigger the next transmission!
Send message ID: 0x125, payload: 0x0000000000005502

Press any key to trigger the next transmission!
Send message ID: 0x125, payload: 0x0000000000005503

Press any key to trigger the next transmission!
Send message ID: 0x123, payload: 0x0000000000005504

Press any key to trigger the next transmission!
Send message ID: 0x123, payload: 0x0000000000005600

...

This message displays on the node B terminal:

FlexCAN pretended networking wake up example.
Please select local node as A or B:
Note: Node B should start first.
Node:b
Note B will enter lower power mode and wake up until received 4 specific messages.
Wake up message format: Standard (11 bit id)
Wake up message ID range: 0x123 to 0x124
Wake up payload range : 0x0000000000005500 to 0x0000000000005600
Waken up!
Match message 0 ID: 0x123, payload: 0x0000000000005500
Match message 1 ID: 0x123, payload: 0x0000000000005501
Match message 2 ID: 0x123, payload: 0x0000000000005504
Match message 3 ID: 0x123, payload: 0x0000000000005600
Enter lower power mode again!

EVK-MIMX8ULP
Hardware requirements
  • Micro USB cable

  • two MIMX8ULP-EVK/EVK9 board

  • JLink Plus

  • 5V power supply

  • Personal Computer

Board settings

populate J8 for two boards. The example requires connecting between CAN pins of two boards. The connection should be set as follows:

Between two boards:

  • J8-1(CANH) node A, J8-1(CANH) node B

  • J8-2(CANL) node A, J8-2(CANL) node B

  • J8-3(GND) node A, J8-3(GND) node B

Prepare the Demo
  1. Connect 5V power supply and JLink Plus to the board, switch SW10 to power on the board

  2. Connect a micro USB cable between the host PC and the J17 USB port on the target board.

  3. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  4. Download the program to the target board.

  5. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Running the demo

After connecting the two boards, these instructions display on each terminal window. One board must be chosen as node A and the other board as node B. (Note: Node B should start first) Data is sent continuously between the node A and the node B.

This message displays on the node A terminal:


FlexCAN pretended networking wake up example.
Please select local node as A or B:
Note: Node B should start first.
Node:a
Press any key to trigger one-shot transmission
Send message ID: 0x123, payload: 0x0000000000005500

Press any key to trigger the next transmission!
Send message ID: 0x123, payload: 0x0000000000005501

Press any key to trigger the next transmission!
Send message ID: 0x125, payload: 0x0000000000005502

Press any key to trigger the next transmission!
Send message ID: 0x125, payload: 0x0000000000005503

Press any key to trigger the next transmission!
Send message ID: 0x123, payload: 0x0000000000005504

Press any key to trigger the next transmission!
Send message ID: 0x123, payload: 0x0000000000005600

...

This message displays on the node B terminal:

FlexCAN pretended networking wake up example.
Please select local node as A or B:
Note: Node B should start first.
Node:b
Note B will enter lower power mode and wake up until received 4 specific messages.
Wake up message format: Standard (11 bit id)
Wake up message ID range: 0x123 to 0x124
Wake up payload range : 0x0000000000005500 to 0x0000000000005600
Waken up!
Match message 0 ID: 0x123, payload: 0x0000000000005500
Match message 1 ID: 0x123, payload: 0x0000000000005501
Match message 2 ID: 0x123, payload: 0x0000000000005504
Match message 3 ID: 0x123, payload: 0x0000000000005600
Enter lower power mode again!

FRDM-MCXA156
Hardware requirements
  • Type-C USB cable

  • FRDM-MCXA156 Board

  • Personal Computer

Board settings

The example requires 2 sets of boards, each of them is mounted with the base board. To make example work, connections needed to be as follows on each base board:

Board to board connections needed to be as follows:

        Node A           connect to      Node B
Pin Name   Board Location         Pin Name    Board Location
CANH       J22-2                  CANH        J22-2
CANL       J22-4                  CANL        J22-4
GND        J22-3                  GND         J22-3
Prepare the Demo
  1. Connect the type-C USB cable between the PC host and the USB ports on the board.

  2. 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

  3. Download the program to the target board.

  4. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Running the demo

After connecting the two boards, these instructions display on each terminal window. One board must be chosen as node A and the other board as node B. (Note: Node B should start first) Data is sent continuously between the node A and the node B.

This message displays on the node A terminal:

FlexCAN pretended networking wake up example. Please select local node as A or B: Note: Node B should start first. Node:a Press any key to trigger one-shot transmission Send message ID: 0x123, payload: 0x0000000000005500

Press any key to trigger the next transmission! Send message ID: 0x123, payload: 0x0000000000005501

Press any key to trigger the next transmission! Send message ID: 0x125, payload: 0x0000000000005502

Press any key to trigger the next transmission! Send message ID: 0x125, payload: 0x0000000000005503

Press any key to trigger the next transmission! Send message ID: 0x123, payload: 0x0000000000005504

Press any key to trigger the next transmission! Send message ID: 0x123, payload: 0x0000000000005600


This message displays on the node B terminal:

FlexCAN pretended networking wake up example.
Please select local node as A or B:
Note: Node B should start first.
Node:b
Note B will enter lower power mode and wake up until received 4 specific messages.
Wake up message format: Standard (11 bit id)
Wake up message ID range: 0x123 to 0x124
Wake up payload range : 0x0000000000005500 to 0x0000000000005600
Waken up!
Match message 0 ID: 0x123, payload: 0x0000000000005500
Match message 1 ID: 0x123, payload: 0x0000000000005501
Match message 2 ID: 0x123, payload: 0x0000000000005504
Match message 3 ID: 0x123, payload: 0x0000000000005600
Enter lower power mode again!

FRDM-MCXA346
Hardware requirements
  • Type-C USB cable

  • FRDM-MCXA346 board

  • Personal Computer

Board settings

The example requires 2 sets of boards, each of them is mounted with the base board. To make example work, connections needed to be as follows on each base board:

Board to board connections needed to be as follows:

        Node A           connect to      Node B
Pin Name   Board Location         Pin Name    Board Location
CANH       J16-1                  CANH        J16-1
CANL       J16-2                  CANL        J16-2
GND        J16-4                  GND         J16-4
Prepare the Demo
  1. Connect the type-C USB cable between the PC host and the USB ports on the board.

  2. 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

  3. Download the program to the target board.

  4. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Running the demo

After connecting the two boards, these instructions display on each terminal window. One board must be chosen as node A and the other board as node B. (Note: Node B should start first) Data is sent continuously between the node A and the node B.

This message displays on the node A terminal:

FlexCAN pretended networking wake up example. Please select local node as A or B: Note: Node B should start first. Node:a Press any key to trigger one-shot transmission Send message ID: 0x123, payload: 0x0000000000005500

Press any key to trigger the next transmission! Send message ID: 0x123, payload: 0x0000000000005501

Press any key to trigger the next transmission! Send message ID: 0x125, payload: 0x0000000000005502

Press any key to trigger the next transmission! Send message ID: 0x125, payload: 0x0000000000005503

Press any key to trigger the next transmission! Send message ID: 0x123, payload: 0x0000000000005504

Press any key to trigger the next transmission! Send message ID: 0x123, payload: 0x0000000000005600


This message displays on the node B terminal:

FlexCAN pretended networking wake up example.
Please select local node as A or B:
Note: Node B should start first.
Node:b
Note B will enter lower power mode and wake up until received 4 specific messages.
Wake up message format: Standard (11 bit id)
Wake up message ID range: 0x123 to 0x124
Wake up payload range : 0x0000000000005500 to 0x0000000000005600
Waken up!
Match message 0 ID: 0x123, payload: 0x0000000000005500
Match message 1 ID: 0x123, payload: 0x0000000000005501
Match message 2 ID: 0x123, payload: 0x0000000000005504
Match message 3 ID: 0x123, payload: 0x0000000000005600
Enter lower power mode again!

FRDM-MCXE247
Hardware requirements
  • Type-C USB cable

  • FRDM-MCXE247 Board

  • Personal Computer

Board settings

The example requires 2 boards.

Board to board connections needed to be as follows:

        Node A           connect to      Node B
Pin Name   Board Location         Pin Name    Board Location
CANH       J16-1                  CANH        J16-1
CANL       J16-2                  CANL        J16-2
GND        J16-4                  GND         J16-4
Prepare the Demo
  1. Connect the type-C USB cable between the PC host and the USB ports on the board.

  2. 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

  3. Download the program to the target board.

  4. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Running the demo

After connecting the two boards, these instructions display on each terminal window. One board must be chosen as node A and the other board as node B. (Note: Node B should start first) Data is sent continuously between the node A and the node B.

This message displays on the node A terminal:

FlexCAN pretended networking wake up example. Please select local node as A or B: Note: Node B should start first. Node:a Press any key to trigger one-shot transmission Send message ID: 0x123, payload: 0x0000000000005500

Press any key to trigger the next transmission! Send message ID: 0x123, payload: 0x0000000000005501

Press any key to trigger the next transmission! Send message ID: 0x125, payload: 0x0000000000005502

Press any key to trigger the next transmission! Send message ID: 0x125, payload: 0x0000000000005503

Press any key to trigger the next transmission! Send message ID: 0x123, payload: 0x0000000000005504

Press any key to trigger the next transmission! Send message ID: 0x123, payload: 0x0000000000005600


This message displays on the node B terminal:

FlexCAN pretended networking wake up example.
Please select local node as A or B:
Note: Node B should start first.
Node:b
Note B will enter lower power mode and wake up until received 4 specific messages.
Wake up message format: Standard (11 bit id)
Wake up message ID range: 0x123 to 0x124
Wake up payload range : 0x0000000000005500 to 0x0000000000005600
Waken up!
Match message 0 ID: 0x123, payload: 0x0000000000005500
Match message 1 ID: 0x123, payload: 0x0000000000005501
Match message 2 ID: 0x123, payload: 0x0000000000005504
Match message 3 ID: 0x123, payload: 0x0000000000005600
Enter lower power mode again!

FRDM-MCXN236
Hardware requirements
  • Type-C USB cable

  • FRDM-MCXN236 board

  • Personal Computer

Board settings

The example requires 2 sets of boards, each of them is mounted with the base board. To make example work, connections needed to be as follows on each base board:

Board to board connections needed to be as follows:

        Node A           connect to      Node B
Pin Name   Board Location         Pin Name    Board Location
CANH       J13-2                  CANH        J13-2
CANL       J13-4                  CANL        J13-4
GND        J13-3                  GND         J13-3
Prepare the Demo
  1. Connect the type-c and mini USB cable between the PC host and the USB ports on the board.

  2. 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

  3. Download the program to the target board.

  4. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Running the demo

After connecting the two boards, these instructions display on each terminal window. One board must be chosen as node A and the other board as node B. (Note: Node B should start first) Data is sent continuously between the node A and the node B.

This message displays on the node A terminal:

FlexCAN pretended networking wake up example. Please select local node as A or B: Note: Node B should start first. Node:a Press any key to trigger one-shot transmission Send message ID: 0x123, payload: 0x0000000000005500

Press any key to trigger the next transmission! Send message ID: 0x123, payload: 0x0000000000005501

Press any key to trigger the next transmission! Send message ID: 0x125, payload: 0x0000000000005502

Press any key to trigger the next transmission! Send message ID: 0x125, payload: 0x0000000000005503

Press any key to trigger the next transmission! Send message ID: 0x123, payload: 0x0000000000005504

Press any key to trigger the next transmission! Send message ID: 0x123, payload: 0x0000000000005600


This message displays on the node B terminal:

FlexCAN pretended networking wake up example.
Please select local node as A or B:
Note: Node B should start first.
Node:b
Note B will enter lower power mode and wake up until received 4 specific messages.
Wake up message format: Standard (11 bit id)
Wake up message ID range: 0x123 to 0x124
Wake up payload range : 0x0000000000005500 to 0x0000000000005600
Waken up!
Match message 0 ID: 0x123, payload: 0x0000000000005500
Match message 1 ID: 0x123, payload: 0x0000000000005501
Match message 2 ID: 0x123, payload: 0x0000000000005504
Match message 3 ID: 0x123, payload: 0x0000000000005600
Enter lower power mode again!

FRDM-MCXN947
Hardware requirements
  • Type-C USB cable

  • FRDM-MCXN947 Board

  • Personal Computer

Board settings

The example requires 2 sets of boards, each of them is mounted with the base board. To make example work, connections needed to be as follows on each base board:

Board to board connections needed to be as follows:

        Node A           connect to      Node B
Pin Name   Board Location         Pin Name    Board Location
CANH       J10-1                  CANH        J10-1
CANL       J10-2                  CANL        J10-2
GND        J10-4                  GND         J10-4
Prepare the Demo
  1. Connect the type-c and mini USB cable between the PC host and the USB ports on the board.

  2. 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

  3. Download the program to the target board.

  4. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Running the demo

After connecting the two boards, these instructions display on each terminal window. One board must be chosen as node A and the other board as node B. (Note: Node B should start first) Data is sent continuously between the node A and the node B.

This message displays on the node A terminal:

FlexCAN pretended networking wake up example. Please select local node as A or B: Note: Node B should start first. Node:a Press any key to trigger one-shot transmission Send message ID: 0x123, payload: 0x0000000000005500

Press any key to trigger the next transmission! Send message ID: 0x123, payload: 0x0000000000005501

Press any key to trigger the next transmission! Send message ID: 0x125, payload: 0x0000000000005502

Press any key to trigger the next transmission! Send message ID: 0x125, payload: 0x0000000000005503

Press any key to trigger the next transmission! Send message ID: 0x123, payload: 0x0000000000005504

Press any key to trigger the next transmission! Send message ID: 0x123, payload: 0x0000000000005600


This message displays on the node B terminal:

FlexCAN pretended networking wake up example.
Please select local node as A or B:
Note: Node B should start first.
Node:b
Note B will enter lower power mode and wake up until received 4 specific messages.
Wake up message format: Standard (11 bit id)
Wake up message ID range: 0x123 to 0x124
Wake up payload range : 0x0000000000005500 to 0x0000000000005600
Waken up!
Match message 0 ID: 0x123, payload: 0x0000000000005500
Match message 1 ID: 0x123, payload: 0x0000000000005501
Match message 2 ID: 0x123, payload: 0x0000000000005504
Match message 3 ID: 0x123, payload: 0x0000000000005600
Enter lower power mode again!

FRDM-MCXN947T
Hardware requirements
  • Type-C USB cable

  • FRDM-MCXN947T Board

  • Personal Computer

Board settings

The example requires 2 sets of boards, each of them is mounted with the base board. To make example work, connections needed to be as follows on each base board:

Board to board connections needed to be as follows:

        Node A           connect to      Node B
Pin Name   Board Location         Pin Name    Board Location
CANH       J10-1                  CANH        J10-1
CANL       J10-2                  CANL        J10-2
GND        J10-4                  GND         J10-4
Prepare the Demo
  1. Connect the type-c and mini USB cable between the PC host and the USB ports on the board.

  2. 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

  3. Download the program to the target board.

  4. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Running the demo

After connecting the two boards, these instructions display on each terminal window. One board must be chosen as node A and the other board as node B. (Note: Node B should start first) Data is sent continuously between the node A and the node B.

This message displays on the node A terminal:

FlexCAN pretended networking wake up example. Please select local node as A or B: Note: Node B should start first. Node:a Press any key to trigger one-shot transmission Send message ID: 0x123, payload: 0x0000000000005500

Press any key to trigger the next transmission! Send message ID: 0x123, payload: 0x0000000000005501

Press any key to trigger the next transmission! Send message ID: 0x125, payload: 0x0000000000005502

Press any key to trigger the next transmission! Send message ID: 0x125, payload: 0x0000000000005503

Press any key to trigger the next transmission! Send message ID: 0x123, payload: 0x0000000000005504

Press any key to trigger the next transmission! Send message ID: 0x123, payload: 0x0000000000005600


This message displays on the node B terminal:

FlexCAN pretended networking wake up example.
Please select local node as A or B:
Note: Node B should start first.
Node:b
Note B will enter lower power mode and wake up until received 4 specific messages.
Wake up message format: Standard (11 bit id)
Wake up message ID range: 0x123 to 0x124
Wake up payload range : 0x0000000000005500 to 0x0000000000005600
Waken up!
Match message 0 ID: 0x123, payload: 0x0000000000005500
Match message 1 ID: 0x123, payload: 0x0000000000005501
Match message 2 ID: 0x123, payload: 0x0000000000005504
Match message 3 ID: 0x123, payload: 0x0000000000005600
Enter lower power mode again!

FRDM-MCXW71
Hardware requirements
  • Type-C USB cable

  • FRDM-MCXW71 Board

  • Personal Computer

Board settings

The example requires 2 sets of boards, each of them is mounted with the base board. To make example work, connections needed to be as follows on each base board:

Board to board connections needed to be as follows:

        Node A           connect to      Node B
Pin Name   Board Location         Pin Name    Board Location
CANH       J21-1                  CANH        J21-1
CANL       J21-2                  CANL        J21-2
GND        J21-4                  GND         J21-4
Prepare the Demo
  1. Connect the micro and mini USB cable between the PC host and the USB ports on the board.

  2. 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

  3. Download the program to the target board.

  4. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Running the demo

After connecting the two boards, these instructions display on each terminal window. One board must be chosen as node A and the other board as node B. (Note: Node B should start first) Data is sent continuously between the node A and the node B.

This message displays on the node A terminal:

FlexCAN pretended networking wake up example. Please select local node as A or B: Note: Node B should start first. Node:a Press any key to trigger one-shot transmission Send message ID: 0x123, payload: 0x0000000000005500

Press any key to trigger the next transmission! Send message ID: 0x123, payload: 0x0000000000005501

Press any key to trigger the next transmission! Send message ID: 0x125, payload: 0x0000000000005502

Press any key to trigger the next transmission! Send message ID: 0x125, payload: 0x0000000000005503

Press any key to trigger the next transmission! Send message ID: 0x123, payload: 0x0000000000005504

Press any key to trigger the next transmission! Send message ID: 0x123, payload: 0x0000000000005600


This message displays on the node B terminal:

FlexCAN pretended networking wake up example.
Please select local node as A or B:
Note: Node B should start first.
Node:b
Note B will enter lower power mode and wake up until received 4 specific messages.
Wake up message format: Standard (11 bit id)
Wake up message ID range: 0x123 to 0x124
Wake up payload range : 0x0000000000005500 to 0x0000000000005600
Waken up!
Match message 0 ID: 0x123, payload: 0x0000000000005500
Match message 1 ID: 0x123, payload: 0x0000000000005501
Match message 2 ID: 0x123, payload: 0x0000000000005504
Match message 3 ID: 0x123, payload: 0x0000000000005600
Enter lower power mode again!

MCX-W71-EVK
Hardware requirements
  • Type-C USB cable

  • MCX-W71-EVK Board

  • Personal Computer

Board settings

The example requires 2 sets of boards, each of them is mounted with the base board. To make example work, connections needed to be as follows on each base board:

Board to board connections needed to be as follows:

        Node A           connect to      Node B
Pin Name   Board Location         Pin Name    Board Location
CANH       J10-1                  CANH        J10-1
CANL       J10-2                  CANL        J10-2
GND        J10-4                  GND         J10-4

Note: Plug the 12V power supply on J9 to supply the P5V_CAN.

Prepare the Demo
  1. Connect a USB cable between the host PC and the EVK board J14.

  2. 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

  3. Download the program to the target board.

  4. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Running the demo

After connecting the two boards, these instructions display on each terminal window. One board must be chosen as node A and the other board as node B. (Note: Node B should start first) Data is sent continuously between the node A and the node B.

This message displays on the node A terminal:

FlexCAN pretended networking wake up example. Please select local node as A or B: Note: Node B should start first. Node:a Press any key to trigger one-shot transmission Send message ID: 0x123, payload: 0x0000000000005500

Press any key to trigger the next transmission! Send message ID: 0x123, payload: 0x0000000000005501

Press any key to trigger the next transmission! Send message ID: 0x125, payload: 0x0000000000005502

Press any key to trigger the next transmission! Send message ID: 0x125, payload: 0x0000000000005503

Press any key to trigger the next transmission! Send message ID: 0x123, payload: 0x0000000000005504

Press any key to trigger the next transmission! Send message ID: 0x123, payload: 0x0000000000005600


This message displays on the node B terminal:

FlexCAN pretended networking wake up example.
Please select local node as A or B:
Note: Node B should start first.
Node:b
Note B will enter lower power mode and wake up until received 4 specific messages.
Wake up message format: Standard (11 bit id)
Wake up message ID range: 0x123 to 0x124
Wake up payload range : 0x0000000000005500 to 0x0000000000005600
Waken up!
Match message 0 ID: 0x123, payload: 0x0000000000005500
Match message 1 ID: 0x123, payload: 0x0000000000005501
Match message 2 ID: 0x123, payload: 0x0000000000005504
Match message 3 ID: 0x123, payload: 0x0000000000005600
Enter lower power mode again!

KW45B41Z-EVK
Hardware requirements
  • Mini/micro USB cable

  • KW45B41Z-EVK Board

  • Personal Computer

Board settings

The example requires 2 sets of boards, each of them is mounted with the base board. To make example work, connections needed to be as follows on each base board:

Board to board connections needed to be as follows:

        Node A           connect to      Node B
Pin Name   Board Location         Pin Name    Board Location
CANH       J10-1                  CANH        J10-1
CANL       J10-2                  CANL        J10-2
GND        J10-4                  GND         J10-4

Note: Plug the 12V power supply on J9 to supply the P5V_CAN.

Prepare the Demo
  1. Connect the micro and mini USB cable between the PC host and the USB ports on the board.

  2. 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

  3. Download the program to the target board.

  4. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Running the demo

After connecting the two boards, these instructions display on each terminal window. One board must be chosen as node A and the other board as node B. (Note: Node B should start first) Data is sent continuously between the node A and the node B.

This message displays on the node A terminal:

FlexCAN pretended networking wake up example. Please select local node as A or B: Note: Node B should start first. Node:a Press any key to trigger one-shot transmission Send message ID: 0x123, payload: 0x0000000000005500

Press any key to trigger the next transmission! Send message ID: 0x123, payload: 0x0000000000005501

Press any key to trigger the next transmission! Send message ID: 0x125, payload: 0x0000000000005502

Press any key to trigger the next transmission! Send message ID: 0x125, payload: 0x0000000000005503

Press any key to trigger the next transmission! Send message ID: 0x123, payload: 0x0000000000005504

Press any key to trigger the next transmission! Send message ID: 0x123, payload: 0x0000000000005600


This message displays on the node B terminal:

FlexCAN pretended networking wake up example.
Please select local node as A or B:
Note: Node B should start first.
Node:b
Note B will enter lower power mode and wake up until received 4 specific messages.
Wake up message format: Standard (11 bit id)
Wake up message ID range: 0x123 to 0x124
Wake up payload range : 0x0000000000005500 to 0x0000000000005600
Waken up!
Match message 0 ID: 0x123, payload: 0x0000000000005500
Match message 1 ID: 0x123, payload: 0x0000000000005501
Match message 2 ID: 0x123, payload: 0x0000000000005504
Match message 3 ID: 0x123, payload: 0x0000000000005600
Enter lower power mode again!

KW47-EVK
Hardware requirements
  • Type-C USB cable

  • KW47-EVK Board

  • Personal Computer

Board settings

The example requires 2 sets of boards, each of them is mounted with the base board. To make example work, connections needed to be as follows on each base board:

Board to board connections needed to be as follows:

        Node A           connect to      Node B
Pin Name   Board Location         Pin Name    Board Location
CANH       J10-1                  CANH        J10-1
CANL       J10-2                  CANL        J10-2
GND        J10-4                  GND         J10-4

Note: Plug the 12V power supply on J9 to supply the P5V_CAN.

Prepare the Demo
  1. Connect a USB cable between the host PC and the EVK board J14.

  2. 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

  3. Download the program to the target board.

  4. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Running the demo

After connecting the two boards, these instructions display on each terminal window. One board must be chosen as node A and the other board as node B. (Note: Node B should start first) Data is sent continuously between the node A and the node B.

This message displays on the node A terminal:

FlexCAN pretended networking wake up example. Please select local node as A or B: Note: Node B should start first. Node:a Press any key to trigger one-shot transmission Send message ID: 0x123, payload: 0x0000000000005500

Press any key to trigger the next transmission! Send message ID: 0x123, payload: 0x0000000000005501

Press any key to trigger the next transmission! Send message ID: 0x125, payload: 0x0000000000005502

Press any key to trigger the next transmission! Send message ID: 0x125, payload: 0x0000000000005503

Press any key to trigger the next transmission! Send message ID: 0x123, payload: 0x0000000000005504

Press any key to trigger the next transmission! Send message ID: 0x123, payload: 0x0000000000005600


This message displays on the node B terminal:

FlexCAN pretended networking wake up example.
Please select local node as A or B:
Note: Node B should start first.
Node:b
Note B will enter lower power mode and wake up until received 4 specific messages.
Wake up message format: Standard (11 bit id)
Wake up message ID range: 0x123 to 0x124
Wake up payload range : 0x0000000000005500 to 0x0000000000005600
Waken up!
Match message 0 ID: 0x123, payload: 0x0000000000005500
Match message 1 ID: 0x123, payload: 0x0000000000005501
Match message 2 ID: 0x123, payload: 0x0000000000005504
Match message 3 ID: 0x123, payload: 0x0000000000005600
Enter lower power mode again!

MCX-N9XX-EVK
Hardware requirements
  • Mini/micro USB cable

  • MCX-N9XX-EVK Board

  • Personal Computer

Board settings

The example requires 2 sets of boards, each of them is mounted with the base board. To make example work, connections needed to be as follows on each base board:

Board to board connections needed to be as follows:

        Node A           connect to      Node B
Pin Name   Board Location         Pin Name    Board Location
CANH       J29-1                  CANH        J29-1
CANL       J29-2                  CANL        J29-2
GND        J29-4                  GND         J29-4
Prepare the Demo
  1. Connect the micro and mini USB cable between the PC host and the USB ports on the board.

  2. 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

  3. Download the program to the target board.

  4. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Running the demo

After connecting the two boards, these instructions display on each terminal window. One board must be chosen as node A and the other board as node B. (Note: Node B should start first) Data is sent continuously between the node A and the node B.

This message displays on the node A terminal:

FlexCAN pretended networking wake up example. Please select local node as A or B: Note: Node B should start first. Node:a Press any key to trigger one-shot transmission Send message ID: 0x123, payload: 0x0000000000005500

Press any key to trigger the next transmission! Send message ID: 0x123, payload: 0x0000000000005501

Press any key to trigger the next transmission! Send message ID: 0x125, payload: 0x0000000000005502

Press any key to trigger the next transmission! Send message ID: 0x125, payload: 0x0000000000005503

Press any key to trigger the next transmission! Send message ID: 0x123, payload: 0x0000000000005504

Press any key to trigger the next transmission! Send message ID: 0x123, payload: 0x0000000000005600


This message displays on the node B terminal:

FlexCAN pretended networking wake up example.
Please select local node as A or B:
Note: Node B should start first.
Node:b
Note B will enter lower power mode and wake up until received 4 specific messages.
Wake up message format: Standard (11 bit id)
Wake up message ID range: 0x123 to 0x124
Wake up payload range : 0x0000000000005500 to 0x0000000000005600
Waken up!
Match message 0 ID: 0x123, payload: 0x0000000000005500
Match message 1 ID: 0x123, payload: 0x0000000000005501
Match message 2 ID: 0x123, payload: 0x0000000000005504
Match message 3 ID: 0x123, payload: 0x0000000000005600
Enter lower power mode again!

MCX-W72-EVK
Hardware requirements
  • Type-C USB cable

  • MCX-W72-EVK Board

  • Personal Computer

Board settings

The example requires 2 sets of boards, each of them is mounted with the base board. To make example work, connections needed to be as follows on each base board:

Board to board connections needed to be as follows:

        Node A           connect to      Node B
Pin Name   Board Location         Pin Name    Board Location
CANH       J10-1                  CANH        J10-1
CANL       J10-2                  CANL        J10-2
GND        J10-4                  GND         J10-4

Note: Plug the 12V power supply on J9 to supply the P5V_CAN.

Prepare the Demo
  1. Connect a USB cable between the host PC and the EVK board J14.

  2. 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

  3. Download the program to the target board.

  4. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Running the demo

After connecting the two boards, these instructions display on each terminal window. One board must be chosen as node A and the other board as node B. (Note: Node B should start first) Data is sent continuously between the node A and the node B.

This message displays on the node A terminal:

FlexCAN pretended networking wake up example. Please select local node as A or B: Note: Node B should start first. Node:a Press any key to trigger one-shot transmission Send message ID: 0x123, payload: 0x0000000000005500

Press any key to trigger the next transmission! Send message ID: 0x123, payload: 0x0000000000005501

Press any key to trigger the next transmission! Send message ID: 0x125, payload: 0x0000000000005502

Press any key to trigger the next transmission! Send message ID: 0x125, payload: 0x0000000000005503

Press any key to trigger the next transmission! Send message ID: 0x123, payload: 0x0000000000005504

Press any key to trigger the next transmission! Send message ID: 0x123, payload: 0x0000000000005600


This message displays on the node B terminal:

FlexCAN pretended networking wake up example.
Please select local node as A or B:
Note: Node B should start first.
Node:b
Note B will enter lower power mode and wake up until received 4 specific messages.
Wake up message format: Standard (11 bit id)
Wake up message ID range: 0x123 to 0x124
Wake up payload range : 0x0000000000005500 to 0x0000000000005600
Waken up!
Match message 0 ID: 0x123, payload: 0x0000000000005500
Match message 1 ID: 0x123, payload: 0x0000000000005501
Match message 2 ID: 0x123, payload: 0x0000000000005504
Match message 3 ID: 0x123, payload: 0x0000000000005600
Enter lower power mode again!

FRDM-MCXA174
Hardware requirements
  • Type-C USB cable

  • FRDM-MCXA174 board

  • Personal Computer

Board settings

The example requires 2 sets of boards, each of them is mounted with the base board. To make example work, connections needed to be as follows on each base board:

Board to board connections needed to be as follows:

        Node A           connect to      Node B
Pin Name   Board Location         Pin Name    Board Location
CANH       J14-1                  CANH        J14-1
CANL       J14-2                  CANL        J14-2
GND        J14-4                  GND         J14-4

Also need to short JP7 to disable USB to CAN.

Prepare the Demo
  1. Connect the type-C USB cable between the PC host and the USB ports on the board.

  2. 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

  3. Download the program to the target board.

  4. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Running the demo

After connecting the two boards, these instructions display on each terminal window. One board must be chosen as node A and the other board as node B. (Note: Node B should start first) Data is sent continuously between the node A and the node B.

This message displays on the node A terminal:

FlexCAN pretended networking wake up example. Please select local node as A or B: Note: Node B should start first. Node:a Press any key to trigger one-shot transmission Send message ID: 0x123, payload: 0x0000000000005500

Press any key to trigger the next transmission! Send message ID: 0x123, payload: 0x0000000000005501

Press any key to trigger the next transmission! Send message ID: 0x125, payload: 0x0000000000005502

Press any key to trigger the next transmission! Send message ID: 0x125, payload: 0x0000000000005503

Press any key to trigger the next transmission! Send message ID: 0x123, payload: 0x0000000000005504

Press any key to trigger the next transmission! Send message ID: 0x123, payload: 0x0000000000005600


This message displays on the node B terminal:

FlexCAN pretended networking wake up example.
Please select local node as A or B:
Note: Node B should start first.
Node:b
Note B will enter lower power mode and wake up until received 4 specific messages.
Wake up message format: Standard (11 bit id)
Wake up message ID range: 0x123 to 0x124
Wake up payload range : 0x0000000000005500 to 0x0000000000005600
Waken up!
Match message 0 ID: 0x123, payload: 0x0000000000005500
Match message 1 ID: 0x123, payload: 0x0000000000005501
Match message 2 ID: 0x123, payload: 0x0000000000005504
Match message 3 ID: 0x123, payload: 0x0000000000005600
Enter lower power mode again!

FRDM-MCXA344
Hardware requirements
  • Type-C USB cable

  • FRDM-MCXA344 board

  • Personal Computer

Board settings

The example requires 2 sets of boards, each of them is mounted with the base board. To make example work, connections needed to be as follows on each base board:

Board to board connections needed to be as follows:

        Node A           connect to      Node B
Pin Name   Board Location         Pin Name    Board Location
CANH       J14-1                  CANH        J14-1
CANL       J14-2                  CANL        J14-2
GND        J14-4                  GND         J14-4

Also need to short JP7 to disable USB to CAN.

Prepare the Demo
  1. Connect the type-C USB cable between the PC host and the USB ports on the board.

  2. 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

  3. Download the program to the target board.

  4. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Running the demo

After connecting the two boards, these instructions display on each terminal window. One board must be chosen as node A and the other board as node B. (Note: Node B should start first) Data is sent continuously between the node A and the node B.

This message displays on the node A terminal:

FlexCAN pretended networking wake up example. Please select local node as A or B: Note: Node B should start first. Node:a Press any key to trigger one-shot transmission Send message ID: 0x123, payload: 0x0000000000005500

Press any key to trigger the next transmission! Send message ID: 0x123, payload: 0x0000000000005501

Press any key to trigger the next transmission! Send message ID: 0x125, payload: 0x0000000000005502

Press any key to trigger the next transmission! Send message ID: 0x125, payload: 0x0000000000005503

Press any key to trigger the next transmission! Send message ID: 0x123, payload: 0x0000000000005504

Press any key to trigger the next transmission! Send message ID: 0x123, payload: 0x0000000000005600


This message displays on the node B terminal:

FlexCAN pretended networking wake up example.
Please select local node as A or B:
Note: Node B should start first.
Node:b
Note B will enter lower power mode and wake up until received 4 specific messages.
Wake up message format: Standard (11 bit id)
Wake up message ID range: 0x123 to 0x124
Wake up payload range : 0x0000000000005500 to 0x0000000000005600
Waken up!
Match message 0 ID: 0x123, payload: 0x0000000000005500
Match message 1 ID: 0x123, payload: 0x0000000000005501
Match message 2 ID: 0x123, payload: 0x0000000000005504
Match message 3 ID: 0x123, payload: 0x0000000000005600
Enter lower power mode again!

KW47-LOC
Hardware requirements
  • Type-C USB cable

  • KW47-LOC Board

  • Personal Computer

Board settings

The example requires 2 sets of boards, each of them is mounted with the base board. To make example work, connections needed to be as follows on each base board:

Board to board connections needed to be as follows:

        Node A           connect to      Node B
Pin Name   Board Location         Pin Name    Board Location
CANH       J10-1                  CANH        J10-1
CANL       J10-2                  CANL        J10-2
GND        J10-4                  GND         J10-4

Note: Plug the 12V power supply on J9 to supply the P5V_CAN.

Prepare the Demo
  1. Connect a USB cable between the host PC and the LOC board J3.

  2. 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

  3. Download the program to the target board.

  4. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Running the demo

After connecting the two boards, these instructions display on each terminal window. One board must be chosen as node A and the other board as node B. (Note: Node B should start first) Data is sent continuously between the node A and the node B.

This message displays on the node A terminal:


FlexCAN pretended networking wake up example.
Please select local node as A or B:
Note: Node B should start first.
Node:a
Press any key to trigger one-shot transmission
Send message ID: 0x123, payload: 0x0000000000005500

Press any key to trigger the next transmission!
Send message ID: 0x123, payload: 0x0000000000005501

Press any key to trigger the next transmission!
Send message ID: 0x125, payload: 0x0000000000005502

Press any key to trigger the next transmission!
Send message ID: 0x125, payload: 0x0000000000005503

Press any key to trigger the next transmission!
Send message ID: 0x123, payload: 0x0000000000005504

Press any key to trigger the next transmission!
Send message ID: 0x123, payload: 0x0000000000005600

...

This message displays on the node B terminal:

FlexCAN pretended networking wake up example.
Please select local node as A or B:
Note: Node B should start first.
Node:b
Note B will enter lower power mode and wake up until received 4 specific messages.
Wake up message format: Standard (11 bit id)
Wake up message ID range: 0x123 to 0x124
Wake up payload range : 0x0000000000005500 to 0x0000000000005600
Waken up!
Match message 0 ID: 0x123, payload: 0x0000000000005500
Match message 1 ID: 0x123, payload: 0x0000000000005501
Match message 2 ID: 0x123, payload: 0x0000000000005504
Match message 3 ID: 0x123, payload: 0x0000000000005600
Enter lower power mode again!

MCXW72-LOC
Hardware requirements
  • Type-C USB cable

  • MCXW72-LOC Board

  • Personal Computer

Board settings

The example requires 2 sets of boards, each of them is mounted with the base board. To make example work, connections needed to be as follows on each base board:

Board to board connections needed to be as follows:

        Node A           connect to      Node B
Pin Name   Board Location         Pin Name    Board Location
CANH       J10-1                  CANH        J10-1
CANL       J10-2                  CANL        J10-2
GND        J10-4                  GND         J10-4

Note: Plug the 12V power supply on J9 to supply the P5V_CAN.

Prepare the Demo
  1. Connect a USB cable between the host PC and the LOC board J3.

  2. 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

  3. Download the program to the target board.

  4. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Running the demo

After connecting the two boards, these instructions display on each terminal window. One board must be chosen as node A and the other board as node B. (Note: Node B should start first) Data is sent continuously between the node A and the node B.

This message displays on the node A terminal:


FlexCAN pretended networking wake up example.
Please select local node as A or B:
Note: Node B should start first.
Node:a
Press any key to trigger one-shot transmission
Send message ID: 0x123, payload: 0x0000000000005500

Press any key to trigger the next transmission!
Send message ID: 0x123, payload: 0x0000000000005501

Press any key to trigger the next transmission!
Send message ID: 0x125, payload: 0x0000000000005502

Press any key to trigger the next transmission!
Send message ID: 0x125, payload: 0x0000000000005503

Press any key to trigger the next transmission!
Send message ID: 0x123, payload: 0x0000000000005504

Press any key to trigger the next transmission!
Send message ID: 0x123, payload: 0x0000000000005600

...

This message displays on the node B terminal:

FlexCAN pretended networking wake up example.
Please select local node as A or B:
Note: Node B should start first.
Node:b
Note B will enter lower power mode and wake up until received 4 specific messages.
Wake up message format: Standard (11 bit id)
Wake up message ID range: 0x123 to 0x124
Wake up payload range : 0x0000000000005500 to 0x0000000000005600
Waken up!
Match message 0 ID: 0x123, payload: 0x0000000000005500
Match message 1 ID: 0x123, payload: 0x0000000000005501
Match message 2 ID: 0x123, payload: 0x0000000000005504
Match message 3 ID: 0x123, payload: 0x0000000000005600
Enter lower power mode again!

FRDM-MCXA266
Hardware requirements
  • Type-C USB cable

  • FRDM-MCXA266 Board

  • Personal Computer

Board settings

The example requires 2 sets of boards, each of them is mounted with the base board. To make example work, connections needed to be as follows on each base board:

Board to board connections needed to be as follows:

        Node A           connect to      Node B
Pin Name   Board Location         Pin Name    Board Location
CANH       J16-1                  CANH        J16-1
CANL       J16-2                  CANL        J16-2
GND        J16-4                  GND         J16-4
Prepare the Demo
  1. Connect the type-C USB cable between the PC host and the USB ports on the board.

  2. 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

  3. Download the program to the target board.

  4. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Running the demo

After connecting the two boards, these instructions display on each terminal window. One board must be chosen as node A and the other board as node B. (Note: Node B should start first) Data is sent continuously between the node A and the node B.

This message displays on the node A terminal:

FlexCAN pretended networking wake up example. Please select local node as A or B: Note: Node B should start first. Node:a Press any key to trigger one-shot transmission Send message ID: 0x123, payload: 0x0000000000005500

Press any key to trigger the next transmission! Send message ID: 0x123, payload: 0x0000000000005501

Press any key to trigger the next transmission! Send message ID: 0x125, payload: 0x0000000000005502

Press any key to trigger the next transmission! Send message ID: 0x125, payload: 0x0000000000005503

Press any key to trigger the next transmission! Send message ID: 0x123, payload: 0x0000000000005504

Press any key to trigger the next transmission! Send message ID: 0x123, payload: 0x0000000000005600


This message displays on the node B terminal:

FlexCAN pretended networking wake up example.
Please select local node as A or B:
Note: Node B should start first.
Node:b
Note B will enter lower power mode and wake up until received 4 specific messages.
Wake up message format: Standard (11 bit id)
Wake up message ID range: 0x123 to 0x124
Wake up payload range : 0x0000000000005500 to 0x0000000000005600
Waken up!
Match message 0 ID: 0x123, payload: 0x0000000000005500
Match message 1 ID: 0x123, payload: 0x0000000000005501
Match message 2 ID: 0x123, payload: 0x0000000000005504
Match message 3 ID: 0x123, payload: 0x0000000000005600
Enter lower power mode again!

FRDM-MCXA366
Hardware requirements
  • Type-C USB cable

  • FRDM-MCXA366 Board

  • Personal Computer

Board settings

The example requires 2 sets of boards, each of them is mounted with the base board. To make example work, connections needed to be as follows on each base board:

Board to board connections needed to be as follows:

        Node A           connect to      Node B
Pin Name   Board Location         Pin Name    Board Location
CANH       J16-1                  CANH        J16-1
CANL       J16-2                  CANL        J16-2
GND        J16-4                  GND         J16-4
Prepare the Demo
  1. Connect the type-C USB cable between the PC host and the USB ports on the board.

  2. 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

  3. Download the program to the target board.

  4. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Running the demo

After connecting the two boards, these instructions display on each terminal window. One board must be chosen as node A and the other board as node B. (Note: Node B should start first) Data is sent continuously between the node A and the node B.

This message displays on the node A terminal:

FlexCAN pretended networking wake up example. Please select local node as A or B: Note: Node B should start first. Node:a Press any key to trigger one-shot transmission Send message ID: 0x123, payload: 0x0000000000005500

Press any key to trigger the next transmission! Send message ID: 0x123, payload: 0x0000000000005501

Press any key to trigger the next transmission! Send message ID: 0x125, payload: 0x0000000000005502

Press any key to trigger the next transmission! Send message ID: 0x125, payload: 0x0000000000005503

Press any key to trigger the next transmission! Send message ID: 0x123, payload: 0x0000000000005504

Press any key to trigger the next transmission! Send message ID: 0x123, payload: 0x0000000000005600


This message displays on the node B terminal:

FlexCAN pretended networking wake up example.
Please select local node as A or B:
Note: Node B should start first.
Node:b
Note B will enter lower power mode and wake up until received 4 specific messages.
Wake up message format: Standard (11 bit id)
Wake up message ID range: 0x123 to 0x124
Wake up payload range : 0x0000000000005500 to 0x0000000000005600
Waken up!
Match message 0 ID: 0x123, payload: 0x0000000000005500
Match message 1 ID: 0x123, payload: 0x0000000000005501
Match message 2 ID: 0x123, payload: 0x0000000000005504
Match message 3 ID: 0x123, payload: 0x0000000000005600
Enter lower power mode again!

FRDM-MCXW72
Hardware requirements
  • Type-C USB cable

  • FRDM-MCXW72 Board

  • Personal Computer

Board settings

The example requires 2 sets of boards, each of them is mounted with the base board. To make example work, connections needed to be as follows on each base board:

Board to board connections needed to be as follows:

        Node A           connect to      Node B
Pin Name   Board Location         Pin Name    Board Location
CANH       J21-1                  CANH        J21-1
CANL       J21-2                  CANL        J21-2
GND        J21-4                  GND         J21-4

Other jumpers keep default configuration.

Prepare the Demo
  1. Connect a USB cable between the host PC and the FRDM board J10.

  2. 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

  3. Download the program to the target board.

  4. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Running the demo

After connecting the two boards, these instructions display on each terminal window. One board must be chosen as node A and the other board as node B. (Note: Node B should start first) Data is sent continuously between the node A and the node B.

This message displays on the node A terminal:


FlexCAN pretended networking wake up example.
Please select local node as A or B:
Note: Node B should start first.
Node:a
Press any key to trigger one-shot transmission
Send message ID: 0x123, payload: 0x0000000000005500

Press any key to trigger the next transmission!
Send message ID: 0x123, payload: 0x0000000000005501

Press any key to trigger the next transmission!
Send message ID: 0x125, payload: 0x0000000000005502

Press any key to trigger the next transmission!
Send message ID: 0x125, payload: 0x0000000000005503

Press any key to trigger the next transmission!
Send message ID: 0x123, payload: 0x0000000000005504

Press any key to trigger the next transmission!
Send message ID: 0x123, payload: 0x0000000000005600

...

This message displays on the node B terminal:

FlexCAN pretended networking wake up example.
Please select local node as A or B:
Note: Node B should start first.
Node:b
Note B will enter lower power mode and wake up until received 4 specific messages.
Wake up message format: Standard (11 bit id)
Wake up message ID range: 0x123 to 0x124
Wake up payload range : 0x0000000000005500 to 0x0000000000005600
Waken up!
Match message 0 ID: 0x123, payload: 0x0000000000005500
Match message 1 ID: 0x123, payload: 0x0000000000005501
Match message 2 ID: 0x123, payload: 0x0000000000005504
Match message 3 ID: 0x123, payload: 0x0000000000005600
Enter lower power mode again!

FRDM-MCXA577
Hardware requirements
  • Type-C USB cable

  • FRDM-MCXA577 Board

  • Personal Computer

Board settings

The example requires 2 sets of boards, each of them is mounted with the base board. To make example work, connections needed to be as follows on each base board:

Board to board connections needed to be as follows:

        Node A           connect to      Node B
Pin Name   Board Location         Pin Name    Board Location
CANH       J14-1                  CANH        J14-1
CANL       J14-2                  CANL        J14-2
GND        J14-4                  GND         J14-4
Prepare the Demo
  1. Connect the type-C USB cable between the PC host and the USB ports on the board.

  2. 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

  3. Download the program to the target board.

  4. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Running the demo

After connecting the two boards, these instructions display on each terminal window. One board must be chosen as node A and the other board as node B. (Note: Node B should start first) Data is sent continuously between the node A and the node B.

This message displays on the node A terminal:

FlexCAN pretended networking wake up example. Please select local node as A or B: Note: Node B should start first. Node:a Press any key to trigger one-shot transmission Send message ID: 0x123, payload: 0x0000000000005500

Press any key to trigger the next transmission! Send message ID: 0x123, payload: 0x0000000000005501

Press any key to trigger the next transmission! Send message ID: 0x125, payload: 0x0000000000005502

Press any key to trigger the next transmission! Send message ID: 0x125, payload: 0x0000000000005503

Press any key to trigger the next transmission! Send message ID: 0x123, payload: 0x0000000000005504

Press any key to trigger the next transmission! Send message ID: 0x123, payload: 0x0000000000005600


This message displays on the node B terminal:

FlexCAN pretended networking wake up example.
Please select local node as A or B:
Note: Node B should start first.
Node:b
Note B will enter lower power mode and wake up until received 4 specific messages.
Wake up message format: Standard (11 bit id)
Wake up message ID range: 0x123 to 0x124
Wake up payload range : 0x0000000000005500 to 0x0000000000005600
Waken up!
Match message 0 ID: 0x123, payload: 0x0000000000005500
Match message 1 ID: 0x123, payload: 0x0000000000005501
Match message 2 ID: 0x123, payload: 0x0000000000005504
Match message 3 ID: 0x123, payload: 0x0000000000005600
Enter lower power mode again!

FRDM-KW43
Hardware requirements
  • Type-C USB cable

  • FRDM-KW43 Board

  • Personal Computer

Board settings

The example requires 2 sets of boards, each of them is mounted with the base board. To make example work, connections needed to be as follows on each base board:

Board to board connections needed to be as follows:

        Node A           connect to      Node B
Pin Name   Board Location         Pin Name    Board Location
CANH       J16-1                  CANH        J16-1
CANL       J16-2                  CANL        J16-2
GND        J16-4                  GND         J16-4
Prepare the Demo
  1. Connect a USB cable between the host PC and the FRDM board J28.

  2. 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

  3. Download the program to the target board.

  4. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Running the demo

After connecting the two boards, these instructions display on each terminal window. One board must be chosen as node A and the other board as node B. (Note: Node B should start first) Data is sent continuously between the node A and the node B.

This message displays on the node A terminal:

FlexCAN pretended networking wake up example. Please select local node as A or B: Note: Node B should start first. Node:a Press any key to trigger one-shot transmission Send message ID: 0x123, payload: 0x0000000000005500

Press any key to trigger the next transmission! Send message ID: 0x123, payload: 0x0000000000005501

Press any key to trigger the next transmission! Send message ID: 0x125, payload: 0x0000000000005502

Press any key to trigger the next transmission! Send message ID: 0x125, payload: 0x0000000000005503

Press any key to trigger the next transmission! Send message ID: 0x123, payload: 0x0000000000005504

Press any key to trigger the next transmission! Send message ID: 0x123, payload: 0x0000000000005600


This message displays on the node B terminal:

FlexCAN pretended networking wake up example.
Please select local node as A or B:
Note: Node B should start first.
Node:b
Note B will enter lower power mode and wake up until received 4 specific messages.
Wake up message format: Standard (11 bit id)
Wake up message ID range: 0x123 to 0x124
Wake up payload range : 0x0000000000005500 to 0x0000000000005600
Waken up!
Match message 0 ID: 0x123, payload: 0x0000000000005500
Match message 1 ID: 0x123, payload: 0x0000000000005501
Match message 2 ID: 0x123, payload: 0x0000000000005504
Match message 3 ID: 0x123, payload: 0x0000000000005600
Enter lower power mode again!

FRDM-MCXW70
Hardware requirements
  • Type-C USB cable

  • FRDM-MCXW70 Board

  • Personal Computer

Board settings

The example requires 2 sets of boards, each of them is mounted with the base board. To make example work, connections needed to be as follows on each base board:

Board to board connections needed to be as follows:

        Node A           connect to      Node B
Pin Name   Board Location         Pin Name    Board Location
CANH       J16-1                  CANH        J16-1
CANL       J16-2                  CANL        J16-2
GND        J16-4                  GND         J16-4
Prepare the Demo
  1. Connect a USB cable between the host PC and the FRDM board J28.

  2. 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

  3. Download the program to the target board.

  4. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Running the demo

After connecting the two boards, these instructions display on each terminal window. One board must be chosen as node A and the other board as node B. (Note: Node B should start first) Data is sent continuously between the node A and the node B.

This message displays on the node A terminal:

FlexCAN pretended networking wake up example. Please select local node as A or B: Note: Node B should start first. Node:a Press any key to trigger one-shot transmission Send message ID: 0x123, payload: 0x0000000000005500

Press any key to trigger the next transmission! Send message ID: 0x123, payload: 0x0000000000005501

Press any key to trigger the next transmission! Send message ID: 0x125, payload: 0x0000000000005502

Press any key to trigger the next transmission! Send message ID: 0x125, payload: 0x0000000000005503

Press any key to trigger the next transmission! Send message ID: 0x123, payload: 0x0000000000005504

Press any key to trigger the next transmission! Send message ID: 0x123, payload: 0x0000000000005600


This message displays on the node B terminal:

FlexCAN pretended networking wake up example.
Please select local node as A or B:
Note: Node B should start first.
Node:b
Note B will enter lower power mode and wake up until received 4 specific messages.
Wake up message format: Standard (11 bit id)
Wake up message ID range: 0x123 to 0x124
Wake up payload range : 0x0000000000005500 to 0x0000000000005600
Waken up!
Match message 0 ID: 0x123, payload: 0x0000000000005500
Match message 1 ID: 0x123, payload: 0x0000000000005501
Match message 2 ID: 0x123, payload: 0x0000000000005504
Match message 3 ID: 0x123, payload: 0x0000000000005600
Enter lower power mode again!

FRDM-MCXA287
Hardware requirements
  • Type-C USB cable

  • FRDM-MCXA287 Board

  • Personal Computer

Board settings

The example requires 2 sets of boards, each of them is mounted with the base board. To make example work, connections needed to be as follows on each base board:

Board to board connections needed to be as follows:

        Node A           connect to      Node B
Pin Name   Board Location         Pin Name    Board Location
CANH       J14-1                  CANH        J14-1
CANL       J14-2                  CANL        J14-2
GND        J14-4                  GND         J14-4
Prepare the Demo
  1. Connect the type-C USB cable between the PC host and the USB ports on the board.

  2. 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

  3. Download the program to the target board.

  4. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Running the demo

After connecting the two boards, these instructions display on each terminal window. One board must be chosen as node A and the other board as node B. (Note: Node B should start first) Data is sent continuously between the node A and the node B.

This message displays on the node A terminal:

FlexCAN pretended networking wake up example. Please select local node as A or B: Note: Node B should start first. Node:a Press any key to trigger one-shot transmission Send message ID: 0x123, payload: 0x0000000000005500

Press any key to trigger the next transmission! Send message ID: 0x123, payload: 0x0000000000005501

Press any key to trigger the next transmission! Send message ID: 0x125, payload: 0x0000000000005502

Press any key to trigger the next transmission! Send message ID: 0x125, payload: 0x0000000000005503

Press any key to trigger the next transmission! Send message ID: 0x123, payload: 0x0000000000005504

Press any key to trigger the next transmission! Send message ID: 0x123, payload: 0x0000000000005600


This message displays on the node B terminal:

FlexCAN pretended networking wake up example.
Please select local node as A or B:
Note: Node B should start first.
Node:b
Note B will enter lower power mode and wake up until received 4 specific messages.
Wake up message format: Standard (11 bit id)
Wake up message ID range: 0x123 to 0x124
Wake up payload range : 0x0000000000005500 to 0x0000000000005600
Waken up!
Match message 0 ID: 0x123, payload: 0x0000000000005500
Match message 1 ID: 0x123, payload: 0x0000000000005501
Match message 2 ID: 0x123, payload: 0x0000000000005504
Match message 3 ID: 0x123, payload: 0x0000000000005600
Enter lower power mode again!