← index #18960PR #5349
Related · medium · value 1.215
QUERY · ISSUE

OpenMV Feature: RTC.memory()

openby kwagyemanopened 2026-03-21updated 2026-03-21
enhancement

Description

RTC.memory() working for the STM32, MIMXRT, and Alif on the machine module.

Also, standardize the RTC API on these ports. They all implement the machine API in somewhat different ways.

Code Size

No response

Implementation

I hope the MicroPython maintainers or community will implement this feature

Code of Conduct

Yes, I agree

CANDIDATE · PULL REQUEST

esp32/machine_rtc: Add prefix to rtc user mem macro.

closedby nevercastopened 2019-11-20updated 2019-11-21
port-esp32

When working with ESP32 C modules, you may want to put symbols/data/code in to RTC memory so that you can write a deepsleep stub, or use the ULP on the ESP32. When doing so, the RTC memory region can sometimes overflow at linker time due to the allocations made within the ESP32 RTC module.

This fix allows modifying the size of that memory region in your board config to decrease the size, by adding #define MICROPY_HW_RTC_USER_MEM_MAX 512 for example, the RTC module's user memory region would be decreased from 2K to 512 bytes, giving you space for other content outside of MicroPython.

This fix both renames the macro to something more suited for configuration use and allows it to be defined outside of the RTC module.

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied