I haven't done anything with POWMAN other than briefly read the datasheet references to it but I see your strategy as sound and it should indeed work. Except the Scratch RAM areas are also powered down and isn't that where the stack is by default so I'd have thought that would cause major problems if you haven't moved the stack into SRAM0 first.I thought I could run it with the SRAM1 power domain turned off continuously -- power it down at init time, and never bring it back up again. SRAM1 is the power domain for the SRAM banks in the higher address range, and the scratch SRAM banks.
Could it be the API knows you'll trash the stack from the SP register value if it powers-down SRAM1 so won't let you ?
If it doesn't I'd have thought it should.
I would also expect the savings from turning SRAM1 off to be challenging to measure without decent equipment.
Statistics: Posted by hippy — Sun Aug 25, 2024 5:50 pm