I have added a "sama5_pminitialize", great. I can enable CONFIG_PM.
Good. No code found at the arch level to actually drive the process to
do anything so no doubt have to add that.
But still no idea what I'm supposed to "do" to actually make use of the
"pm" system. Perhaps it is derived from Linux?
NuttX documentation is arcane (one of my favourite words): if you know,
you know; if you don't, you're stuffed!
Either it should be possible to programmatically request a sleep mode,
or to set the board up in some way that this can happen when needed as
per some "conditions"?
Can anyone point me to anything that says how I should use this system?
I'll read everything!
On 11/10/2025 11:00, Tim Hardisty wrote:
Hello all.
I want to put a SAMA5D2 processor into low power modes via a software
function call. I have found some Microchip App Notes but they either
refer to Linux or have pseudo code for bare-metal, but I sort of
understand what the functions will need to do.
Can someone point me to where in NuttX such arch/board drivers should
live and/or the methodology/template/whatever to use? Then I can find
a board or arch I can use as a reference.
Probably staring me in the face but can't see anything appropriate as
yet!
Thanks!