Getting Started with iMX8MM-EVK and MCU-LINK Pro for M Core Debugging

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Getting Started with iMX8MM-EVK and MCU-LINK Pro for M Core Debugging

Getting Started with iMX8MM-EVK and MCU-LINK Pro for M Core Debugging

This guide walks you through the required steps to prepare your development environment and hardware for debugging the M core on the IMX8MM-EVK board using the MCU-LINK Pro. You’ll install the necessary firmware, compile and flash a binary, and finally, initiate a debug session using MCUXpresso for VS Code.

Requirements:

  • IMX8MM-EVK Board

  • MCU-LINK Pro Debug Probe

  • PC Host with MCUXpresso for VS Code installed

Install Segger Firmware on MCU-LINK Pro

By default, the MCU-LINK Pro does not support i.MX processors. Installing the Segger firmware is essential for proper debugging.

Follow the firmware update guide to update your MCU-LINK Pro.

 

Compile the Binary for the M Core

Ensure MCUXpresso for VS Code is properly installed.

 

Import the iMX8MM-EVK SDK

Chavira_0-1755698330924.png

 

Import "hello world" example


Chavira_1-1755698515769.png

Ensure that we are compiling a debug binary

Chavira_0-1755709077404.png

Build Project

Chavira_2-1755698624814.png

 

Flash the Binary using UUU Tool

Connect the IMX8MM-EVK Board to your Host PC via USB

Chavira_0-1755701104573.jpeg

 

Enter Fastboot Mode in U-Boot Terminal

=> fastboot 0

 

On your Host PC, navigate to the binary location and flash it using the next commands:

$ cd <project_location>/armgcc/debug/

$ uuu -b fat_write hello_world.bin mmc X:1 hello_world_debug.bin

Note: replace the X with 2 if you are booting from eMMC or 1 if you are booting from SD Card

Chavira_5-1755701729711.png

Connect MCU-LINK Pro to the Target

Chavira_1-1755701131673.jpeg

 

 

IMX8MM-EVK Debug connection:

Chavira_2-1755701139996.jpeg

 

Launch the M Core from U-Boot Terminal

Use the following commands in the U-Boot terminal:

=> fatload mmc X:1 0x48000000 hello_world_debug.bin; cp.b 0x48000000 0x7e0000 0x20000;
=> bootaux 0x7e0000

Note: replace the X with 2 if you are booting from eMMC or 1 if you are booting from SD Card

Chavira_3-1755701674202.png

 


 

Start the Debug Session

Once the M core is launched, you can start your debug session in VS Code using MCUXpresso:

Chavira_0-1755701976656.png

 

Chavira_1-1755702026549.png

 

 With the MCU-LINK Pro configured, the IMX8MM-EVK, and the binary successfully flashed and executed, you are now ready to debug applications on the M core using MCUXpresso and VS Code. This setup enables a reliable development workflow for i.MX8MM based projects.

 

References:

AN14120.pdf 

No ratings
Version history
Last update:
2 weeks ago
Updated by: