Kontron SMARC-sAMX8 User Manual page 62

Table of Contents

Advertisement

Kontron SMARC-sAMX8 - Rev. 1.2
On the target board insert the SD card in the designated slot and boot till Uboot and hit the prompt
Enter the below command to run FreeRTOS application from M4 core 0
=> fatload mmc 1:1 0x80280000 m4_0_image.bin
=> bootaux 0x80280000 0
Enter the below command to run FreeRTOS application from M4 core 1
=>fatload mmc 1:1 0x80280000 m4_1_image.bin
=>bootaux 0x80280000 1
Alternatively M4 binaries can also be copied into target uboot environment from TFTP setup instead of SD card
Follow the below procedure for loading the M4 binaries from TFTP server and running them after stopping at uboot
On the Host PC copy the M4 binaries to the TFTP directory as explained in section 9.4.1 section
=> cp m4_0_image.bin /samx8-boot/kontron_smx8qm/tftp
=> cp m4_1_image.bin /samx8-boot/kontron_smx8qm/tftp
On the sAMX8 target board enter the below commands to run FreeRTOS application from M4 core 0
=> tftp 0x80280000 m4_0_image.bin
=> bootaux 0x80280000 0
Enter the below commands to run FreeRTOS application from M4 core 1
=> tftp 0x80280000 m4_1_image.bin
=> bootaux 0x80280000 1
Viewing M4 FreeRTOS Application Logs
Connect the DB9 cable from Host PC to M4 Serial port. M4_0 Serial Port is - J29 Top connector and M4_1 Serial Port
is - J30 Top connector on the SMARC carrier board. Common serial communication programs such as HyperTerminal,
Tera Term, or PuTTY can be used. Configure the serial line using 115200 baud, 8 data bits, 1 stop bit, no parity.
Below is a sample log from FreeRTOS Semaphore example from NXP MCUXpresso SDK running on M4 0 core
www.kontron.com
// 62

Advertisement

Table of Contents
loading

Table of Contents