STM32 中使用 FreeRTOS 的 STOP2 模式

STOP2 mode with FreeRTOS in STM32

我正在使用 STM32L476(使用 FreeRTOS)开发低功耗应用程序。我正在使用 SW4STM32 和 STM32CubeMx。我已经完成了使用睡眠模式的 Tickless 空闲模式示例。我需要更省电,所以我打算使用 STOP2 模式。是否可以将 STOP2 模式与 FreeRTOS 一起使用?

如果启用了无滴答功能,您可以使用低功耗定时器。

Stop 0, Stop 1 and Stop 2 modes: SRAM1, SRAM2 and all registers content areretained. All clocks in the VCOREdomain are stopped, the PLL, the MSI, the HSI16 andthe HSE are disabled. The LSI and the LSE can be kept running.

在 STM32L4x6 参考手册中找到,RM0351 Rev 6,p.164

"Low Power RTOS For ARM Cortex-M MCUs" 指南: https://www.freertos.org/low-power-ARM-cortex-rtos.html