Open main menu

DAVE Developer's Wiki β

Changes

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

1,308 bytes added, 11:45, 5 February 2020
Setting up the Hello, world! project
==Setting up the ''Hello, world!'' project==
This section illustrates how to set up the software project. As an example, the classical Hello, world!-type appliation application was used.
[[FileThe first step is to create a new ''Application Project'':BoraLite-FreeRTOS1.png|thumb|center|600px|caption]]
[[File:BoraLite-FreeRTOS1.png|thumb|center|600px|Crating the Application Project]]
[[File:BoraLite-FreeRTOS2.png|thumb|center|600px|caption]]
Regarding the ''Hardware Platform'', a new one has to be created. To do that, a [https://www.xilinx.com/html_docs/xilinx2019_1/SDK_Doc/SDK_concepts/sdk_c_hwspec.html hardware specification file] needs to be imported as shown in the following screenshot. In this example, the hardware specification file used is associated with the basic [[Creating and building example Vivado project (BELK/BXELK)|Vivado project]] delivered along with the [[Bora Embedded Linux Kit (BELK)|BELK]] kit.[[File:BoraLite-FreeRTOS3FreeRTOS2.png|thumb|center|600px|captionCreating a new hardware platform]]
[[File:BoraLite-FreeRTOS4.png|thumb|center|600px|caption]]
Please configure the remaining parameters as illustrated here:
[[File:BoraLite-FreeRTOS3.png|thumb|center|600px|Setting up Application project parameters]]
[[File:BoraLite-FreeRTOS5.png|thumb|center|600px|caption]]
Then select the ''FreeRTOS Hello World'' template:[[File:BoraLite-FreeRTOS6FreeRTOS4.png|thumb|center|600px|captionSelecting the ''FreeRTOS Hello World'' template]]
[[File:BoraLite-FreeRTOS7.png|thumb|center|600px|caption]]
Once the creation process is completed, you should see three different "projects" on the left (one is the real application project, one is the FreeRTOS BSP, and one is associated with the imported hardware platform).
[[File:BoraLite-FreeRTOS5.png|thumb|center|600px|Three projects are created]]
  In order to route the serial console to the UART1, please click on ''Modify this BSP's settings'' button and change stdin and stdout parameter as shown below:[[File:BoraLite-FreeRTOS6.png|thumb|center|600px|Changing stdin and stdout parameters]]   Select the Clean item from the Project menu:[[File:BoraLite-FreeRTOS7.png|thumb|center|600px|Cleaning all the the projects (1/2)]] [[File:BoraLite-FreeRTOS8.png|thumb|center|600px|captionCleaning all the projects (2/2)]]
==Running the application==
4,650
edits