Thank you Dmitri - that is EXACTLY what I needed. Can't thank you enough :-)
I will get my arch/board working along similar lines and submit PR for
the SAMA5 stuff, then see if I can put together a guide for others to
follow and/or enhance the existing pm documentation. That's at least 3
documentations I've promised to do but I need to get my product launched
first!!
On 15/10/2025 06:40, Dmitri Shilov wrote:
The Sony Spresense SDK, built on top of NuttX, has power management, if you
want to look at an example of an implementation.
https://developer.sony.com/spresense/development-guides/sdk_developer_guide_en#_power_management
https://github.com/sonydevworld/spresense/tree/master/examples/power_sleep
Regards,
Dmitri Shilov.
-------- Original Message --------
On 2025-10-14 2:39 p.m., Tim Hardisty <[email protected]> wrote:
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!
>