|
本帖最后由 Flole 于 2025-8-11 18:08 编辑
I have done additional testing and setting- pm_set_xtal_stable_timer_param(216, 20, 320);
复制代码 eliminates the clock drift now. Also it seems like it runs mostly stable with these parameters. With higher parameters it crashes/resets after about 8 minutes. How can I fine-tune those, the documentation doesn't really explain what each parameter does and when to increase/decrease them. The first parameter basically indicates in microseconds how long the loop for the third parameter takes? When is that loop executed and what is it for? The second parameter is also a loop/delay, when is that loop executed?
Do I also need to adjust blc_pm_setDeepsleepRetentionEarlyWakeupTiming after setting the xtal stable timer param?
Unfortunately even with these parameters the stall after a reset remains. If the CPU resets for any reason (halt/reset from the debugger, exception, watchdog timeout) it will not wake up from sleep again. A power-cycle fixes it. Any idea how I can do further debugging? I suspect a difference between power-on and another reset is, that the oscillator would be not oscillating on a power-on, so the initial "kick" to start it might not work properly after a reset? Is there anything I can do to manually power-down the oscillator after a reset (like driving the oscillator GPIOs as outputs low) and then re-start it? Maybe that could help after a non-power-on-reset?
|
|