Building and running your first app

The processes to build and run a Zephyr application are the same across operating systems. We will be looking at the commands used in the VM.

Building Hello World

  1. Enter the zephyr project directory, it is the folder on the desktop
  2. source the zephyr env
    $ source zephyr.sh
    
  3. move to samples/hello_world

  4. run the make command to build the code and start the simulator
    $ make BOARD=qemu_x86 run

  5. you have not built and launched the zephyr hello_world example!

Notes

  • [ ] Create a start workspace that is not the one from Zephyr
  • [ ] Reduce the complexity of the build

results matching ""

    No results matching ""