Open main menu

DAVE Developer's Wiki β

Changes

BELK-TN-007: FreeRTOS on single-core Bora Lite SoM

2,142 bytes added, 13:52, 5 February 2020
Running the application
==Running the application==
There are several ways to run the application on the target. For instance, a JTAG debugging tool can be used. The following is a script in PRACTICE language used to set up a debugging session with [https://www.lauterbach.com/ Lauterbach TRACE32 PowerView]:
<syntaxhighlight line="line">
SYStem.CPU ZYNQ-7000CORE0
</syntaxhighlight>
 Please note that the FreeRTOS console is routed to the same UART used for the U-Boot console:[[File:BoraLite-FreeRTOS9.png|thumb|center|800px|captionDebugging session with Lauterbach TRACE32 PowerView]]  Another way to download and run the application is by using the <code>tftpboot</code> and <code>bootelf</code> commands as shown in the following example:<pre class="board-terminal">Bora> tftpboot ${loadaddr} boralite/freertos_hello_world.elfUsing ethernet@e000b000 deviceTFTP from server 192.168.0.13; our IP address is 192.168.0.81Filename 'boralite/freertos_hello_world.elf'.Load address: 0x2080000Loading: ################################################################# ######################### 1.4 MiB/sdoneBytes transferred = 457608 (6fb88 hex)Bora> bootelf 0x2080000CACHE: Misaligned operation at range [00100000, 0010e78c]CACHE: Misaligned operation at range [0010e78c, 0010e798]CACHE: Misaligned operation at range [0010e798, 0010e7a4]CACHE: Misaligned operation at range [0010e7a8, 0010ef84]CACHE: Misaligned operation at range [0010ef88, 0010fcbc]CACHE: Misaligned operation at range [0010fcbc, 0010fcc0]CACHE: Misaligned operation at range [00114000, 00114008]CACHE: Misaligned operation at range [00114008, 0011400c]CACHE: Misaligned operation at range [0011400c, 00114010]CACHE: Misaligned operation at range [00114010, 00124554]CACHE: Misaligned operation at range [00124554, 00126560]CACHE: Misaligned operation at range [00126560, 00129d60]## Starting application at 0x00100000 ...Hello from Freertos example mainRx task received string from Tx task: Hello WorldRx task received string from Tx task: Hello WorldRx task received string from Tx task: Hello WorldRx task received string from Tx task: Hello WorldRx task received string from Tx task: Hello WorldRx task received string from Tx task: Hello WorldRx task received string from Tx task: Hello WorldRx task received string from Tx task: Hello WorldRx task received string from Tx task: Hello WorldFreeRTOS Hello World Example PASSED</pre>
4,650
edits