Hello @danielmartynek,
Apologies for the delayed response — we were engaged with other activities.
We have observed additional behavior related to pin state spikes in various scenarios, particularly when waking up from Low Power Mode. Please find the details below:
Steps Followed:
1. Set the output value of the pin to LOW.
2. Entered Low Power Mode (Sleep/Standby).
3. Triggered wakeup from low power mode.
4. Observed a brief spike (HIGH) on the pins before they returned to LOW.
Expected Behavior:
The software should retain the pin state during Low Power Mode and restore it immediately after wakeup — i.e., the pin should remain LOW throughout.
Actual Behavior:
After wakeup, a 3ms spike (HIGH) is observed, after which the pin returns to LOW.
Debugging Observation:
We enabled the "PortPin Pull Keeper" setting, and after doing so, the spike was no longer observed.
As per the reference manual, the Pull Keeper is designed to retain the pin state while the MCU is in Standby mode.
Request for Clarification:
We would like your input on the following points:
1. Is enabling the "PortPin Pull Keeper" a valid and recommended solution in this case?
→ Our understanding was that the MCU should retain the pin state during standby even without this setting enabled.
2. Could the spike be due to the pin being in a floating/uncontrollable/high-impedance state during the transition if yes then can let us know what might be the reason for this?
3. Aside from the Pull Keeper setting, are there any other configurations we should verify to ensure stable pin behavior during Low Power Mode?
We appreciate your insights and clarification on this matter.
Thanks & Regards,
Manu Sharma