### Build and Flash hello_world Sample Source: https://github.com/nrfconnect/sdk-zephyr/blob/main/boards/silabs/dev_kits/siwx917_dk2605a/doc/index.rst Example command to build and flash the hello_world sample application for the siwx917_dk2605a board. Requires Simplicity Commander to be installed. ```bash west build -b siwx917_dk2605a samples/hello_world west flash ``` -------------------------------- ### Build and Flash Hello World Example Source: https://github.com/nrfconnect/sdk-zephyr/blob/main/boards/amd/versalnet_apu/doc/index.rst Use this command to build and flash the 'hello_world' sample application to the versalnet_apu board. Ensure the sample application is located at 'samples/hello_world'. ```bash west build -b versalnet_apu samples/hello_world west flash ``` -------------------------------- ### Flash Hello World Application Source: https://github.com/nrfconnect/sdk-zephyr/blob/main/boards/silabs/radio_boards/xg27/doc/bg27_rb4111b.rst Flashing the hello_world application to the bg27_rb4111b board. This is a basic example for getting started with the board. ```console west build -b bg27_rb4111b samples/hello_world west flash ``` -------------------------------- ### Example Partition DTS Setup Source: https://github.com/nrfconnect/sdk-zephyr/blob/main/snippets/slot1-partition/README.rst This is an example of a correct partition mapping setup in the devicetree, required for using the slot1_partition. ```dts #define SLOT1_PARTITION_START 0x0 #define SLOT1_PARTITION_SIZE (128*1024) flash_partition@0 { compatible = "fixed-partitions"; reg = ; }; ``` -------------------------------- ### Build and Flash hello_world Sample Source: https://github.com/nrfconnect/sdk-zephyr/blob/main/boards/u-blox/ubx_evknorab2/doc/index.rst Build and flash the 'hello_world' sample application to the ubx_evknorab2/nrf54l15/cpuapp board. Ensure the EVK is connected via USB. ```bash west build -b ubx_evknorab2/nrf54l15/cpuapp samples/hello_world west flash ``` -------------------------------- ### Install LiteX Setup Script Source: https://github.com/nrfconnect/sdk-zephyr/blob/main/boards/enjoydigital/litex_vexriscv/doc/index.rst Download and make the LiteX setup script executable. Use the --user flag to install to the user directory and specify the configuration (minimal, standard, full). ```bash wget https://raw.githubusercontent.com/enjoy-digital/litex/master/litex_setup.py chmod +x litex_setup.py ./litex_setup.py --init --install --user (--user to install to user directory) --config=(minimal, standard, full) ``` -------------------------------- ### Run Hello World User Space Example Source: https://github.com/nrfconnect/sdk-zephyr/blob/main/samples/userspace/hello_world_user/README.rst Build and run the Hello World user space sample on QEMU. This command executes the sample application on the specified board and displays its output. ```bash west build -b qemu_riscv32 samples/userspace/hello_world_user west build -t run ``` -------------------------------- ### Example Zephyr Installations Source: https://github.com/nrfconnect/sdk-zephyr/blob/main/doc/build/zephyr_cmake_package.rst Illustrates a file system structure with multiple Zephyr installations in separate workspaces. ```none /zephyr-workspace-2.a └── zephyr (Exported to CMake) /zephyr-workspace-2.b └── zephyr (Exported to CMake) /app ├── CMakeLists.txt ├── prj.conf └── src └── main.c ``` -------------------------------- ### Install CodeChecker using pip Source: https://github.com/nrfconnect/sdk-zephyr/blob/main/doc/develop/sca/codechecker.rst Installs the CodeChecker Python package. This is the initial step to get CodeChecker. ```shell pip install codechecker ``` -------------------------------- ### Build and Flash hello_world Sample (QSPI) Source: https://github.com/nrfconnect/sdk-zephyr/blob/main/boards/nxp/mcx_nx4x_evk/doc/mcx_n9xx_evk.rst Example command to build and flash the `hello_world` application for the QSPI variant of the MCX N9XX EVK board. ```shell west build -b mcx_n9xx_evk//cpu0/qspi zephyr/samples/hello_world west flash ``` -------------------------------- ### Install RISC-V Toolchain and LiteX Source: https://github.com/nrfconnect/sdk-zephyr/blob/main/boards/enjoydigital/litex_vexriscv/doc/index.rst Install necessary build tools (meson, ninja) and then use the LiteX setup script to install the RISC-V GCC toolchain. ```bash pip3 install meson ninja ./litex_setup.py --gcc=riscv ``` -------------------------------- ### Build Application for Real Hardware Source: https://github.com/nrfconnect/sdk-zephyr/blob/main/boards/amd/versalnet_rpu/doc/index.rst Build the 'hello_world' sample application for deployment on real Versal Net hardware. This step is required before flashing. ```console west build -b versalnet_rpu samples/hello_world ``` -------------------------------- ### Build and Flash hello_world Sample Source: https://github.com/nrfconnect/sdk-zephyr/blob/main/boards/ezurio/bl54l15_dvk/doc/bl54l15_dvk.rst This command sequence builds and flashes the hello_world sample application to the BL54L15 DVK for the nRF54L15 CPU app core. ```console west build -b bl54l15_dvk/nrf54l15/cpuapp west flash ``` -------------------------------- ### Debug Application using West (Example) Source: https://github.com/nrfconnect/sdk-zephyr/blob/main/boards/nxp/frdm_k22f/doc/index.rst Example command to start debugging the hello_world application on the FRDM-K22F board. ```console west debug samples/hello_world --board frdm_k22f ``` -------------------------------- ### Zephyr Freestanding Application Example Source: https://github.com/nrfconnect/sdk-zephyr/blob/main/doc/build/zephyr_cmake_package.rst Shows how a Zephyr freestanding application uses the Zephyr installation registered in the CMake user package registry. If multiple Zephyr installations are exported, the one registered will be used. The example also notes how to use the ZEPHYR_BASE environment variable to test with a different, non-registered Zephyr installation. ```none /zephyr-workspace-1 └── zephyr (Not exported to CMake) /zephyr-workspace-2 └── zephyr (Exported to CMake) /app ├── CMakeLists.txt ├── prj.conf └── src └── main.c ``` -------------------------------- ### Build and Flash hello_world Example Source: https://github.com/nrfconnect/sdk-zephyr/blob/main/boards/embedsky/tq_h503a/doc/index.rst Build and flash the hello_world sample application to the TQ-H503A board using west. Ensure a serial host program like minicom is connected to the debugger's VCP. ```console $ minicom -D /dev/ttyACM0 ``` ```console west build -b tq_h503a samples/hello_world west flash ``` -------------------------------- ### Start JLinkRTTLogger Source: https://github.com/nrfconnect/sdk-zephyr/blob/main/boards/segger/ip_k66f/doc/index.rst Command to start the JLinkRTTLogger for serial console communication with the ip_k66f board. This requires JLink tools to be installed and in the PATH. ```bash /opt/SEGGER/JLink_V664/JLinkRTTLogger -Device MK66FN2M0XXX18 -RTTChannel 1 -if SWD -Speed 4000 ~/rtt.log ``` -------------------------------- ### Build Hello World Sample with All Tools Source: https://github.com/nrfconnect/sdk-zephyr/blob/main/doc/develop/application/index.rst Use this command to build the 'hello_world' sample for the 'reel_board' using any available build tool. This is a common starting point for new applications. ```bash west build -b reel_board samples/hello_world ``` -------------------------------- ### Build and Flash hello_world Sample Source: https://github.com/nrfconnect/sdk-zephyr/blob/main/boards/nordic/nrf54l15dk/doc/index.rst Build and flash the 'hello_world' sample application to the nRF54L15 DK for the CPUAPP core. Ensure the DK is connected via the IMCU USB port. ```console west build -b nrf54l15dk/nrf54l15/cpuapp samples/hello_world west flash ``` -------------------------------- ### Console Output Example Source: https://github.com/nrfconnect/sdk-zephyr/blob/main/boards/ti/cc1352p7_launchpad/doc/index.rst This is an example of how to start a terminal program to listen for output from the board. Replace '' with the actual serial port. ```console $ screen 115200 ``` -------------------------------- ### RTT Console Output Example Source: https://github.com/nrfconnect/sdk-zephyr/blob/main/boards/makerbase/mks_canable_v10/doc/index.rst Example output expected on the RTT console after connecting, indicating a successful connection and application start. ```text Hello World! mks_canable_v10/stm32f072xb ``` -------------------------------- ### Build and Flash hello_world Sample Source: https://github.com/nrfconnect/sdk-zephyr/blob/main/boards/nordic/nrf54h20dk/doc/index.rst Build and flash the hello_world sample application to the nRF54H20 DK's application core. Ensure the DK is connected via the IMCU USB port and nRF Util is installed. ```bash west build -b nrf54h20dk/nrf54h20/cpuapp samples/hello_world west flash ``` -------------------------------- ### CoAP Client URI Example Source: https://github.com/nrfconnect/sdk-zephyr/blob/main/samples/net/sockets/coap_client/README.rst Example of a CoAP GET request URI for the 'test' resource on the CoAP nodes multicast address. ```none coap://[ff02::fd]:5683/test ``` -------------------------------- ### Build and Flash hello_world Sample Source: https://github.com/nrfconnect/sdk-zephyr/blob/main/boards/st/stm32f7508_dk/doc/index.rst Use these commands to build and flash the hello_world sample application onto the stm32f7508_dk board. ```bash :zephyr-app: samples/hello_world :board: stm32f7508_dk :goals: build flash ``` -------------------------------- ### Console Output Example Source: https://github.com/nrfconnect/sdk-zephyr/blob/main/boards/nxp/vmu_rt1170/doc/index.rst Example of the expected console output after booting the Zephyr OS on the vmu_rt1170 board. This confirms successful initialization and application start. ```console ***** Booting Zephyr OS v3.4.0-xxxx-xxxxxxxxxxxxx ***** Hello World! vmu_rt1170 ``` -------------------------------- ### Build and Flash hello_world Sample Source: https://github.com/nrfconnect/sdk-zephyr/blob/main/boards/seeed/xiao_ra4m1/doc/index.rst Builds and flashes the 'hello_world' sample application to the xiao_ra4m1 board. Ensure the board is connected and in bootloader mode. ```bash west build -b xiao_ra4m1 samples/hello_world west flash ``` -------------------------------- ### Build hello_world Sample Source: https://github.com/nrfconnect/sdk-zephyr/blob/main/boards/infineon/cy8cproto_041tp/doc/index.rst Example command to build the hello_world sample application for the cy8cproto_041tp board. ```shell west build -b cy8cproto_041tp -p always samples/hello_world ``` -------------------------------- ### Debugging Zephyr Hello World Example Source: https://github.com/nrfconnect/sdk-zephyr/blob/main/boards/variscite/imx8mp_var_dart/doc/index.rst Example command to start debugging the 'hello_world' application on the imx8mp_var_dart/mimx8ml8/m7 board using Zephyr's debugging tools. ```console west build -b imx8mp_var_dart/mimx8ml8/m7 samples/hello_world west build -t run ``` -------------------------------- ### Build and Flash hello_world Example Source: https://github.com/nrfconnect/sdk-zephyr/blob/main/boards/st/nucleo_wb09ke/doc/index.rst Builds and flashes the hello_world sample application to the Nucleo WB09KE board. This demonstrates the basic application development workflow. ```console $ west flash --runner openocd Flashing an application to Nucleo WB09KE ------------------------------------------------ Connect the Nucleo WB09KE to your host computer using the USB port, then run a serial host program to connect with your Nucleo board: .. code-block:: console $ minicom -D /dev/ttyACM0 Now build and flash an application. Here is an example for :zephyr:code-sample:`hello_world`. .. zephyr-app-commands:: :zephyr-app: samples/hello_world :board: nucleo_wb09ke :goals: build flash ``` -------------------------------- ### Install and Run FTP Server Source: https://github.com/nrfconnect/sdk-zephyr/blob/main/samples/net/ftp_client/README.rst Installs the pyftpdlib package, creates a file root, and starts an FTP server. Ensure the server runs in write-mode for full functionality. ```bash pip install pyftpdlib mkdir file_root echo "some test data" > file_root/test_file.txt python3 -m pyftpdlib -p 2121 --write --directory=file_root ``` -------------------------------- ### Zephyr Workspace Application Example Source: https://github.com/nrfconnect/sdk-zephyr/blob/main/doc/build/zephyr_cmake_package.rst Demonstrates how a Zephyr workspace application will use the Zephyr installation located in the same workspace. The Zephyr installation is typically found at the root of the workspace. ```none /zephyr-workspace ├── zephyr ├── ... └── my_applications └── my_first_app ``` -------------------------------- ### Build and Flash hello_world Sample Source: https://github.com/nrfconnect/sdk-zephyr/blob/main/boards/doiting/dt_xt_zb1_devkit/doc/index.rst Build and flash the hello_world sample application onto the dt_xt_zb1_devkit board. This is a common starting point for new projects. ```bash west build -b dt_xt_zb1_devkit samples/hello_world west flash ``` -------------------------------- ### Install aiocoap and set up a file server Source: https://github.com/nrfconnect/sdk-zephyr/blob/main/samples/net/sockets/coap_download/README.rst Install the aiocoap library and start a simple file server to serve test data. This is a prerequisite for running the CoAP download sample. ```bash python -m pip install "aiocoap[all]" mkdir file_root echo "some test data" > file_root/test.txt aiocoap-fileserver file_root ``` -------------------------------- ### Build and Flash hello_world Application Source: https://github.com/nrfconnect/sdk-zephyr/blob/main/boards/renesas/fpb_rx14t/doc/index.rst Example command for building and flashing the hello_world application to the fpb_rx14t board. ```bash west build -b fpb_rx14t samples/hello_world west flash ``` -------------------------------- ### Wildcard Command Example Source: https://github.com/nrfconnect/sdk-zephyr/blob/main/doc/services/shell/index.rst Demonstrates using wildcards in a shell command to apply an action to multiple modules. This example shows enabling logging for all modules starting with 'a' to the 'err' level. ```none log enable err a* ``` -------------------------------- ### Build hello_world Sample Source: https://github.com/nrfconnect/sdk-zephyr/blob/main/boards/sensry/ganymed_bob/doc/index.rst Build the hello_world sample application for the ganymed_bob/sy120_gbm board using west. ```bash west build -b ganymed_bob/sy120_gbm samples/hello_world ``` -------------------------------- ### Start GUI Debugging on HAPS Source: https://github.com/nrfconnect/sdk-zephyr/blob/main/boards/snps/nsim/arc_classic/doc/index.rst Starts a GUI debugging session using the MetaWare debugger (MDB) for applications running on the HAPS platform. Requires proper HAPS setup. ```console west debug --runner mdb-hw ``` -------------------------------- ### Build and Flash hello_world Example Source: https://github.com/nrfconnect/sdk-zephyr/blob/main/boards/st/stm32u5a9j_dk/doc/index.rst Build and flash the 'hello_world' sample application to the STM32U5A9J-DK board using west. Ensure a serial host program like minicom is connected to the board's virtual COM port. ```console $ minicom -D /dev/ttyACM0 -b 115200 :zephyr-app: samples/hello_world :board: stm32u5a9j_dk :goals: build flash ``` -------------------------------- ### west.util.west_dir Source: https://github.com/nrfconnect/sdk-zephyr/blob/main/doc/develop/west/west-apis.rst Finds the West installation directory. It searches upwards from a given starting path. ```APIDOC ## west.util.west_dir ### Description Finds the West installation directory. It searches upwards from a given starting path. ### Method N/A (Function) ### Parameters #### Path Parameters - **start** (os.PathLike) - Optional - The path to start searching from. Defaults to the current directory. ### Response - **west_dir** (str) - The path to the West installation directory. ### Response Example ``` '/path/to/west/installation' ``` ``` -------------------------------- ### Build and Flash hello_world Sample Source: https://github.com/nrfconnect/sdk-zephyr/blob/main/boards/bflb/bl60x/bl604e_iot_dvk/doc/index.rst Builds and flashes the 'hello_world' sample application to the bl604e_iot_dvk board. Ensure the Zephyr environment is set up correctly. ```console west build -b bl604e_iot_dvk samples/hello_world west flash ``` -------------------------------- ### Basic Bluetooth Setup for Scan Delegator Source: https://github.com/nrfconnect/sdk-zephyr/blob/main/doc/connectivity/bluetooth/shell/audio/bap_scan_delegator.rst Performs initial Bluetooth setup, including initializing the Scan Delegator and starting advertising. Ensure these commands are run in sequence before proceeding with other operations. ```console uart:~$ bt init uart:~$ bap_scan_delegator init uart:~$ bt advertise on Advertising started ``` -------------------------------- ### Build and Flash hello_world Example Source: https://github.com/nrfconnect/sdk-zephyr/blob/main/boards/st/nucleo_f411re/doc/index.rst Instructions to build and flash the 'hello_world' sample application to the Nucleo F411RE board using Zephyr's build system and west tool. ```console minicom -D /dev/ttyACM0 $ west build -b nucleo_f411re samples/hello_world $ west flash ``` -------------------------------- ### Build and Flash hello_world Sample Source: https://github.com/nrfconnect/sdk-zephyr/blob/main/boards/nxp/s32k5xxcvb/doc/index.rst Use this command to build and flash the hello_world sample application on the s32k5xxcvb/s32k566/m7 board. ```console west build -b s32k5xxcvb/s32k566/m7 samples/hello_world west flash ``` -------------------------------- ### Shell Command Prompt Example Source: https://github.com/nrfconnect/sdk-zephyr/blob/main/samples/subsys/shell/shell_module/README.rst Displays the initial shell command prompt after the application has started. ```console uart:~$ bypass clear date demo device devmem dynamic help history kernel log log_test rem resize retval section_cmd shell shell_uart_release stats version uart:~$ ``` -------------------------------- ### Build Example with EEPROM Shell Enabled Source: https://github.com/nrfconnect/sdk-zephyr/blob/main/doc/hardware/peripherals/eeprom/shell.rst Example command to build the hello_world sample with EEPROM shell support enabled on native_sim board. ```bash west build -b native_sim samples/hello_world -DCONFIG_SHELL=y -DCONFIG_EEPROM=y -DCONFIG_EEPROM_SHELL=y ``` -------------------------------- ### Example Setup and Connection Source: https://github.com/nrfconnect/sdk-zephyr/blob/main/doc/connectivity/bluetooth/shell/audio/csip.rst Initializes the UART and connects to a Bluetooth device before using CSIP commands. ```console uart:~$ init uart:~$ bt connect xx:xx:xx:xx:xx:xx public ``` -------------------------------- ### Zephyr Socketpair Sample Output Source: https://github.com/nrfconnect/sdk-zephyr/blob/main/samples/net/sockets/socketpair/README.rst Example console output from the Zephyr socketpair sample application after it starts. ```text *** Booting Zephyr OS build v3.3.0-rc1-97-g432ff20a72e1 *** setting-up Alpha: socketpair: 4 <=> 3 Bravo: socketpair: 6 <=> 5 Charlie: socketpair: 8 <=> 7 main: read 'Alpha' on fd 4 main: read 'Bravo' on fd 6 main: read 'Charlie' on fd 8 main: read 'Alpha' on fd 4 main: read 'Bravo' on fd 6 main: read 'Charlie' on fd 8 main: read 'Alpha' on fd 4 main: read 'Bravo' on fd 6 main: read 'Charlie' on fd 8 tearing-down SUCCESS ``` -------------------------------- ### Build and Flash hello_world Application Source: https://github.com/nrfconnect/sdk-zephyr/blob/main/boards/renesas/fpb_rx140/doc/index.rst Use these commands to build and flash the 'hello_world' sample application to the fpb_rx140 board. ```bash cd samples/hello_world west build -b fpb_rx140 west flash ``` -------------------------------- ### Example Zephyr Workspace Structure Source: https://github.com/nrfconnect/sdk-zephyr/blob/main/doc/build/zephyr_cmake_package.rst Demonstrates a workspace with multiple Zephyr installations (upstream, vendor, custom) and applications. ```none /zephyr-workspace ├── zephyr ├── zephyr-vendor ├── zephyr-custom ├── ... └── my_applications └── my_first_app ``` -------------------------------- ### Build and Run with QEMU Source: https://github.com/nrfconnect/sdk-zephyr/blob/main/boards/amd/versalnet_rpu/doc/index.rst Use these commands to build and run the 'hello_world' sample application on the versalnet_rpu board using QEMU emulation. No PDI file is required for QEMU. ```console west build -b versalnet_rpu samples/hello_world west build -t run ``` -------------------------------- ### Error Message for Unmet Version Requirement Source: https://github.com/nrfconnect/sdk-zephyr/blob/main/doc/build/zephyr_cmake_package.rst Example output when no Zephyr installation satisfies the version requested in find_package. ```none Could not find a configuration file for package "Zephyr" that is compatible with requested version "2.z". The following configuration files were considered but not accepted: /zephyr-workspace-2.a/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake, version: 2.a.0 /zephyr-workspace-2.b/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake, version: 2.b.0 ``` -------------------------------- ### Build and Flash using sample.yaml for nRF54H20DK Source: https://github.com/nrfconnect/sdk-zephyr/blob/main/samples/sysbuild/hello_world/README.rst Build and flash the Hello World sample for the nRF54H20DK using a pre-defined sample.yaml configuration. ```bash west build -b nrf54h20dk/nrf54h20/cpuapp -T sample.sysbuild.hello_world.nrf54h20dk_cpuapp_cpurad west build flash ``` -------------------------------- ### Build and Flash hello_world Sample Source: https://github.com/nrfconnect/sdk-zephyr/blob/main/boards/thirdreality/3r_tnh_sensor_lite/doc/index.rst Use these commands to build and flash the hello_world sample application onto the 3r_tnh_sensor_lite board. ```console west build -b 3r_tnh_sensor_lite samples/hello_world west flash ``` -------------------------------- ### Phandle-Array Property Example Source: https://github.com/nrfconnect/sdk-zephyr/blob/main/doc/build/dts/phandles.rst Illustrates a 'phandle-array-prop' where each group starts with a phandle followed by specifiers, used for configuring resources. ```dts node { phandle-array-prop = <&foo 1 2>, <&bar 3>, <&baz 4 5>; }; ``` -------------------------------- ### CoAP Resource Definition and Handling Source: https://github.com/nrfconnect/sdk-zephyr/blob/main/doc/connectivity/networking/api/coap_server.rst Example of defining a CoAP resource with GET and PUT handlers, and how to send responses. ```APIDOC ## CoAP Resource Definition and Handling ### Description Example of defining a CoAP resource with GET and PUT handlers, and how to send responses. ### GET Handler Example This function handles GET requests for a resource. It constructs and sends a 'Hello, world!' response. ```c #include static int my_get(struct coap_resource *resource, struct coap_packet *request, struct net_sockaddr *addr, socklen_t addr_len) { static const char *msg = "Hello, world!"; uint8_t data[CONFIG_COAP_SERVER_MESSAGE_SIZE]; struct coap_packet response; uint16_t id; uint8_t token[COAP_TOKEN_MAX_LEN]; uint8_t tkl, type; type = coap_header_get_type(request); id = coap_header_get_id(request); tkl = coap_header_get_token(request, token); /* Determine response type */ type = (type == COAP_TYPE_CON) ? COAP_TYPE_ACK : COAP_TYPE_NON_CON; coap_packet_init(&response, data, sizeof(data), COAP_VERSION_1, type, tkl, token, COAP_RESPONSE_CODE_CONTENT, id); /* Set content format */ coap_append_option_int(&response, COAP_OPTION_CONTENT_FORMAT, COAP_CONTENT_FORMAT_TEXT_PLAIN); /* Append payload */ coap_packet_append_payload_marker(&response); coap_packet_append_payload(&response, (uint8_t *)msg, strlen(msg)); /* Send to response back to the client */ return coap_resource_send(resource, &response, addr, addr_len, NULL); } ``` ### PUT Handler Example This function handles PUT requests. The implementation for handling the request is left as a placeholder. ```c static int my_put(struct coap_resource *resource, struct coap_packet *request, struct net_sockaddr *addr, socklen_t addr_len) { /* ... Handle the incoming request ... */ /* Return a CoAP response code as a shortcut for an empty ACK message */ return COAP_RESPONSE_CODE_CHANGED; } ``` ### Resource Definition Define a resource with its path and handlers using ``COAP_RESOURCE_DEFINE``: ```c static const char * const my_resource_path[] = { "test", NULL }; COAP_RESOURCE_DEFINE(my_resource, my_service, { .path = my_resource_path, .get = my_get, .put = my_put, }); ``` Resource handlers can return response codes to send an empty ACK response. ``` -------------------------------- ### Build and Flash Application Source: https://github.com/nrfconnect/sdk-zephyr/blob/main/boards/ezurio/bl654_dvk/doc/bl654_dvk.rst Example commands to build and flash the hello_world application to the bl654_dvk board. ```bash west build -b bl654_dvk samples/hello_world west flash ``` -------------------------------- ### QNX Hypervisor VM Configuration Example Source: https://github.com/nrfconnect/sdk-zephyr/blob/main/boards/blackberry/qnxhv_vm/doc/index.rst This is an example QVM configuration file. You will likely need to adjust devicetree and Kconfig options to match your specific VM setup, including memory map, interrupt routing, and devices. ```qvmconf system zephyr cpu ram 0x80000000,128M vdev gic version 2 load ./zephyr.elf vdev pl011 hostdev >- loc 0x1c090000 intr gic:37 vdev virtio-console loc 0x20000000 intr gic:42 vdev virtio-entropy loc 0x1c0e0000 intr gic:43 ``` -------------------------------- ### Build and Flash hello_world Application Source: https://github.com/nrfconnect/sdk-zephyr/blob/main/boards/mikroe/mini_m4_for_stm32/doc/mikroe_mini_m4_for_stm32.rst Example command to build and flash the hello_world application to the mikroe_mini_m4_for_stm32 board. ```bash west build -b mikroe_mini_m4_for_stm32 samples/hello_world west flash ``` -------------------------------- ### Sample Output of ULP Echo Source: https://github.com/nrfconnect/sdk-zephyr/blob/main/samples/boards/espressif/ulp/lp_core/echo_ulp/README.rst Console output indicating the start of the UART echo example and prompting for user input. ```console UART echo example started. Type something... ``` -------------------------------- ### Build and Flash hello_world Application Source: https://github.com/nrfconnect/sdk-zephyr/blob/main/boards/weact/mini_stm32h743/doc/index.rst Example command to build and flash the hello_world application to the mini_stm32h743 board with a boot delay configuration. Ensure the board is in bootloader mode before flashing. ```bash west build -b mini_stm32h743 samples/hello_world -DCONFIG_BOOT_DELAY=5000 west flash ``` -------------------------------- ### Get nPM6001 Regulator Mode Source: https://github.com/nrfconnect/sdk-zephyr/blob/main/samples/shields/npm6001_ek/index.rst Retrieve the current operating mode of a specified regulator, for example, checking the mode of BUCK0. ```bash # get BUCK0 mode npm6001 regulator modeget BUCK0 Hysteretic ``` -------------------------------- ### Build and Run Hello World with QEMU Emulation Source: https://github.com/nrfconnect/sdk-zephyr/blob/main/doc/develop/beyond-GSG.rst Use this command to build and run the 'hello_world' sample application targeting the x86 emulation board configuration (qemu_x86). ```console west build -t run samples/hello_world -- -D BOARD=qemu_x86 ```