Skip to content

Conversation

KurtE
Copy link

@KurtE KurtE commented Sep 8, 2025

This change, removes the automatic starting of the PWM clock on the GIGA, at startup. Instead it starts the clock if/when the sketch calls the Camera::begin method.

But to make this work, we also need to not start up the video objects, until after the MCLK has been started. We can do that with marking them as zephyr,deferred-init

This is to me a better solution to adding Portenta H7 than #184 as again this
only starts up (uses) the video resources IF you actually use them in your sketch.

Some of this is discussed in the Arduino discussion: zephyrproject-rtos/zephyr#93058 (reply in thread)

This change, removes the automatic starting of the PWM clock on the
GIGA, at startup.  Instead it starts the clock if/when the sketch calls
the Camera::begin method.

But to make this work, we also need to not start up the video objects, until
after the MCLK has been started.  We can do that with marking them
as zephyr,deferred-init
@KurtE KurtE force-pushed the defer_camera_start branch from 6cb0382 to 1af120d Compare September 22, 2025 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant