The FreeRTOS BSP is for NXP’s i.MX SOC family with ARM Cortex-M4 core.
Support platform: pico-imx7d
edm-imx7d
Download and install toolchain to compile FreeRTOS:
$: wget 'https://launchpad.net/gcc-arm-embedded/4.9/4.9-2015-q3-update/+download/gcc-arm-none-eabi-4_9-2015q3-20150921-linux.tar.bz2'
$: tar jxvf gcc-arm-none-eabi-4_9-2015q3-20150921-linux.tar.bz2
FreeRTOS relies on cmake to build, so you also need to make sure the following packages are installed on your machine:
$: sudo apt-get install make cmake
Export the environment of toolchain
$: export ARMGCC_DIR=${absolute_path}/gcc-arm-none-eabi-4_9-2015q3/
Then, you can start to compile the example you would like to run.
For example:
Build the hello_world application:
$: cd freertos-tn/examples/imx7d_pico_m4/demo_apps/hello_world/armgcc/
$: ./build_release.sh
Run hello_world example on pico-imx7d:
In u-boot prompt:
=> fatload mmc 0:1 0x7F8000 hello_world.bin
=> dcache flush
=> bootaux 0x7F8000
On the cortex-m4 debug console, you should see the following output:
Hello World!