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