STMCU小助手
发布时间:2022-4-7 18:15
|
Linux是有低功耗模式的(Low Power Mode),emcraft的STM32F7也实现了这个功能,它支持suspend to RAM模式。也就是电脑上常说的挂起到内存。 在STM32F750开发板上可以通过命令行使系统挂起,使用SW3 button唤醒系统(wake up)。 1. 系统正常启动,测量5V输入端电流,大约210mA0 D; v$ B" r0 \5 F" x, ^2 n
2. 在控制台输入系统挂起命令; @) C- }4 ^$ \9 } ; [: I, r) C. _) k1 }: @' P / # echo mem > /sys/power/state PM: Syncing filesystems ... done. Freezing user space processes ... (elapsed 0.007 seconds) done.: i& `' H; c. O- { Freezing remaining freezable tasks ... (elapsed 0.014 seconds) done.6 ?' r$ N( W/ |! w& y; o& C 2 @6 r6 n) {! V' J) E- A# m2 M 这时测得的系统电流消耗大约10mA(由于所用万用表只有10A档适合测量这个板子的电流,如果有合适的mA档其实应该更精确一些的)8 N8 T0 Y5 E; N
3 D7 g7 W3 [4 g* I 3. 按下SW3 button系统恢复运行% x9 Q Q) c/ P
* u8 N8 \6 K+ n. _, o$ a dwc2 50000000.usb: suspending usb gadget g_serial dwc2 50000000.usb: s3c_hsotg_ep_disable: called for ep0& b* X7 Z, l" p% Y; i2 B dwc2 50000000.usb: s3c_hsotg_ep_disable: called for ep06 e7 `+ r% f V! }& s5 ?8 b* h PM: suspend of devices complete after 5.553 msecs PM: late suspend of devices complete after 4.632 msecs PM: noirq suspend of devices complete after 2.482 msecs PM: noirq resume of devices complete after 1.748 msecs, t2 `% X! {6 k# x PM: early resume of devices complete after 2.316 msecs1 j) l8 h9 Z1 r- t7 H4 X9 n8 ^1 l dwc2 50000000.usb: resuming usb gadget g_serial PM: resume of devices complete after 111.242 msecs Restarting tasks ... done.- H6 V1 {: L# Y. V0 s4 ]. ` / # $ |& y. G4 U; ]* I1 T 此时系统电流重新回到210mA左右。/ |* |# \5 n5 ~+ S 7 b+ Y2 f3 U" r3 Z9 o, x: G |
基于STM32F767通过cube配置:QSPI接口读写64M PSRAM+flash参考资料...
STM32F746G-DISCO移植lvgl9.0性能基准测试
STM32F745 USART1 Bootloader启动失败排查与解决的流程分析
STM32芯片命名规则
STM32 引脚到底有多少?为什么一个引脚能当好几个用?
入门嵌入式,为什么STM32是“优选起步”?
嵌入式-单片机-STM32 EXTI中断
STM32单片机进行除零运算,为何程序不崩溃?
STM32 LL为什么比HAL高效?
STM32时钟详解
微信公众号
手机版