cmsis_lpspi_edma_b2b_transfer_master#
Overview#
The cmsis_lpspi_edma_b2b_transfer example shows how to use LPSPI CMSIS driver with eDMA.
In this example , we need two boards, one board used as LPSPI master and another board used as LPSPI slave. The file ‘cmsis_lpspi_edma_b2b_transfer_master.c’ includes the LPSPI master code.
The LPSPI master send/receive data to/from the LPSPI slave using eDMA.
Running the demo#
When the demo runs successfully, you will see output in the terminal like this:
LPSPI CMSIS driver board to board edma example.
This example use one board as master and another as slave.
Master and slave uses EDMA way. Slave should start first.
Please make sure you make the correct line connection. Basically, the connection is:
LPSPI_master -- LPSPI_slave
CLK -- CLK
PCS -- PCS
SOUT -- SIN
SIN -- SOUT
GND -- GND
Make sure the slave example is running, then press any key to continue.
Master transmit:
1 2 3 4 5 6 7 8 9 A B C D E F 10
11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F 20
21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30
31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40
This is LPSPI_MasterSignalEvent_t
Master transmit data to slave has completed!
This is LPSPI_MasterSignalEvent_t
Master receive data from slave has completed!
LPSPI transfer all data matched!
Master received:
1 2 3 4 5 6 7 8 9 A B C D E F 10
11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F 20
21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30
31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40
Press any key to run again.
Supported Boards#
EVK9-MIMX8ULP
Hardware requirements
Micro USB cable
two MIMX8ULP-EVK/EVK9 boards
J-Link Debug Probe
5V power supply
Personal Computer
Board settings
Remove R139, R159 and populate R140, R158 on both base boards.
SPI one board: Transfer data from one board instance to another board’s instance. SPI1 pins are connected with SPI1 pins of another board
INSTANCE0(SPI1) CONNECTS TO INSTANCE0(SPI1)
Pin Name Board Location Pin Name Board Location
SPI1_SCK J23 pin 4 SPI1_SCK J23 pin 4
SPI1_SIN J23 pin 2 SPI1_SOUT J23 pin 3
SPI1_SOUT J23 pin 3 SPI1_SIN J23 pin 2
SPI1_PCS0 J23 pin 1 SPI1_PCS0 J23 pin 1
GND GND
Prepare the Demo
Connect 5V power supply and J-Link Debug Probe 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 cold boot your board or launch the debugger in your IDE to begin running the example.
IMX952LPD5EVK-19
Hardware requirements
Micro USB cable
two IMX952-EVK boards
J-Link Debug Probe
12V~20V power supply
Personal Computer
Board settings
set SW1 into 0000 on IMX952-EVK
Transfer data from one board instance to another board’s instance. SPI7 pins are connected with SPI7 pins of another board
INSTANCE0(SPI7) CONNECTS TO INSTANCE0(SPI7)
Pin Name Board Location Pin Name Board Location
SPI_SCK IMX952LPD5EVK-19 JP1 pin 5 SPI7_SCK IMX952LPD5EVK-19 JP1 pin 5
SPI_SIN IMX952LPD5EVK-19 JP1 pin 3 SPI7_SOUT IMX952LPD5EVK-19 JP1 pin 4
SPI_SOUT IMX952LPD5EVK-19 JP1 pin 4 SPI7_SIN IMX952LPD5EVK-19 JP1 pin 3
SPI_PCS0 IMX952LPD5EVK-19 JP1 pin 2 SPI7_PCS0 IMX952LPD5EVK-19 JP1 pin 2
GND GND
Prepare the Demo
Connect 12V~20V power supply and J-Link Debug Probe 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 cold boot your board or launch the debugger in your IDE to begin running the example.
EVKB-IMXRT1050
Hardware requirements
Mini/micro USB cable
EVKB-IMXRT1050 board
Personal Computer
Board settings
Remove the resistor R334 and weld 0Ω resistor to R278,R279,R280,R281.
LPSPI:
INSTANCE1(LPSPI1) CONNECTS TO INSTANCE1(LPSPI1)
Pin Name Board Location Pin Name Board Location
SOUT J24 pin 4 SIN J24 pin 5
SIN J24 pin 5 SOUT J24 pin 4
SCK J24 pin 6 SCK J24 pin 6
PCS0 J24 pin 3 PCS0 J24 pin 3
GND J24 pin 7 GND J24 pin 7
Prepare the Demo
Connect a mini USB cable between the PC host and the OpenSDA USB port 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 demo.
MIMXRT1060-EVKB
Hardware requirements
Mini/micro USB cable
MIMXRT1060-EVKB board
Personal Computer
Board settings
Weld 0Ω resistor to R346,R350,R356,R362.
LPSPI:
MASTER connect to SLAVE
Pin Name Board Location Pin Name Board Location
SOUT J17-4 SIN J17-5
SIN J17-5 SOUT J17-4
SCK J17-6 SCK J17-6
PCS0 J17-3 PCS0 J17-3
GND J17-7 GND J17-7
Prepare the Demo
Connect a mini USB cable between the PC host and the OpenSDA USB port 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 demo.
MIMXRT1170-EVKB
Hardware requirements
Mini/micro USB cable
MIMXRT1170-EVKB board
Personal Computer
Board settings
Remove 0Ω resistors R200,R404,R406.
LPSPI:
MASTER connect to SLAVE
Pin Name Board Location Pin Name Board Location
SOUT J10-8 SIN J10-10
SIN J10-10 SOUT J10-8
SCK J10-12 SCK J10-12
PCS0 J10-6 PCS0 J10-6
GND J10-14 GND J10-14
Prepare the Demo
Connect a mini USB cable between the PC host and the OpenSDA USB port 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 demo.
MIMXRT1060-EVKC
Hardware requirements
Mini/micro USB cable
MIMXRT1060-EVKC board
Personal Computer
Board settings
Weld 0Ω resistor to R346,R350,R356,R362.
LPSPI:
MASTER connect to SLAVE
Pin Name Board Location Pin Name Board Location
SOUT J17-4 SIN J17-5
SIN J17-5 SOUT J17-4
SCK J17-6 SCK J17-6
PCS0 J17-3 PCS0 J17-3
GND J17-7 GND J17-7
Prepare the Demo
Connect a mini USB cable between the PC host and the OpenSDA USB port 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 demo.
FRDM-IMXRT1152
Hardware requirements
Type-C USB cable
FRDM-IMXRT1152 board
Personal Computer
Board settings
LPSPI:
MASTER connect to SLAVE
Pin Name Board Location Pin Name Board Location
SOUT J11 pin 8 SIN J11 pin 10
SIN J11 pin 10 SOUT J11 pin 8
SCK J11 pin 12 SCK J11 pin 12
PCS0 J11 pin 6 PCS0 J11 pin 6
GND J11 pin 14 GND J11 pin 14
Prepare the Demo
Connect a mini USB cable between the PC host and the OpenSDA USB port 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 demo.
EVK-MCIMX7ULP
Hardware requirements
Micro USB cable
two MCIMX7ULP-EVK boards
J-Link Debug Probe
5V power supply
Personal Computer
Board settings
Populate R188, R189, R190, R191 on both base boards.
SPI one board: Transfer data from one board instance to another board’s instance. SPI1 pins are connected with SPI1 pins of another board
INSTANCE0(SPI1) CONNECTS TO INSTANCE0(SPI1)
Pin Name Board Location Pin Name Board Location
SPI1_SCK J8 pin 6 SPI1_SCK J8 pin 6
SPI1_SIN J8 pin 5 SPI1_SOUT J8 pin 4
SPI1_SOUT J8 pin 4 SPI1_SIN J8 pin 5
SPI1_PCS0 J8 pin 3 SPI1_PCS0 J8 pin 3
GND GND
Please note this application can’t support running with Linux BSP! Note
Because of the LPSPI signal pin allocating issue, you can not restart this demo/example by press the ResetButton(SW3):
The LPSPI1_SIN, LPSPI1_SOUT, LPSPI1_SCK and LPSPI1_PCS0 pins are connected to PTA12, PTA13, PTA14 and PTA15 pads.
These pins are also used as BOO_CFG12, BOO_CFG13, BOO_CFG14 and BOO_CFG15 when the i.MX SoC reboot. These signals are
driven by LPSPI1 pins on the other board, when user press ResetButton. This may cause M4 Core enter enter
incorrect boot modes and only re-powerup both boards can let the M4 core exit such modes.
##### Prepare the Demo
1. Connect 5V power supply and J-Link Debug Probe to the board, switch SW1 to power on the board.
2. Connect a micro USB cable between the host PC and the J6 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 cold boot your board or launch the debugger in your IDE to begin running the example.
EVK-MIMX8ULP
Hardware requirements
Micro USB cable
two MIMX8ULP-EVK/EVK9 boards
J-Link Debug Probe
5V power supply
Personal Computer
Board settings
Remove R139, R159 and populate R140, R158 on both base boards.
SPI one board: Transfer data from one board instance to another board’s instance. SPI1 pins are connected with SPI1 pins of another board
INSTANCE0(SPI1) CONNECTS TO INSTANCE0(SPI1)
Pin Name Board Location Pin Name Board Location
SPI1_SCK J23 pin 4 SPI1_SCK J23 pin 4
SPI1_SIN J23 pin 2 SPI1_SOUT J23 pin 3
SPI1_SOUT J23 pin 3 SPI1_SIN J23 pin 2
SPI1_PCS0 J23 pin 1 SPI1_PCS0 J23 pin 1
GND GND
Prepare the Demo
Connect 5V power supply and J-Link Debug Probe 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 cold boot your board or launch the debugger in your IDE to begin running the example.
EVK-MIMXRT1010
Hardware requirements
Mini/micro USB cable
EVK-MIMXRT1010 board
Personal Computer
Board settings
LPSPI:
MASTER connect to SLAVE
Pin Name Board Location Pin Name Board Location
SOUT J57-10 SIN J57-8
SIN J57-8 SOUT J57-10
SCK J57-12 SCK J57-12
PCS0 J57-6 PCS0 J57-6
GND J57-14 GND J57-14
Prepare the Demo
Connect a mini USB cable between the PC host and the OpenSDA USB port 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 demo.
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 J41.
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.
EVK-MIMXRT1015
Hardware requirements
Mini/micro USB cable
EVK-MIMXRT1015 board
Personal Computer
Board settings
Remove R293 LPSPI:
MASTER connect to SLAVE
Pin Name Board Location Pin Name Board Location
SOUT J19-4 SIN J19-5
SIN J19-5 SOUT J19-4
SCK J19-6 SCK J19-6
PCS0 J19-3 PCS0 J19-3
GND J19-7 GND J19-7
Prepare the Demo
Connect a mini USB cable between the PC host and the OpenSDA USB port 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 demo.
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 J41.
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.
EVK-MIMXRT1020
Hardware requirements
Mini/micro USB cable
EVK-MIMXRT1020 board
Personal Computer
Board settings
LPSPI:
MASTER connect to SLAVE
Pin Name Board Location Pin Name Board Location
SOUT J19-4 SIN J19-5
SIN J19-5 SOUT J19-4
SCK J19-6 SCK J19-6
PCS0 J19-3 PCS0 J19-3
GND J19-7 GND J19-7
Prepare the Demo
Connect a mini USB cable between the PC host and the OpenSDA USB port 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 demo.
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
LPSPI:
MASTER connect to SLAVE
Pin Name Board Location Pin Name Board Location
SOUT J19-8 SIN J19-10
SIN J19-10 SOUT J19-8
SCK J19-12 SCK J19-12
PCS0 J19-6 PCS0 J19-6
GND J19-14 GND J19-14
Prepare the Demo
Connect a mini USB cable between the PC host and the OpenSDA USB port 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 demo.
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
Weld 0Ω resistor to R346,R350,R356,R362.
LPSPI:
MASTER connect to SLAVE
Pin Name Board Location Pin Name Board Location
SOUT J17-4 SIN J17-5
SIN J17-5 SOUT J17-4
SCK J17-6 SCK J17-6
PCS0 J17-3 PCS0 J17-3
GND J17-7 GND J17-7
Prepare the Demo
Connect a mini USB cable between the PC host and the OpenSDA USB port 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 demo.
EVK-MIMXRT1064
Hardware requirements
Mini/micro USB cable
EVK-MIMXRT1064 board
Personal Computer
Board settings
Weld 0Ω resistor to R278,R279,R280,R281.
LPSPI:
MASTER connect to SLAVE
Pin Name Board Location Pin Name Board Location
SOUT J24-4 SIN J24-5
SIN J24-5 SOUT J24-4
SCK J24-6 SCK J24-6
PCS0 J24-3 PCS0 J24-3
GND J24-7 GND J24-7
Prepare the Demo
Connect a mini USB cable between the PC host and the OpenSDA USB port 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 demo.
MIMXRT1160-EVK
Hardware requirements
Mini/micro USB cable
MIMXRT1160-EVK board
Personal Computer
Board settings
Remove 0Ω resistors R200,R404,R406,R408.
LPSPI:
MASTER connect to SLAVE
Pin Name Board Location Pin Name Board Location
SOUT J10-8 SIN J10-10
SIN J10-10 SOUT J10-8
SCK J10-12 SCK J10-12
PCS0 J10-6 PCS0 J10-6
GND J10-14 GND J10-14
Prepare the Demo
Connect a mini USB cable between the PC host and the OpenSDA USB port 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 demo.
MIMXRT1180-EVK
Hardware requirements
Mini/micro USB cable
MIMXRT1180-EVK board
Personal Computer
Board settings
SPI one board: Transfer data from one board instance to another board’s instance. SPI3 pins are connected with SPI3 pins of another board
INSTANCE(LPSPI3) CONNECTS TO INSTANCE(LPSPI3)
Pin Name Board Location Pin Name Board Location
SOUT J44-8 SIN J44-10
SIN J44-10 SOUT J44-8
SCK J44-12 SCK J44-12
PCS0 J44-6 PCS0 J44-6
GND J44-14 GND J44-14
Prepare the Demo
Connect a mini USB cable between the PC host and the OpenSDA USB port 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 demo.
FRDM-K32L2A4S
Hardware requirements
Mini USB cable
Two FRDM-K32L2A4S boards
Personal Computer
Board settings
SPI one board: Transfer data from one board instance to another board’s instance. SPI0 pins are connected with SPI0 pins of another board
INSTANCE0(SPI0) CONNECTS TO INSTANCE0(SPI0)
Pin Name Board Location Pin Name Board Location
SOUT J2 pin 8 SIN J2 pin 10
SIN J2 pin 10 SOUT J2 pin 8
SCK J2 pin 12 SCK J2 pin 12
PCS0 J2 pin 6 PCS0 J2 pin 6
GND J2 pin 14 GND J2 pin 14
Prepare the Demo
Connect a mini USB cable between the PC host and the OpenSDA USB port 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.
Reset the SoC and run the project.
FRDM-K32L3A6
Hardware requirements
Mini USB cable
Two FRDM-K32L3A6 boards
Personal Computer
Board settings
SPI two board: Transfer data from one board instance to another board’s instance. To make lpspi example work(M4), connections needed to be as follows: SPI0 pins are connected with SPI0 pins of another board
INSTANCE0(SPI0) CONNECTS TO INSTANCE0(SPI0)
Pin Name Board Location Pin Name Board Location
SOUT J2 pin 8 SIN J2 pin 10
SIN J2 pin 10 SOUT J2 pin 8
SCK J2 pin 12 SCK J2 pin 12
PCS2 J2 pin 6 PCS2 J2 pin 6
GND J2 pin 14 GND J2 pin 14
To make lpspi example work(M0), connections needed to be as follows: SPI3 pins are connected with SPI3 pins of another board
INSTANCE3(SPI3) CONNECTS TO INSTANCE3(SPI3)
Pin Name Board Location Pin Name Board Location
SOUT J1 pin 2 SIN J1 pin 6
SIN J1 pin 6 SOUT J1 pin 2
SCK J3 pin 5 SCK J3 pin 5
PCS1 J3 pin 9 PCS1 J3 pin 9
GND J2 pin 14 GND J2 pin 14
Prepare the Demo
Connect a mini USB cable between the PC host and the OpenSDA USB port 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.
Reset the SoC and run the project.
FRDM-KE15Z
Hardware requirements
Micro USB cable
Two FRDM-KE15Z boards
Personal Computer
Board settings
SPI one board: Transfer data from one board instance to another board’s instance. SPI0 pins are connected with SPI0 pins of another board
INSTANCE0(SPI0) CONNECTS TO INSTANCE0(SPI0)
Pin Name Board Location Pin Name Board Location
SOUT J2 pin 8 SIN J2 pin 10
SIN J2 pin 10 SOUT J2 pin 8
SCK J2 pin 12 SCK J2 pin 12
PCS3 J2 pin 6 PCS3 J2 pin 6
GND J2 pin 14 GND J2 pin 14
Prepare the Demo
Connect a mini USB cable between the PC host and the OpenSDA USB port 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.
Reset the SoC and run the project.
FRDM-KE17Z
Hardware requirements
Micro USB cable
Two FRDM-KE17Z boards
Personal Computer
Board settings
SPI two boards: Transfer data from one board instance to another board’s instance. SPI0 pins are connected with SPI0 pins of another board
INSTANCE0(SPI0) CONNECTS TO INSTANCE0(SPI0)
Pin Name Board Location Pin Name Board Location
SOUT J2 pin 8 SIN J2 pin 10
SIN J2 pin 10 SOUT J2 pin 8
SCK J2 pin 12 SCK J2 pin 12
PCS1 J2 pin 6 PCS1 J2 pin 6
GND J2 pin 14 GND J2 pin 14
Prepare the Demo
Connect a mini USB cable between the PC host and the OpenSDA USB port 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.
Reset the SoC and run the project.
FRDM-KE17Z512
Hardware requirements
Micro USB cable
Two FRDM-KE17Z512 boards
Personal Computer
Board settings
SPI two boards: Transfer data from one board instance to another board’s instance. SPI0 pins are connected with SPI0 pins of another board
INSTANCE0(SPI0) CONNECTS TO INSTANCE0(SPI0)
Pin Name Board Location Pin Name Board Location
SOUT J2 pin 8 SIN J2 pin 10
SIN J2 pin 10 SOUT J2 pin 8
SCK J2 pin 12 SCK J2 pin 12
PCS2 J2 pin 6 PCS2 J2 pin 6
GND J2 pin 14 GND J2 pin 14
Prepare the Demo
Connect a USB cable between the PC host and the MCU-LINK USB port on the board.
Open a serial terminal on PC for MCU-LINK 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.
Reset the SoC and run the project.
FRDM-MCXA153
Toolchain supported
IAR embedded Workbench 9.40.1
Keil MDK 5.38.1
GCC ARM Embedded 12.2
MCUXpresso 11.8.0
Hardware requirements
Type-C USB cable
FRDM-MCXA153 board
Personal Computer
Board settings
LPSPI:
MASTER(SPI0) connect to SLAVE(SPI1)
Pin Name Board Location Pin Name Board Location
SOUT J6-6 SIN J2-10
SIN J6-5 SOUT J2-8
SCK J6-4 SCK J2-12
PCS0 J6-3 PCS1 J2-6
GND J6-8 GND J6-8
Prepare the Demo
Connect a Type-C USB cable between the host PC and the MCU-Link port(J15) on the target board.
Open a serial terminal on PC for MCU-Link 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.
FRDM-MCXA156
Toolchain supported
IAR embedded Workbench 9.40.1
Keil MDK 5.38.1
GCC ARM Embedded 12.2
MCUXpresso 11.8.0
Hardware requirements
Type-C USB cable
FRDM-MCXA156 board
Personal Computer
Board settings
LPSPI:
MASTER(SPI0) connect to SLAVE(SPI1)
Pin Name Board Location Pin Name Board Location
SOUT J6-6 SIN J3-9
SIN J6-5 SOUT J3-11
SCK J6-4 SCK J3-7
PCS0 J6-3 PCS1 J3-5
GND J6-8 GND J6-8
Prepare the Demo
Connect a Type-C USB cable between the host PC and the MCU-Link USB port on the target board.
Open a serial terminal on PC for MCU-Link 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.
FRDM-MCXA344
Toolchain supported
IAR embedded Workbench 9.40.1
Keil MDK 5.38.1
GCC ARM Embedded 12.2
MCUXpresso 11.8.0
Hardware requirements
Type-C USB cable
FRDM-MCXA344 board
Personal Computer
Board settings
LPSPI:
MASTER(SPI1) connect to SLAVE(SPI1)
Pin Name Board Location Pin Name Board Location
SOUT J2-8 SIN J2-10
SIN J2-10 SOUT J2-8
SCK J2-12 SCK J2-12
PCS0 J2-6 PCS1 J2-6
GND J2-14 GND J2-14
Prepare the Demo
Connect a Type-C USB cable between the host PC and the MCU-Link USB port on the target board.
Open a serial terminal on PC for MCU-Link 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.
FRDM-MCXA346
Toolchain supported
IAR embedded Workbench 9.40.1
Keil MDK 5.38.1
GCC ARM Embedded 12.2
MCUXpresso 11.8.0
Hardware requirements
Type-C USB cable
FRDM-MCXA346 board
Personal Computer
Board settings
LPSPI:
MASTER(SPI1) connect to SLAVE(SPI1)
Pin Name Board Location Pin Name Board Location
SOUT J2-8 SIN J2-10
SIN J2-10 SOUT J2-8
SCK J2-12 SCK J2-12
PCS0 J2-6 PCS1 J2-6
GND J2-14 GND J2-14
Prepare the Demo
Connect a Type-C USB cable between the host PC and the MCU-Link USB port on the target board.
Open a serial terminal on PC for MCU-Link 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.
FRDM-MCXE247
Hardware requirements
USB-C cable
Two FRDM-MCXE247 boards
Personal Computer
Board settings
SPI two boards: Transfer data from one board instance to another board’s instance. SPI0 pins are connected with SPI0 pins of another board
INSTANCE0(SPI0) CONNECTS TO INSTANCE0(SPI0)
Pin Name Board Location Pin Name Board Location
SOUT J6 pin 6 SIN J6 pin 5
SIN J6 pin 5 SOUT J6 pin 6
SCK J6 pin 4 SCK J6 pin 4
PCS2 J6 pin 3 PCS2 J6 pin 3
GND J6 pin 8 GND J6 pin 8
Prepare the Demo
Connect a USB cable between the PC host and the MCU-LINK USB port on the board.
Open a serial terminal on PC for MCU-LINK 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.
Reset the SoC and run the project.
FRDM-MCXL255
Hardware requirements
Type-C USB cable
FRDM-MCXL255 board
Personal Computer
Board settings
LPSPI:
MASTER (SPI1) SLAVE (SPI1)
Pin Name Board Location Pin Name Board Location
SOUT J2-8 SIN J2-10
SIN J2-10 SOUT J2-8
SCK J2-12 SCK J2-12
PCS0 J2-6 PCS1 J2-6
GND J2-14 GND J2-14
Make sure you have solder bridges SJ1 and SJ2 set to
2-1 for the main core (cm33)
Prepare the Demo
Note: MCUXpresso IDE project default debug console is semihost
Connect a Type-C USB cable between the host PC and the MCU-Link port(J16) 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.
FRDM-MCXN236
Hardware requirements
Mini USB cable
FRDM-MCXN236 board
Personal Computer
Board settings
LPSPI:
MASTER connect to SLAVE
Pin Name Board Location Pin Name Board Location
SOUT J2 Pin 8 SIN J2 Pin 10
SIN J2 Pin 10 SOUT J2 Pin 8
SCK J2 Pin 12 SCK J2 Pin 12
PCS0 J2 Pin 6 PCS0 J2 Pin 6
GND J2 pin 14 GND J2 pin 14
Prepare the Demo
Connect a mini USB cable between the PC host and the MCU-Link USB port on the board.
Open a serial terminal on PC for MCU-Link 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.
Reset the SoC and run the project.
FRDM-MCXN947
Hardware requirements
Mini USB cable
Two FRDM-MCXN947 boards
Personal Computer
Board settings
LPSPI:
MASTER connect to SLAVE
Pin Name Board Location Pin Name Board Location
SOUT J2 Pin 8 SIN J2 Pin 10
SIN J2 Pin 10 SOUT J2 Pin 8
SCK J2 Pin 12 SCK J2 Pin 12
PCS0 J2 Pin 6 PCS0 J2 Pin 6
GND J2 pin 14 GND J2 pin 14
Prepare the Demo
Connect a mini USB cable between the PC host and the MCU-Link USB port on the board.
Open a serial terminal on PC for MCU-Link 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.
Reset the SoC and run the project.
FRDM-MCXN947T
Hardware requirements
Mini USB cable
Two FRDM-MCXN947T boards
Personal Computer
Board settings
LPSPI:
MASTER connect to SLAVE
Pin Name Board Location Pin Name Board Location
SOUT J2 Pin 8 SIN J2 Pin 10
SIN J2 Pin 10 SOUT J2 Pin 8
SCK J2 Pin 12 SCK J2 Pin 12
PCS0 J2 Pin 6 PCS0 J2 Pin 6
GND J2 pin 14 GND J2 pin 14
Prepare the Demo
Connect a mini USB cable between the PC host and the MCU-Link USB port on the board.
Open a serial terminal on PC for MCU-Link 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.
Reset the SoC and run the project.
FRDM-MCXW71
Hardware requirements
Type-C USB cable
FRDM-MCXW71 Board
Personal Computer
Board settings
To make the example work, connections needed to be as follows: Note: Be sure to disconnect the 12V adapter on J9, otherwise the transmission will fail. Jumper setting:
MASTER(SPI0) connect to SLAVE(SPI0)
Pin Name Board Location Pin Name Board Location
SOUT J2 pin 9 SIN J1 pin 2
SIN J1 pin 2 SOUT J2 pin 9
SCK J1 pin 5 SCK J1 pin 5
PCS0 J1 pin 1 PCS0 J1 pin 1
Other jumpers keep default configuration.
Prepare the Demo
Connect a mini USB cable between the PC host and the OpenSDA USB port 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 demo.
MCX-W71-EVK
Hardware requirements
Type-C USB cable
MCX-W71-EVK Board
Personal Computer
Board settings
To make the example work, connections needed to be as follows: Note: Be sure to disconnect the 12V adapter on J9, otherwise the transmission will fail. Jumper setting:
MASTER(SPI1) connect to SLAVE(SPI1)
Pin Name Board Location Pin Name Board Location
SOUT J2 pin 13 SIN J2 pin 11
SIN J2 pin 11 SOUT J2 pin 13
SCK J2 pin 9 SCK J2 pin 9
PCS0 J2 pin 15 PCS0 J2 pin 15
Other jumpers keep default configuration.
Prepare the Demo
Connect a mini USB cable between the PC host and the OpenSDA USB port 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 demo.
KW45B41Z-EVK
Hardware requirements
Mini/micro USB cable
KW45B41Z-EVK Board
Personal Computer
Board settings
To make the example work, connections needed to be as follows: Note: Be sure to disconnect the 12V adapter on J9, otherwise the transmission will fail. Jumper setting:
MASTER(SPI0) connect to SLAVE(SPI0)
Pin Name Board Location Pin Name Board Location
SOUT J2 pin 2 SIN J1 pin 2
SIN J1 pin 2 SOUT J2 pin 2
SCK J1 pin 5 SCK J1 pin 5
PCS0 J1 pin 1 PCS0 J1 pin 1
Other jumpers keep default configuration.
Prepare the Demo
Connect a mini USB cable between the PC host and the OpenSDA USB port 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 demo.
KW47-EVK
Hardware requirements
Type-C USB cable
KW47-EVK Board
Personal Computer
Board settings
To make the example work, connections needed to be as follows: Note: Be sure to disconnect the 12V adapter on J9, otherwise the transmission will fail. Jumper setting:
MASTER(SPI1) connect to SLAVE(SPI1)
Pin Name Board Location Pin Name Board Location
SOUT J2 pin 13 SIN J2 pin 11
SIN J2 pin 11 SOUT J2 pin 13
SCK J2 pin 9 SCK J2 pin 9
PCS0 J2 pin 15 PCS0 J2 pin 15
Other jumpers keep default configuration.
Prepare the Demo
Connect a mini USB cable between the PC host and the OpenSDA USB port 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 demo.
MCX-N5XX-EVK
Hardware requirements
Mini USB cable
Two MCX-N5XX-EVK boards
Personal Computer
Board settings
LPSPI:
MASTER connect to SLAVE
Pin Name Board Location Pin Name Board Location
SOUT J2 Pin 8 SIN J2 Pin 10
SIN J2 Pin 10 SOUT J2 Pin 8
SCK J2 Pin 12 SCK J2 Pin 12
PCS0 J2 Pin 6 PCS0 J2 Pin 6
GND J2 pin 14 GND J2 pin 14
Prepare the Demo
Connect a mini USB cable between the PC host and the MCU-Link USB port on the board.
Open a serial terminal on PC for MCU-Link 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.
Reset the SoC and run the project.
MCX-N9XX-EVK
Hardware requirements
Mini USB cable
Two MCX-N9XX-EVK boards
Personal Computer
Board settings
LPSPI:
MASTER connect to SLAVE
Pin Name Board Location Pin Name Board Location
SOUT J2 Pin 8 SIN J2 Pin 10
SIN J2 Pin 10 SOUT J2 Pin 8
SCK J2 Pin 12 SCK J2 Pin 12
PCS0 J2 Pin 6 PCS0 J2 Pin 6
GND J2 pin 14 GND J2 pin 14
Prepare the Demo
Connect a mini USB cable between the PC host and the MCU-Link USB port on the board.
Open a serial terminal on PC for MCU-Link 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.
Reset the SoC and run the project.
MCX-W72-EVK
Hardware requirements
Type-C USB cable
MCX-W72-EVK Board
Personal Computer
Board settings
To make the example work, connections needed to be as follows: Note: Be sure to disconnect the 12V adapter on J9, otherwise the transmission will fail. Jumper setting:
MASTER(SPI1) connect to SLAVE(SPI1)
Pin Name Board Location Pin Name Board Location
SOUT J2 pin 13 SIN J2 pin 11
SIN J2 pin 11 SOUT J2 pin 13
SCK J2 pin 9 SCK J2 pin 9
PCS0 J2 pin 15 PCS0 J2 pin 15
Other jumpers keep default configuration.
Prepare the Demo
Connect a mini USB cable between the PC host and the OpenSDA USB port 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 demo.
MIMXRT700-EVK
Hardware requirements
Mini USB cable
MIMXRT700-EVK board
Personal Computer
Board settings
Make sure JP12 is installed
SPI two boards: Transfer data from one board instance to another board’s instance. SPI14 pins are connected with SPI14 pins of another board
INSTANCE0(SPI14) CONNECTS TO INSTANCE0(SPI14)
Pin Name Board Location Pin Name Board Location
SOUT J20 pin 3 SIN J20 pin 5
SIN J20 pin 5 SOUT J20 pin 3
SCK J20 pin 7 SCK J20 pin 7
PCS0 J20 pin 1 PCS0 J20 pin 1
GND J20 pin 9 GND J20 pin 9
Prepare the Demo
Connect a mini USB cable between the PC host and the MCU-Link USB port on the board.
Open a serial terminal on PC for MCU-Link 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.
Reset the SoC and run the project.
KW47-LOC
Hardware requirements
Type-C USB cable
KW47-LOC Board
Personal Computer
Board settings
To make the example work, connections needed to be as follows: Note: Be sure to disconnect the 12V adapter on J9, otherwise the transmission will fail. Jumper setting:
MASTER(SPI1) connect to SLAVE(SPI1)
Pin Name Board Location Pin Name Board Location
SOUT J1 pin 6 SIN J1 pin 5
SIN J1 pin 5 SOUT J1 pin 6
SCK J1 pin 4 SCK J1 pin 4
PCS0 J1 pin 3 PCS0 J1 pin 3
Other jumpers keep default configuration.
Prepare the Demo
Connect a USB cable between the PC host and the OpenSDA USB port 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 demo.
MCXW72-LOC
Hardware requirements
Type-C USB cable
MCXW72-LOC Board
Personal Computer
Board settings
To make the example work, connections needed to be as follows: Note: Be sure to disconnect the 12V adapter on J9, otherwise the transmission will fail. Jumper setting:
MASTER(SPI1) connect to SLAVE(SPI1)
Pin Name Board Location Pin Name Board Location
SOUT J1 pin 6 SIN J1 pin 5
SIN J1 pin 5 SOUT J1 pin 6
SCK J1 pin 4 SCK J1 pin 4
PCS0 J1 pin 3 PCS0 J1 pin 3
Other jumpers keep default configuration.
Prepare the Demo
Connect a USB cable between the PC host and the OpenSDA USB port 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 demo.
FRDM-IMXRT1186
Hardware requirements
Type-C USB cable
FRDM-IMXRT1186 board
Personal Computer
Board settings
SPI one board: Transfer data from one board instance to another board’s instance. SPI2 pins are connected with SPI2 pins of another board
INSTANCE(LPSPI2) CONNECTS TO INSTANCE(LPSPI2)
Pin Name Board Location Pin Name Board Location
SOUT J3-16 SIN J3-14
SIN J3-14 SOUT J3-16
SCK J3-18 SCK J3-18
PCS0 J3-12 PCS0 J3-12
GND J2-19 GND J2-19
Prepare the Demo
Connect a mini USB cable between the PC host and the OpenSDA USB port 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 demo.
FRDM-MCXA266
Toolchain supported
IAR embedded Workbench 9.40.1
Keil MDK 5.38.1
GCC ARM Embedded 12.2
MCUXpresso 11.8.0
Hardware requirements
Type-C USB cable
FRDM-MCXA266 board
Personal Computer
Board settings
LPSPI:
MASTER(SPI1) connect to SLAVE(SPI1)
Pin Name Board Location Pin Name Board Location
SOUT J2-8 SIN J2-10
SIN J2-10 SOUT J2-8
SCK J2-12 SCK J2-12
PCS0 J2-6 PCS1 J2-6
GND J2-14 GND J2-14
Prepare the Demo
Connect a Type-C USB cable between the host PC and the MCU-Link USB port on the target board.
Open a serial terminal on PC for MCU-Link 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.
FRDM-MCXA366
Toolchain supported
IAR embedded Workbench 9.40.1
Keil MDK 5.38.1
GCC ARM Embedded 12.2
MCUXpresso 11.8.0
Hardware requirements
Type-C USB cable
FRDM-MCXA366 board
Personal Computer
Board settings
LPSPI:
MASTER(SPI1) connect to SLAVE(SPI1)
Pin Name Board Location Pin Name Board Location
SOUT J2-8 SIN J2-10
SIN J2-10 SOUT J2-8
SCK J2-12 SCK J2-12
PCS0 J2-6 PCS1 J2-6
GND J2-14 GND J2-14
Prepare the Demo
Connect a Type-C USB cable between the host PC and the MCU-Link USB port on the target board.
Open a serial terminal on PC for MCU-Link 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.
FRDM-MCXW72
Hardware requirements
Type-C USB cable
FRDM-MCXW72 Board
Personal Computer
Board settings
To make the example work, connections needed to be as follows: Jumper setting:
MASTER(SPI1) connect to SLAVE(SPI1)
Pin Name Board Location Pin Name Board Location
SOUT J6 pin 6 SIN J6 pin 5
SIN J6 pin 5 SOUT J6 pin 6
SCK J6 pin 4 SCK J6 pin 4
PCS0 J6 pin 3 PCS0 J6 pin 3
Other jumpers keep default configuration.
Prepare the Demo
Connect a USB cable between the PC host and the OpenSDA USB port 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 demo.
FRDM-MCXA577
Hardware requirements
Type-C USB cable
FRDM-MCXA577 board
Personal Computer
Board settings
LPSPI:
MASTER(SPI1) connect to SLAVE(SPI1)
Pin Name Board Location Pin Name Board Location
SOUT J2-8 SIN J2-10
SIN J2-10 SOUT J2-8
SCK J2-12 SCK J2-12
PCS0 J2-6 PCS1 J2-6
GND J2-14 GND J2-14
Prepare the Demo
Connect a Type-C USB cable between the host PC and the MCU-Link USB port on the target board.
Open a serial terminal on PC for MCU-Link 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.
FRDM-MCXC162
Hardware requirements
Type-C USB cable
FRDM-MCXC162 board
Personal Computer
Board settings
LPSPI:
MASTER(SPI0) connect to SLAVE(SPI0)
Pin Name Board Location Pin Name Board Location
SOUT J2-8 SIN J2-10
SIN J2-10 SOUT J2-8
SCK J2-12 SCK J2-12
PCS0 J2-6 PCS1 J2-6
GND J2-14 GND J2-14
Prepare the Demo
Connect a Type-C USB cable between the host PC and the MCU-Link USB port on the target board.
Open a serial terminal on PC for MCU-Link 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.
FRDM-KW43
Hardware requirements
Type-C USB cable
FRDM-KW43 Board
Personal Computer
Board settings
To make the example work, connections needed to be as follows: Jumper setting:
MASTER(SPI1) connect to SLAVE(SPI1)
Pin Name Board Location Pin Name Board Location
SOUT J19 pin 5 SIN J19 pin 4
SIN J19 pin 4 SOUT J19 pin 5
SCK J19 pin 6 SCK J19 pin 6
PCS0 J19 pin 3 PCS0 J19 pin 3
Other jumpers keep default configuration.
Prepare the Demo
Connect a Type-C USB cable between the PC host and the OpenSDA USB port 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 demo.
FRDM-MCXW70
Hardware requirements
Type-C USB cable
FRDM-MCXW70 Board
Personal Computer
Board settings
To make the example work, connections needed to be as follows: Jumper setting:
MASTER(SPI1) connect to SLAVE(SPI1)
Pin Name Board Location Pin Name Board Location
SOUT J19 pin 5 SIN J19 pin 4
SIN J19 pin 4 SOUT J19 pin 5
SCK J19 pin 6 SCK J19 pin 6
PCS0 J19 pin 3 PCS0 J19 pin 3
Other jumpers keep default configuration.
Prepare the Demo
Connect a Type-C USB cable between the PC host and the OpenSDA USB port 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 demo.
FRDM-MCXA287
Hardware requirements
Type-C USB cable
FRDM-MCXA287 board
Personal Computer
Board settings
LPSPI:
MASTER(SPI1) connect to SLAVE(SPI1)
Pin Name Board Location Pin Name Board Location
SOUT J2-8 SIN J2-10
SIN J2-10 SOUT J2-8
SCK J2-12 SCK J2-12
PCS0 J2-6 PCS1 J2-6
GND J2-14 GND J2-14
Prepare the Demo
Connect a Type-C USB cable between the host PC and the MCU-Link USB port on the target board.
Open a serial terminal on PC for MCU-Link 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.
FRDM-IMX937
Hardware requirements
Micro USB cable
two FRDM-IMX937 boards
J-Link Debug Probe
12V~20V power supply
Personal Computer
Board settings
Connection as below:
MASTER(LPSPI7) connect to SLAVE(LPSPI7)
Pin Name Board Location Pin Name Board Location
PCS0 J18 pin 7 PCS0 J18 pin 7
SCK J18 pin 26 SCK J18 pin 26
SOUT J18 pin 31 SIN J18 pin 9
SIN J18 pin 9 SOUT J18 pin 31
GND J18 pin 6 GND J18 pin 6
IMPORTANT: SOUT/SIN (MOSI/MISO) lines MUST be crossed as shown above.
Note: J18 is the 40-PIN GPIO HDR expansion connector. - J18-Pin7: LPSPI7_PCS0 (GPIO_IO04) - Chip Select - J18-Pin26: LPSPI7_SCK (GPIO_IO07) - Clock - J18-Pin31: LPSPI7_SOUT (GPIO_IO06) - MOSI (connects to slave SIN) - J18-Pin9: LPSPI7_SIN (GPIO_IO05) - MISO (connects to slave SOUT) - J18-Pin6: Common Ground (any GND pin on J18 can be used) - Each board must be powered independently - No IO expander configuration required for this example
Prepare the Demo
Connect 12V~20V power supply and J-Link Debug Probe 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 cold boot your board or launch the debugger in your IDE to begin running the example.
FRDM-MCXA174
Toolchain supported
IAR embedded Workbench 9.40.1
Keil MDK 5.38.1
GCC ARM Embedded 12.2
MCUXpresso 11.8.0
Hardware requirements
Type-C USB cable
FRDM-MCXA174 board
Personal Computer
Board settings
LPSPI:
MASTER(SPI1) connect to SLAVE(SPI1)
Pin Name Board Location Pin Name Board Location
SOUT J2-8 SIN J2-10
SIN J2-10 SOUT J2-8
SCK J2-12 SCK J2-12
PCS0 J2-6 PCS1 J2-6
GND J2-14 GND J2-14
Prepare the Demo
Connect a Type-C USB cable between the host PC and the MCU-Link USB port on the target board.
Open a serial terminal on PC for MCU-Link 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.