If you enable CONFIG_CPUFREQ_RELEASE_LOCK
in SPRENSE SDK v2.3.0, when you run examples/camera
It will stop in the middle of the shooting.
$tools/config.py examples/camera
$ tools /config.py -m
// Enable CONFIG_CPUFREQ_RELEASE_LOCK in menuconfig
$ make
NuttShell (NSH) NuttX-10.1.0
nsh>camera-jpg1
nximage_listener: Connected
nximage_initialize —Screen resolution (320,240)
Take 1 pictures as JPEG files in /mnt/sd0 after 5 seconds.
After finishing taking pictures, this app will be finished after 10 seconds.
// remain stationary here
Therefore, examples/camera
and examples/power_sleep
cannot be used at the same time.
I couldn't find out why it happened.
Are there any restrictions?
I'm not sure why, but if you look at the web document,
About https://developer.sony.com/develop/spresense/docs/arduino_developer_guide_ja.html#_ Clock Mode
Camera function should be operated at CLOCK_MODE_156MHz or CLOCK_MODE_32MHz.
https://developer.sony.com/develop/spresense/docs/sdk_developer_guide_ja.html#_cpu_ System Clock Control
Before you move Camera, you can try it if you get an HV lock or an LV lock and raise the clock.
#include<arch/chip/pm.h>
structure pm_cpu_freqlock_lock;
lock.flag = PM_CPUFREQLOCK_FLAG_LV;
// or
// lock.flag = PM_CPUFREQLOCK_FLAG_HV;
up_pm_acquire_freqlock(&lock);
// ...camera operation...
up_pm_release_freqlock(&lock);
© 2024 OneMinuteCode. All rights reserved.