Improve sf32lb52 low power mode stability.#364
Merged
Conversation
e2fede0 to
f7fc0ea
Compare
cameled
commented
Oct 26, 2025
| // Reset HR pin, clear IE, PE | ||
| hwp_pinmux1->PAD_PA09 &= ~((1 << 6) | (1 << 4)); | ||
| hwp_pinmux1->PAD_PA20 &= ~((1 << 6) | (1 << 4)); | ||
| hwp_pinmux1->PAD_PA25 &= ~((1 << 6) | (1 << 4)); |
Contributor
Author
There was a problem hiding this comment.
Leak is from PA09 or PA20(forget which one). As I tested, after reset that pin, current drop 150uA.
Member
Contributor
Author
|
Original performance data is measured without hxt48 change. Looks hxt48 enable is a new point we get, but not the final. |
Member
Could you also check display problems? |
940e724 to
6d53569
Compare
Contributor
Author
black or dim? I see it will enter dim state. |
Member
|
please rebase |
The AON IRQ pending issue have been fixed, also add a ipc queue idle check to avoid LCPU enter incorrect state. The unstable wakeup time issue still remain, sometimes need nearly 8ms to wakeup. Thanks for xiaoming's support. Signed-off-by: HaiLong Yang <cameled@outlook.com>
Use enabled flag to avoid stop mode counter inconsistent. Signed-off-by: HaiLong Yang <cameled@outlook.com>
Signed-off-by: HaiLong Yang <cameled@outlook.com>
Set RC32K as LP clock, which will reduce the deepsleep wakeup time. Signed-off-by: HaiLong Yang <cameled@outlook.com>
Contributor
Author
|
@gmarull The black issue fixed. |
Member
I can see firmware is stable now, average current is:
|
gmarull
approved these changes
Nov 3, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


This improve the sf32lb52 low power mode stability.
Low power current on big board is mainly from the blue led, nearly 2 mA. Also find current leak on HR pin, about 150uA. Current low power performance as below. (still have some IO leak?)
In deepsleep mode, HXT48 clock should be enable. its effective the LCPU/BLE and wakeup time. After HXT48 clock enable, BLE worked (not full tested), and wakeup time drop to 1ms.
Remain work: