Commit Graph

195 Commits

Author SHA1 Message Date
The Nguyen
9a9f060430 samples: display: update rtk7eka6m3b00001bu shield related samples
The rtk7eka6m3b00001bu need addtional ek_ra8d1_rtk7eka6m3b00001bu shield
to build with ek_ra8d1/r7fa8d1bhecbd platform. This commit to update
extra args to select it when build with twister

Signed-off-by: The Nguyen <the.nguyen.yf@renesas.com>
2025-07-22 19:38:02 -04:00
Felipe Neves
a93e6c23ff samples: modules: lvgl: demos: added new test cases
that uses the LVGL internal workqueue option to
drive the LVGL core automatically

Signed-off-by: Felipe Neves <ryukokki.felipe@gmail.com>
2025-07-21 21:26:27 -04:00
Tom Burdick
7d9fffaeb9 samples: pmci: mctp: Add i2c+gpio endpoint sample
Adds sample showing i2c+gpio endpoint bindings in use.

Provides an overlay for the frdm-mcxn947 development board using JP8
pins for i2c and gpio connectivity.

The sample periodically sends a "ping" message to the bus controller and
prints out any messages it receives itself.

Signed-off-by: Tom Burdick <thomas.burdick@intel.com>
2025-07-19 09:53:21 +02:00
Tom Burdick
84583ee6c6 samples: pmci: mctp: Add I2C+GPIO bus owner sample
Adds a sample application that can act as the bus owner using
i2c+gpio mctp binding.

Provides an overlay for the frdm-mcxn947 using JP8 pins for i2c and
gpio.

It attempts to send a "ping" message to all endpoints while accepting
string messages from endpoints to print out.

Signed-off-by: Tom Burdick <thomas.burdick@intel.com>
2025-07-19 09:53:21 +02:00
Kate Wang
22c23ea037 samples: modules: lvgl: Enable example for g1120b0mipi on mimxrt798s
Enable lvgl example for g1120b0mipi shield on mimxrt798s board.

Signed-off-by: Kate Wang <yumeng.wang@nxp.com>
2025-06-27 08:49:44 -10:00
Khoa Nguyen
831b9f4443 samples: modules: lvgl: demos: add support for ek_ra8p1
Add support for ek_ra8p1/r7ka8p1kflcac/cm85 running on
rtklcdpar1s00001be display shield

Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
2025-06-25 15:56:20 -10:00
Khoa Nguyen
6d910647e0 samples: modules: tflite-micro: Update Ethos-U driver config
Update Ethos-U driver config for sample app `tflm_ethosu`

Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
2025-06-25 10:52:48 +02:00
Keith Packard
32452dfb05 samples/tflite-micro: Include <cstdint> before using uint8_t
inference_process.hpp depended on the C library implicitly including
stdint.h through some path, which is not defined behavior. Explicitly
include <cstdint> to ensure that uint8_t is defined.

Signed-off-by: Keith Packard <keithp@keithp.com>
2025-06-17 16:06:21 +02:00
Fabian Blatz
8a110a6252 samples: modules: lvgl: demos: Update to v9.3
Update the sample to show upstream demos to v9.3. The samples for flex
layout, scrolling and multilanguage have been removed upstream, so also
remove their respective LV_Z_* entry.

Signed-off-by: Fabian Blatz <fabianblatz@gmail.com>
2025-06-11 08:20:09 +02:00
Abderrahmane JARMOUNI
d2f857f000 samples: lvgl: multi_display: fix typo in sample yaml
fix typo that prevents sample from being built in CI

Signed-off-by: Abderrahmane JARMOUNI <git@jarmouni.me>
2025-05-27 17:56:02 +02:00
Abderrahmane JARMOUNI
c6c5d315cd samples: lvgl: multi_display: add SDL Window titles
Add custom titles to SDL windows in native sim

Signed-off-by: Abderrahmane JARMOUNI <git@jarmouni.me>
2025-05-19 16:36:12 +02:00
Abderrahmane JARMOUNI
7a9fb5463c samples: lvgl: multi_display: doc fix
Trivial doc fix concerning which demos are run by default.

Signed-off-by: Abderrahmane JARMOUNI <git@jarmouni.me>
2025-05-13 03:20:50 +02:00
Abderrahmane JARMOUNI
6a6a0a9ce0 samples: modules: lvgl: add multi-display sample
Add LVGL multi-display sample

Signed-off-by: Abderrahmane JARMOUNI <git@jarmouni.me>
2025-05-08 12:24:21 +02:00
Abderrahmane JARMOUNI
15e9e7a57d samples: modules: lvgl: demos: sample.yaml clean up
remove redundant info already in common section

Signed-off-by: Abderrahmane JARMOUNI <git@jarmouni.me>
2025-05-07 10:30:35 +02:00
Sayooj K Karun
74d6b21cd3 samples: tflite-micro: hello_world: round off quantization
Add roundoff to quantization calculation so that precision
is not lost in in edge cases or when quantization error
propagates through model layes.

Signed-off-by: Sayooj K Karun <sayooj@aerlync.com>
2025-04-28 16:40:02 +02:00
Tom Burdick
1e0af58b51 pmci: Move MCTP into the PMCI subsys
PMCI conveys a stack of specifications from DMTF including MCTP (a
transport layer protocol), PLDM (request/response messaging protocol),
and ancillary SPDM messaging. Placing all these libraries under PMCI
subsystem makes more sense than simply adding MCTP as its own subsystem.

Signed-off-by: Tom Burdick <thomas.burdick@intel.com>
2025-04-21 12:43:33 +02:00
The Nguyen
6592d399ff samples: modules: lvgl: add support for rtk7eka6m3b00001bu shield
Add support for lvgl demo on rtk7eka6m3b00001bu display shield

Signed-off-by: The Nguyen <the.nguyen.yf@renesas.com>
2025-03-21 14:17:21 +01:00
Abderrahmane JARMOUNI
cbced96e2c samples: modules: lvgl: demos: increase native_sim mempool size
Increase native_sim_64 LVGL MEM_POOL_SIZE to accomodate flex_layout demo

Signed-off-by: Abderrahmane JARMOUNI <git@jarmouni.me>
2025-03-19 01:28:54 +01:00
Alberto Escolar Piedras
4ae6c4518e samples/*/lvgl: Remove native_posix overlays
native_posix is being removed as it has reached its end of life in 4.2,
after being deprecated since 4.0.

So these overlays will not serve any purpose anymore.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-03-07 19:16:14 +01:00
Benjamin Cabé
7654902f09 boards: enjoydigital: adopt new zephyr:board directive and role
This updates the documentation of all the EnjoyDigital boards to use
the new `zephyr:board::` directive.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-02-28 14:52:23 +01:00
Detlev Zundel
4715a30683 samples: modules: lvgl: demos: Increase memory pool to fix crash
Due to the added demos, a memory pool of 49 KiB is no longer enough and
leads to crashes:

https://github.com/lvgl/lvgl/issues/7648

Increasing the memory pool to 57 KiB fixes the problem.

Signed-off-by: Detlev Zundel <dzu@member.fsf.org>
2025-02-13 12:14:30 +01:00
Tom Hughes
37deb317c5 samples: modules: lvgl: transparency: Fix supported pixel format check
Found while building with clang and -Wtautological-compare:

samples/modules/lvgl/screen_transparency/src/main.c:47:45: error:
bitwise or with non-zero value always evaluates to true
[-Werror,-Wtautological-bitwise-compare]

if (!(display_caps.supported_pixel_formats | PIXEL_FORMAT_ARGB_8888)) {
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Tom Hughes <tomhughes@chromium.org>
2025-01-16 02:39:21 +01:00
Tom Burdick
be4a3d91e1 samples: Add mctp host and client samples
Samples work by sending MCTP encoded messages over a uart between two
boards.

Signed-off-by: Tom Burdick <thomas.burdick@intel.com>
2025-01-14 22:55:41 +01:00
Sudan Landge
767e03f082 samples: tflite-micro: Use FVP for test validation
What is changed?
 - Replaced printk with printf in the sample

Why do we need this change?
 - Running the sample with fvp just prints the below output and not
   the complete logs that we expect:
    `sender 0: Sending inference`
   We get the expected output with CONFIG_LOG_IMMEDIATE=y but,
   its not ideal. printf works without the config and plus it
   looks a better fit in the current sample than printk.

This change is validate using `mps3/corstone300/fvp`.

Signed-off-by: Sudan Landge <sudan.landge@arm.com>
2025-01-07 10:10:05 +01:00
Sudan Landge
d38e40dcdd samples: tflite-micro: Use FVP for test validation
What is changed?
 - Updated the board qualifier for MPS3 to `mps3/corstone300/fvp`

Why do we need this change?
 - To validate the sample with FVP by default since QEMU doesn't
   model the NPU.

Signed-off-by: Sudan Landge <sudan.landge@arm.com>
2025-01-07 10:10:05 +01:00
Fabian Blatz
f25a8aaf1a samples: modules: lvgl: transparency: Migrate to v9.2
Removes the LV_COLOR_SCREEN_TRANSP Kconfig option as its not part of the
modules Kconfig anymore and renames the functions according to the new v9.2
API.

Signed-off-by: Fabian Blatz <fabianblatz@gmail.com>
2025-01-04 14:17:10 +01:00
Fabian Blatz
3e6eab3cdb samples: modules: lvgl: demos: Add new demos
Add the new demos of LVGL 9.2:
- flex_layout
- keypad_and_encoder
- render
- scroll
- multilang

Signed-off-by: Fabian Blatz <fabianblatz@gmail.com>
2025-01-04 14:17:10 +01:00
Fabian Blatz
9bee6016c9 samples: modules: lvgl: demos: Migrate to v9.2
This patch changes the usage of LVGL functions which are typedefed in the
api map to their new version to anticipate their deprecation.

Signed-off-by: Fabian Blatz <fabianblatz@gmail.com>
2025-01-04 14:17:10 +01:00
Fabian Blatz
693bc51f44 samples: modules: lvgl: accelerometer_chart: Migrate to v9.2
This patch fixes the style size setter usage in the accelerometer_chart
demo since it now expects two dimensions. Also the newly named functions
which are typedefed by the api_map in LVGL are updated to anticipate their
deprecation.

Signed-off-by: Fabian Blatz <fabianblatz@gmail.com>
2025-01-04 14:17:10 +01:00
Fabian Blatz
02cb5fe0c5 samples: modules: lvgl: Update Kconfig depedencies
With v9.1.0 the benchmark sample now has a Kconfig depedency on
LV_USE_DEMO_WIDGETS.

Signed-off-by: Fabian Blatz <fabianblatz@gmail.com>
2025-01-04 14:17:10 +01:00
Fabian Blatz
feb4683293 samples: modules: lvgl: Update CMakeLists
Update the CMakeLists for LVGL to reflect the changes done in v9.2.0.

Signed-off-by: Fabian Blatz <fabianblatz@gmail.com>
2025-01-04 14:17:10 +01:00
The Nguyen
36a6198909 samples: lvgl: add support for rtkmipilcdb00000be to build lvgl demo
Add support for lvgl demo build with rtkmipilcdb00000be shield

Signed-off-by: The Nguyen <the.nguyen.yf@renesas.com>
2024-12-20 23:53:37 +02:00
Gerard Marull-Paretas
d4a67e321b samples, tests: remove usage of space-separated lists
Convert them to native YAML lists. Support for space-separated
lists was deprecated in Twister a long time ago.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2024-12-04 14:14:53 -05:00
Hake Huang
55e642ce21 samples: lvgl: make lvgl demo testable with twister
1. add lvgl status output after starts
2. add extra_args platfrom filterable
3. add some platfroms shield as extra_args

Signed-off-by: Hake Huang <hake.huang@oss.nxp.com>
2024-11-26 15:45:25 -05:00
Pieter De Gendt
bf2db7afc0 python: Format and sort imports
ruff check --select I001 --fix applied to all python files that had
this as only issue.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2024-11-25 10:07:13 +01:00
Martin Stumpf
86a126dba4 samples: modules: lvgl: fix integer overflow
`lv_task_handler()` returns a `uint32_t`, but `k_msleep` takes a
`int32_t`.

If no timer exists, `lv_task_handler()` returns `UINT32_MAX` to indicate
that we should wait forever. However, this gets auto-cast to `-1`,
indicating to `k_msleep` to not wait at all, creating a busy loop.

Hence, a clamping to `[0, INT32_MAX]` is required.

Signed-off-by: Martin Stumpf <finomnis@gmail.com>
2024-11-18 13:17:43 -05:00
Martin Stumpf
3eae0201c8 samples: modules: lvgl: add screen_transparency sample
Adds a sample that renders the simple `hello world` LVGL demo
with a transparent background, to demonstrate ARGB8888 framebuffer
capabilities.

Signed-off-by: Martin Stumpf <finomnis@gmail.com>
2024-11-18 13:17:43 -05:00
Sudan Landge
3092d96e5b boards: mps3: Add support for corstone300/an552
What is changed?
 - Added a new mps3 board an552 for the soc corstone300.
   The qualifier to build/run application with board mps3/an552 is
   `mps3/corstone300/an552` for secure and
   `mps3/corstone300/an552/ns` for non-secure.
 - Added FVP variant to enable FVP testing with corstone300
   and it uses the ARM FVP `FVP_Corstone_SSE-300_Ethos-U55`.
   The qualifier to build/run application with FVP is
   `mps3/corstone300/fvp` for secure and
   `mps3/corstone300/fvp/ns` for non-secure.
 - Note: the qualifier to build/run application with board mps3/an547
   is now changed to
   `mps3/corstone300/an547` for secure and
   `mps3/corstone300/an547/ns` for non-secure.

How is it changed?
 - Moved common code from mps3/an547 to corstone300.
 - Renamed soc for an547 to corstone300 and added
   a new soc corstone300/an552.

Why do we need this change?
 - This enables FVP support and testing for corstone300.
 - SOC/qualifier for mps3/an547 was renamed to reduce code redundancy
 - A separate FVP variant was added for AN552 because, the TFM board
   used for non-secure variant differs for FPGA and FVP.
   TFM board `arm/mps3/corstone300/fvp` should be used when testing
   AN552 with FVP and `arm/mps3/corstone300/an552` should be used when
   testing with AN552 FPGA.

Signed-off-by: Sudan Landge <sudan.landge@arm.com>
2024-10-26 03:58:05 +01:00
Benjamin Cabé
a43009079f boards: st: adopt new zephyr:board directive and role
This updates the documentation of all the STM32 boards to use
the new `zephyr:board::` directive.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-10-24 17:51:15 +02:00
Benjamin Cabé
d885957fe8 boards: nxp: adopt new zephyr:board directive and role
This updates the documentation of all the NXP boards to use
the new `zephyr:board::` directive.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-10-24 17:51:15 +02:00
Benjamin Cabé
fa0b17e4b1 doc: samples: add target-notes directive where missing
For the "References" section to be useful, it needs to include a call to
the target-notes directive, which is the one that actually generates the
list of references made in the current document.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-10-23 15:30:44 -05:00
Andrej Butok
e53eec0851 yaml: use EXTRA_CONF_FILE in .yaml files
Use EXTRA_CONF_FILE in sample yaml files,
that replaced deprecated OVERLAY_CONFIG
since the Zephyr v3.4 release.

Signed-off-by: Andrej Butok <andrey.butok@nxp.com>
2024-10-17 09:45:25 +02:00
Benjamin Cabé
1db9b009a7 doc: samples: Adopt code-sample-category across tree
This commit uses the new .. zephyr:code-sample-category directive to
categorize code samples across the tree.
Updates existing legacy references to manually defined targets to now
use :zephyr:code-sample-category: role instead.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-09-23 12:00:00 +02:00
Benjamin Cabé
df294e34e1 doc: sphinx-lint: fix bad usage of "default role"
Fixes bad usage of single backticks in lieu of double backticks for
rendering inline literals, or simple '*' for italics.

When appropriate, a better construct than double backticks has been
selected (ex. :file:, :kconfig:option:, :c:func:, ...), or proper :ref:
have been used if the original intention was to have a link.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-09-13 11:42:51 -05:00
Benjamin Cabé
25fa25a5a9 doc: :zephyr-app: should point to existing in-tree folders
As there is no check (yet!) in the directive, many
.. zephyr-app-commands:: in the documentation are pointing to
non-existing sample applications, which is problematic for users who
typically expect to just copy-paste the commands and have them work.

This commit fixes all offending references to point to existing samples,
or converts them to simple ":app:" instead of ":zephyr-app:" when the
intent wasn't to refer to in-tree samples.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-09-09 13:53:47 -04:00
Benjamin Cabé
34982bb00b doc: samples: use :zephyr-app: for in-tree samples
The zephyr-app-commands directive can output a helpful hint to the user
when they are trying to build a sample that is in the Zephyr tree,
telling them to ensure they are in the root folder of the Zephyr repo.

Update all doc pages that were using :app: instead of :zephyr-app: so
that the hint is displayed.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-09-05 17:18:05 -04:00
Benjamin Cabé
f6c232ec2e samples: modules: use zephyr:code-sample directive
Describe the samples using code-sample directive in preparation for
upcoming changes to the Zephyr documentation that will be leveraging
the provided description and metadata.

Also fixed a couple invalid or missing table of contents to have
proper document hierarchy.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2024-09-02 11:51:37 +02:00
Joerg Hofrichter
1540bd7d49 samples: modules: nanopb: display buffer content of correct size
With commit ad242b9, the buffer size was made configurable. Hence, the
corresponding definition CONFIG_SAMPLE_BUFFER_SIZE has to be used when
filling and displaying the buffer.

Signed-off-by: Joerg Hofrichter <joerg.hofrichter@ni.com>
2024-08-30 11:58:50 -04:00
Parthiban Nallathambi
f8c51d70c4 samples: add steps to add lz4 into west manifest
lz4 is moved as optional module, add step in README to add
as project filter to include into west manifest.

Fixes: https://github.com/zephyrproject-rtos/zephyr/issues/65127

Signed-off-by: Parthiban Nallathambi <parthiban@linumiz.com>
2024-08-12 19:24:15 -04:00
Parthiban Nallathambi
a65096fc37 samples: move lz4 into modules
all the external modules related samples are part of samples/modules,
whereas lz4 is in parent. move it to sample/modules/compression/lz4

Signed-off-by: Parthiban Nallathambi <parthiban@linumiz.com>
2024-08-12 19:24:15 -04:00