Skip to content

Commit d37ec51

Browse files
CharlesDiasfabiobaltieri
authored andcommitted
samples: video: capture: add a stm32h7b3i_dk config
Add a configuration files for the stm32h7b3i_dk board. Signed-off-by: Charles Dias <[email protected]>
1 parent 7720a6a commit d37ec51

File tree

4 files changed

+56
-1
lines changed

4 files changed

+56
-1
lines changed

samples/drivers/video/capture/README.rst

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Requirements
1414
************
1515

1616
This sample needs a video capture device (e.g. a camera) but it is not mandatory.
17-
Supported camera modules on some i.MX RT boards can be found below.
17+
Supported boards and camera modules include:
1818

1919
- `Camera iMXRT`_
2020

@@ -27,6 +27,9 @@ Supported camera modules on some i.MX RT boards can be found below.
2727
- :zephyr:board:`frdm_mcxn947`
2828
with any ``arducam,dvp-20pin-connector`` camera module such as :ref:`dvp_20pin_ov7670`.
2929

30+
- :zephyr:board:`stm32h7b3i_dk`
31+
with the :ref:`st_b_cams_omv_mb1683` shield and a compatible camera module.
32+
3033
Also :zephyr:board:`arduino_nicla_vision` can be used in this sample as capture device, in that case
3134
The user can transfer the captured frames through on board USB.
3235

@@ -41,6 +44,10 @@ On :zephyr:board:`mimxrt1170_evk`, the OV5640 camera module should be plugged in
4144
J2 camera connector. A USB cable should be connected from a host to the micro
4245
USB debug connector (J11) in order to get console output via the daplink interface.
4346

47+
On :zephyr:board:`stm32h7b3i_dk`, connect the :ref:`st_b_cams_omv_mb1683` shield to the
48+
board on CN7 connector. A USB cable should be connected from a host to the micro USB
49+
connector in order to get console output.
50+
4451
For :zephyr:board:`arduino_nicla_vision` there is no extra wiring required.
4552

4653
Building and Running
@@ -83,6 +90,16 @@ using the :ref:`dvp_20pin_ov7670` and :ref:`lcd_par_s035` connected to the board
8390
:goals: build
8491
:compact:
8592

93+
For :zephyr:board:`stm32h7b3i_dk`, build this sample application with the following commands,
94+
using the :ref:`st_b_cams_omv_mb1683` shield with a compatible camera module:
95+
96+
.. zephyr-app-commands::
97+
:zephyr-app: samples/drivers/video/capture
98+
:board: stm32h7b3i_dk
99+
:shield: st_b_cams_omv_mb1683
100+
:goals: build
101+
:compact:
102+
86103
For testing purpose and without the need of any real video capture and/or display hardwares,
87104
a video software pattern generator is supported by the above build commands without
88105
specifying the shields, and using :ref:`snippet-video-sw-generator`:
@@ -105,6 +122,16 @@ append ``-DCONFIG_VIDEO_SHELL=y`` to the build command:
105122
:goals: build
106123
:compact:
107124

125+
For :zephyr:board:`stm32h7b3i_dk` with shell commands:
126+
127+
.. zephyr-app-commands::
128+
:zephyr-app: samples/drivers/video/capture
129+
:board: stm32h7b3i_dk
130+
:shield: st_b_cams_omv_mb1683
131+
:gen-args: -DCONFIG_VIDEO_SHELL=y
132+
:goals: build
133+
:compact:
134+
108135
Sample Output
109136
=============
110137

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#
2+
# Copyright (c) 2025 Charles Dias <[email protected]>
3+
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
6+
7+
CONFIG_LOG_BUFFER_SIZE=2048
8+
9+
CONFIG_VIDEO_PIXEL_FORMAT="RGBP"
10+
CONFIG_VIDEO_FRAME_WIDTH=480
11+
CONFIG_VIDEO_FRAME_HEIGHT=272
12+
CONFIG_VIDEO_BUFFER_POOL_SZ_MAX=262144
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/*
2+
* Copyright (c) 2025 Charles Dias <[email protected]>
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*
6+
*/
7+
8+
/delete-node/ &sram1;
9+
/delete-node/ &sram2;
10+
11+
/* Increase the SRAM0 bank memory size to accommodate the VIDEO_BUFFER_POOL_SZ_MAX configuration. */
12+
&sram0 {
13+
reg = <0x24000000 DT_SIZE_K(1024)>;
14+
};

samples/drivers/video/capture/sample.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ tests:
1212
- platform:mimxrt1170_evk@B/mimxrt1176/cm7:SHIELD="nxp_btb44_ov5640;rk055hdmipi4ma0"
1313
- platform:frdm_mcxn947/mcxn947/cpu0:SHIELD="dvp_20pin_ov7670;lcd_par_s035_8080"
1414
- platform:frdm_mcxn236/mcxn236:SHIELD="dvp_20pin_ov7670;lcd_par_s035_8080"
15+
- platform:stm32h7b3i_dk:SHIELD="st_b_cams_omv_mb1683"
1516
extra_configs:
1617
- CONFIG_TEST=y
1718
- CONFIG_FPU=y
@@ -34,6 +35,7 @@ tests:
3435
- frdm_mcxn236/mcxn236
3536
- mm_swiftio
3637
- esp32s3_eye/esp32s3/procpu
38+
- stm32h7b3i_dk
3739
depends_on: video
3840
integration_platforms:
3941
- mimxrt1064_evk/mimxrt1064

0 commit comments

Comments
 (0)