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