aclk_configure(10000, ACLK1, ACLK_FREQ_1_MHZ);
changing ACLK_FREQ_1_MHZ with 24 doesnt change the issue.
before the event I measure a period of 255.6ms, which is 4.43 Hz
after I measure a period of 3 sec, which is 0.33Hz
This event is happening after 30 sec around, I'm not changing any pwm configuration.
If I connect my board by BLE to my tablet blecm event happen before these 30 s and I've got the same issue, but earlyier...
And how are you starting the PWM? What are the parameters to pwm_start()?
pwm_start(pwm->pwm_number, pwm->clockReference, 0x3FF, 0);
where number is 0 and clockReference is PMU.
Try changing your reference clock to LHL_CLK.
I can, but it's not what I need.
3 other PWM are under the LHL.
This one needs to have the hability to go from 0.1Hz to 2kHz
I just tried SDK 2.2.1, no improvement.
At Init :
aclk_configure(256000, ACLK1, ACLK_FREQ_24_MHZ);
pwm_start(0,PMU_CLK, 0x3FF, 0);
gpio_configurePin(GPIO_PIN_P26>>4, GPIO_PIN_P26 && 0x0F , PWM0_OUTPUT_ENABLE_P26 ,0);
then when I need to activate the PWM I do :
pwm_start(0,PMU_CLK, 0x300, 0);
(or I tried pwm_transitionToSubstituteValues(pwm->pwm_number, 0x300, 0); no difference)
That's what I get ... So it's not event working properly before the 30 sec "event"
Doesn't make any sense ...
Zoom in on a spot, Delta between 2 slops (after 30 sec), 101.2ms
when I disable high_undirect_adv_duration to "0" sec. I have the PWM output like if I was after the 30 sec.
if I change it to 300s, to stay in "fast" operation, and afeter 5 min it goes slow.
When PMU_CLK is used as reference, PMW will not function during sleep. LHL_CLK on the other hand continues to function in sleep. So this is all expected. Your only option now is to disable sleep.
Man ... thanks !
For information :
// Callback called by the FW when ready to sleep/deep-sleep. Disable both by returning 0
// when there is an active download ongoing.
UINT32 automation_io_device_lpm_queriable(LowPowerModePollType type, UINT32 context)
// Disable sleep.
Inside the "create" function ;