Hardware requirements
Mini/micro USB cable
MIMXRT1160-EVK board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect a USB cable between the host PC and the OpenSDA USB port on the target board.
Open a serial terminal with the following settings:
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Download the program to the target board.
Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.
Running the demo
The log below shows the output of the eRPC Matrix Multiply RTOS demo in the terminal window:
Primary core started
Copy CORE1 image to address: 0x20200000, size: 15548
Matrix #1
=========
21 33 37 37 9
23 45 43 0 32
38 44 8 15 36
18 18 38 44 16
22 23 0 38 7
Matrix #2
=========
11 23 27 45 11
7 19 23 24 6
32 26 49 43 16
22 48 36 34 41
27 20 32 31 11
eRPC request is sent to the server
Result matrix
=============
2703 4028 4759 4865 2637
2808 3142 4787 4956 1563
2284 3358 4122 4736 1821
2940 4176 4858 4868 2894
1428 2907 2715 3051 2015
Press the SW7 button to initiate the next matrix multiplication
Note: The “Copy CORE1 image to address…” log message is not displayed on the terminal window when MCUXpresso IDE is used. In case of MCUXpresso IDE the secondary core image is copied to the target memory during startup automatically.
Note: To download binary of cm7 core into qspiflash and boot from qspiflash directly, following steps are needed:
Compile flash target of the project, and get the binaray file “hello_world.bin”.
Set the SW1: 1 off 2 off 3 on 4 off, then power on the board and connect USB cable to J11.
Drop the binaray into disk “RT1160-EVK” on PC.
Wait for the disk disappear and appear again which will take couple of seconds.
Reset the board by pressing SW3 or power off and on the board. (If default boot core is cm4, binary of cm4 could be downloaded and boot according to steps above.)
Note: To download and debug IAR EW project using J-Link (replacing the default CMSIS-DAP debug probe), following steps are needed:
Remove J6 and J7 jumpers.
Attach the J-Link probe (J-Link Plus / J-Trace) to the board using the J1 connector.
Set “J-Link / J-Trace” in CM7 project options -> Debugger -> Setup panel (replacing CMSIS-DAP option).
Unselect the “Use macro file(s)” in CM7 project options -> Debugger -> Setup panel.
Enable “Use command line options” in CM7 project options -> Debugger -> Extra Options panel (–jlink_script_file=$PROJ_DIR$/../evkmimxrt1160_connect_cm4_cm7side.jlinkscript command line option is applied).
Click on “Download and Debug” button. During the loading process you can be asked by J-Link sw to select the proper device name (MIMXRT1166XXXA_M7 is unknown). Click O.K. and choose the MIMXRT1166xxxxA device.
It is not possible to attach to the CM4 core when using the J-Link. Also, the multicore debugging does not work with that probe.
Note: To download and debug Keil MDK project using J-Link (replacing the default CMSIS-DAP debug probe), following steps are needed:
Remove J6 and J7 jumpers.
Attach the J-Link probe (J-Link Plus / J-Trace) to the board using the J1 connector.
Set “J-LINK / J-TRACE Cortex” in CM7 project options -> Debug panel (replacing CMSIS-DAP Debugger option).
After the CM7 application build click on Download/F8 button (menu Flash -> Download).
Power off and power on the board.
Multicore example starts running, one can start debugging the CM7 side by clicking on Start/Stop Debug Session (Ctrl + F5).
It is not possible to attach to the CM4 core when using the J-Link.