The MCUXpresso Software Development Kit (MCUXpresso SDK) provides comprehensive software source code to be executed in the i.MX 8M Nano UL M7 core. If you do not wish to enable the Cortex®-M7 on i.MX 8M Nano UL at this moment you can skip this section.
The MCUXpresso SDK is designed for the development of embedded applications for Cortex®-M7 standalone or collaborative use with the A cores. Along with the peripheral drivers, the MCUXpresso SDK provides an extensive and rich set of example applications covering everything from basic peripheral use case examples to demo applications. The MCUXpresso SDK also contains RTOS kernels, and device stack, and various other middleware to support rapid development.
This guide shows how to run the
hello_world.bin demo provided by the
release. For detailed
information on MCUXpresso SDK and how to build and deploy custom demos, please see the MCUXpresso SDK site.
3.2 Run Applications Using U-Boot
- Following the steps from section 2 - Embedded Linux, prepare an SD card with a pre-built U-Boot + Linux image from the Linux BSP package for the i.MX 8M Nano UL processor. If you have already loaded the SD card with a Linux image, you can skip this step.
- Insert the SD card in the host computer (Linux or Windows) and copy the application
hello_world.bin) to the FAT partition of the SD card.
- Safely remove the SD card from the PC.
- Insert the SD card to the target board. Make sure to use the default boot SD slot and double check the Boot Switch Setup.
Connect the DEBUG UART connector on the board to the PC through USB cable. The Windows OS installs the USB driver automatically and the Ubuntu OS will find the serial devices as well.
See Connect USB debug cable section in Out of box for more instructions on serial communication applications.
- Open a second terminal on the i.MX 8M Nano UL DDR3L EVK board’s second enumerated serial port. This is the Cortex®-M7’s serial console. Set the speed to 115200 bit/s, data bits 8, 1 stop bit (115200, 8N1), no parity.
Power up the board and stop the boot process by pressing any key before the U-Boot countdown reaches zero. At the U-Boot prompt on the first terminal, type the following commands.
=> fatload mmc 0:1 0x48000000 hello_world.bin
=> cp.b 0x48000000 0x7e0000 0x20000
=> bootaux 0x7e0000
These commands copy the image file from the first partition of the SD card into the Cortex®-M7’s TCM and releases the Cortex®-M7 from reset.
This section describes how to run applications using an SD card and pre-built U-Boot image for i.MX processor.