Skip to content

Conversation

CharlesDias
Copy link
Contributor

@CharlesDias CharlesDias commented Jul 13, 2025

Add configuration files for the stm32h7b3i_dk board.

Build command:

west build -p -b stm32h7b3i_dk --shield st_b_cams_omv_mb1683 samples/drivers/video/capture

josuah
josuah previously approved these changes Jul 14, 2025
Copy link
Contributor

@josuah josuah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I lack this particular devkit to test but it all looks good to go. Thank you for this addition!

Copy link
Contributor

@kartben kartben left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given you have, I assume, tested it and it's now clearly documented in the readme that it's a configuration that should work, it should be added to the sample.yaml

@CharlesDias CharlesDias force-pushed the capture_sample_add_stm32h7b3i_dk branch from 1081b46 to 744b6d4 Compare July 26, 2025 10:21
Add a configuration files for the stm32h7b3i_dk board.

Signed-off-by: Charles Dias <[email protected]>
@CharlesDias
Copy link
Contributor Author

Added the board to the sample.yml file.

Thank you, @josuah and @kartben for your review. Yes, I tested on my board and it worked fine! :)

@CharlesDias CharlesDias force-pushed the capture_sample_add_stm32h7b3i_dk branch from 744b6d4 to 1cfecc5 Compare July 26, 2025 10:27
@CharlesDias
Copy link
Contributor Author

Rebased and solved the conflict in the sample.yml file.

Build command:
west build -p -b stm32h7b3i_dk --shield st_b_cams_omv_mb1683 samples/drivers/video/capture

Output console:

*** Booting Zephyr OS build v4.1.0-8427-g1cfecc504360 ***
[00:00:00.166,000] <inf> main: Video device: dcmi@48020000
[00:00:00.166,000] <inf> main: - Capabilities:
[00:00:00.166,000] <inf> main:   RGBP width [160; 160; 0] height [120; 120; 0]
[00:00:00.166,000] <inf> main:   RGBP width [320; 320; 0] height [240; 240; 0]
[00:00:00.166,000] <inf> main:   RGBP width [480; 480; 0] height [272; 272; 0]
[00:00:00.166,000] <inf> main: - Video format: RGBP 480x272
[00:00:00.170,000] <inf> main: - Supported frame intervals for the default format:
[00:00:00.170,000] <inf> main: - Supported controls:
[00:00:00.170,000] <inf> main:          device: ov5640@3c
[00:00:00.170,000] <inf> video_ctrls:                       Brightness 0x00980900 (int)    (flags=0x00) : min=-15 max=15 step=1 default=0 value=0 
[00:00:00.170,000] <inf> video_ctrls:                         Contrast 0x00980901 (int)    (flags=0x00) : min=0 max=255 step=1 default=0 value=0 
[00:00:00.170,000] <inf> video_ctrls:                       Saturation 0x00980902 (int)    (flags=0x00) : min=0 max=255 step=1 default=64 value=64 
[00:00:00.170,000] <inf> video_ctrls:                              Hue 0x00980903 (int)    (flags=0x00) : min=0 max=359 step=1 default=0 value=0 
[00:00:00.170,000] <inf> video_ctrls:                  Gain, Automatic 0x00980912 (bool)   (flags=0x10) : min=0 max=1 step=1 default=1 value=1 
[00:00:00.170,000] <inf> video_ctrls:                  Horizontal Flip 0x00980914 (bool)   (flags=0x00) : min=0 max=1 step=1 default=0 value=0 
[00:00:00.170,000] <inf> video_ctrls:                    Vertical Flip 0x00980915 (bool)   (flags=0x00) : min=0 max=1 step=1 default=0 value=0 
[00:00:00.170,000] <inf> video_ctrls:             Power Line Frequency 0x00980918 (menu)   (flags=0x00) : min=0 max=3 step=1 default=1 value=1 
[00:00:00.170,000] <inf> video_ctrls:                                  0: Disabled
[00:00:00.170,000] <inf> video_ctrls:                                  1: 50 Hz
[00:00:00.170,000] <inf> video_ctrls:                                  2: 60 Hz
[00:00:00.170,000] <inf> video_ctrls:                                  3: Auto
[00:00:00.170,000] <inf> video_ctrls:                    Analogue Gain 0x009e0903 (int)    (flags=0x0c) : min=0 max=1023 step=1 default=0 value=16 
[00:00:00.170,000] <inf> video_ctrls:                       Pixel Rate 0x009f0902 (int64)  (flags=0x01) : min=24000000 max=96000000 step=1 default=48000000 value=48000000 
[00:00:00.170,000] <inf> video_ctrls:                     Test Pattern 0x009f0903 (menu)   (flags=0x00) : min=0 max=4 step=1 default=0 value=0 
[00:00:00.170,000] <inf> video_ctrls:                                  0: Disabled
[00:00:00.170,000] <inf> video_ctrls:                                  1: Color bars
[00:00:00.170,000] <inf> video_ctrls:                                  2: Color bars with rolling bar
[00:00:00.170,000] <inf> video_ctrls:                                  3: Color squares
[00:00:00.170,000] <inf> video_ctrls:                                  4: Color squares with rolling bar
[00:00:00.170,000] <inf> main: Display device: display-controller@50001000
[00:00:00.170,000] <inf> main: - Capabilities:
[00:00:00.170,000] <inf> main:   x_resolution = 480, y_resolution = 272, supported_pixel_formats = 41  current_pixel_format = 32, current_orientation = 0
[00:00:00.170,000] <inf> main: Capture started
uart:~$ 

Copy link

sonarqubecloud bot commented Jul 26, 2025

Please retry analysis of this Pull-Request directly on SonarQube Cloud, or don't, I'm not going to find anything anyway.

@fabiobaltieri fabiobaltieri merged commit d37ec51 into zephyrproject-rtos:main Jul 29, 2025
20 checks passed
@CharlesDias CharlesDias deleted the capture_sample_add_stm32h7b3i_dk branch August 2, 2025 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Samples Samples area: Video Video subsystem
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants