2026-05-01 12:31 AM
I am developing an spc582bxx microcontroller using AutoDevKit Studio.
The device needs to wake up from sleep (standby 0) via wkpu, and RAM data must be preserved when not in por mode.
Therefore, I set the MC_PCU.PCONF2.B.STBY0 register before entering sleep.
However, looking at the generated boot code, it appears to clear all RAM areas during booting.
Is there a boot code sample that preserves RAM data during wake-up via wkpu?
I look forward to your reply.
Thank you.
2026-05-04 2:07 PM - edited 2026-05-04 2:17 PM
RTC/API setup for wake-up in SPC58 family
2026-05-26 6:48 AM - edited 2026-05-26 6:49 AM
Hi John,
Unfortunately, I do not have any code sample that can address you on this.
Probably, your RAM is not being lost because standby retention failed, but because the boot/startup sequence is clearing or reinitializing RAM after wake-up.
You may check:
Your request is not trivial. Check the SPC582B reference manual for more.
The easier way I can actually think to solve this problem is to embed an NVM memory on your design, using it to save your configuration before sleep.
Best regards
Simone,
AEK_TEAM