zephyr/samples/subsys/bindesc/hello_bindesc/README.rst
Alberto Escolar Piedras b2a84eaf12 samples bindesc: Add runtime test and change default to native_sim
* In the docs replace references to native_posix with native_sim
* Switch the default test platform to native_sim from native_posix
* Add a runtime check for this sample

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2023-11-20 12:02:48 +01:00

33 lines
882 B
ReStructuredText

.. zephyr:code-sample:: hello-bindesc
:name: Binary descriptors "Hello World"
:relevant-api: bindesc_define
Set and access binary descriptors for a basic Zephyr application.
Overview
********
A simple sample of :ref:`binary descriptor <binary_descriptors>` definition and usage.
Building and Running
********************
Follow these steps to build the ``hello_bindesc`` sample application:
.. zephyr-app-commands::
:zephyr-app: samples/subsys/bindesc/hello_bindesc
:board: <board to use>
:goals: build
:compact:
To dump all binary descriptors in the image, run:
.. code-block:: bash
west bindesc dump build/zephyr/zephyr.bin
(Note: you can also dump the contents of ``zephyr.elf``, if your build system
does not produce a ``*.bin`` file, e.g. compiling for ``native_sim``.)
For more details see :ref:`binary_descriptors` and :ref:`west-bindesc`.