Difference between revisions of "CL-SOM-iMX7: FreeRTOS: Running Demos"

From Compulab Mediawiki
Jump to: navigation, search
(See also)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
== Introduction ==
+
{{:Transclusion: CL-SOM-iMX7: FreeRTOS: Running Demos}}
This article describes the process of loading FreeRTOS images into memory, and running the in-memory images. For quick evaluation, the FreeRTOS BSP for CL-SOM-iMX7 comes with precompiled images that can be found under the {{filename|images}} folder.
 
 
 
== Loading FreeRTOS into memory ==
 
A FreeRTOS image must be run from TCM, DDR, or OCRAM, depending on how it was built. Consult the following table for the right <'''load_addr'''> to use:
 
{| cellpadding="3" border="1" style="border: 1px solid rgb(85, 85, 85); border-collapse: collapse;"
 
|-
 
! Image name
 
! Must run from
 
! load_addr
 
|-
 
| <image_name>.bin
 
| TCM
 
| 7F8000
 
|-
 
| <image_name>_ocram.bin
 
| OCRAM
 
| 910000
 
|-
 
| <image_name>_ddr.bin
 
| DDR
 
| 9FF00000
 
|}
 
 
 
=== Loading from USB ===
 
* Power on the module and stop U-Boot from booting Linux by holding Ctrl-c.
 
* Place image into USB drive, and insert the USB drive into the P6 or P26 USB connector.
 
* Load image into memory:
 
<pre>
 
CL-SOM-iMX7 # usb start
 
CL-SOM-iMX7 # load usb 0 <load_addr> <image_name>
 
</pre>
 
To boot the image, go to [[#Booting FreeRTOS from memory|Booting FreeRTOS from memory]].
 
 
 
=== Loading from MMC ===
 
* Power on the module and stop U-Boot from booting Linux by holding Ctrl-c.
 
* Place image into SD-card, and insert the SD-card into the P9 connector.
 
* Load image into memory:
 
<pre>
 
CL-SOM-iMX7 # mmc dev 0
 
CL-SOM-iMX7 # mmc rescan
 
CL-SOM-iMX7 # load mmc 0 <load_addr> <image_name>
 
</pre>
 
To boot the image, go to [[#Booting FreeRTOS from memory|Booting FreeRTOS from memory]].
 
 
 
=== Loading from TFTP ===
 
* Power on the module and stop U-Boot from booting Linux by holding Ctrl-c.
 
* Setup TFTP as described in the [[Linux: Setting up a development environment]] article, and place the image into the TFTP folder on your workstation.
 
* Connect CL-SOM-iMX7 to a network using connector P21.
 
* Load image into memory:
 
<pre>
 
CL-SOM-iMX7 # setenv autoload no
 
CL-SOM-iMX7 # dhcp
 
CL-SOM-iMX7 # setenv serverip <your_workstation_ip>
 
CL-SOM-iMX7 # tftp <load_addr> <image_name>
 
</pre>
 
To boot the image, go to [[#Booting FreeRTOS from memory|Booting FreeRTOS from memory]].
 
 
 
== Booting FreeRTOS from memory ==
 
* Run the image using the following commands:
 
<pre>
 
CL-SOM-iMX7 # dcache flush
 
CL-SOM-iMX7 # bootaux <load_addr>
 
</pre>
 
  
 
== See also ==
 
== See also ==
  
 
* [[CL-SOM-iMX7: FreeRTOS: Demos Usage Guide]]
 
* [[CL-SOM-iMX7: FreeRTOS: Demos Usage Guide]]
* [[FreeRTOS: Introduction to FreeRTOS development]]
+
* [[CL-SOM-iMX7: FreeRTOS: Introduction to NXP FreeRTOS development|FreeRTOS: Introduction to NXP FreeRTOS development]]
 
* [http://www.freertos.org/ FreeRTOS website]
 
* [http://www.freertos.org/ FreeRTOS website]
  
 
[[Category:FreeRTOS]]
 
[[Category:FreeRTOS]]
 
[[Category:CL-SOM-iMX7]]
 
[[Category:CL-SOM-iMX7]]

Latest revision as of 14:23, 22 October 2017

Introduction

This article describes the process of loading FreeRTOS images into memory, and running the in-memory images. For quick evaluation, the FreeRTOS BSP comes with precompiled images that can be found under the images folder.

Loading FreeRTOS into memory

A FreeRTOS image must be run from TCM, DDR, or OCRAM, depending on how it was built. Consult the following table for the right <load_addr> to use:

Image name Must run from load_addr
<image_name>.bin TCM 7F8000
<image_name>_ocram.bin OCRAM 910000
<image_name>_ddr.bin DDR 9FF00000
  • Power on the module and stop U-Boot from booting Linux by holding Ctrl-c.
  • Place the demo image into USB drive or SD-card, and connect it into the evaluation board.
  • Use the following U-Boot commands to load the demo image from USB storage:
CL-SOM-iMX7 # usb start
CL-SOM-iMX7 # load usb 0 <load_addr> <image_name>
  • Use the following U-Boot commands to load the demo image from SD-card:
CL-SOM-iMX7 # mmc dev 0
CL-SOM-iMX7 # mmc rescan
CL-SOM-iMX7 # load mmc 0 <load_addr> <image_name>

Booting FreeRTOS from memory

  • Run the image using the following commands:
CL-SOM-iMX7 # dcache flush
CL-SOM-iMX7 # bootaux <load_addr>

See also