Open main menu

DAVE Developer's Wiki β

Changes

no edit summary
! style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#73B2C7; padding:5px; color:white" |Notes
|-
! | style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#ededededf8fb; padding:5px; color:#000000" |20232024/01/2529! | style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#ededededf8fb; padding:5px; color:#000000" |DESK-XZ7-L-1.0.1 release
|-
|}
==Hello World example==
Here below is an example on of C code displaying the classic [https://en.wikipedia.org/wiki/%22Hello,_World!%22_program Hello World!] message on the target serial console.
This example shows how to use the arm cross-compiler using the environment configured for this purpose
* start the Linux development VM and login into the system
* install the toolchain, for example for Bora[[BORA SOM | BORA]] SOM
<pre class="workstation-terminal">
</pre>
* invoke the cross-compiler for compiling your source code example: the object file obtained, is a proper ELF 6432-bit for the target microprocessor
<pre class="workstation-terminal">
dvdk@vagrant:~/myproject$ $CC -O hello.c -o hello
=== Running the example on the target ===
Now it is enough to copy the object file on target and perform the following commandexecute it:
<pre class="workstation-terminal">
<section end="Body" />
 [[Category:BORA]] [[Category:BORA Xpress]] [[Category:BORA Lite]]
8,226
edits