Hello ST community,
I'm encountering an issue with my STM32 MCU where I observe higher than expected current consumption in stop mode when the SPI2 port is activated, and interestingly, the current consumption decreases when I deinitialize the MOSI pin. I'm seeking some insights and suggestions to help troubleshoot and resolve this problem.
Here are the details of my setup:
I have reviewed the datasheet and reference manual of my MCU, but I couldn't find a clear explanation for this behavior. I have also ensured that I properly enable and disable the SPI2 port and MOSI pin in my code.
I'm reaching out to the community to inquire if anyone has encountered a similar issue or has any insights into possible causes or troubleshooting steps to investigate this problem further. Could it be related to the peripherals associated with the SPI2 port or some other factor that affects current consumption in stop mode?
Additionally, I'd appreciate any advice on how to measure and analyze current consumption accurately during different stages of the MCU's operation, as well as any recommendations on best practices for managing current consumption in stop mode.
Thank you for your expertise and assistance in advance!
Hello @Oğulcan Namaz and welcome to the community,
Before entering Stop mode you need to put all the used GPIOs in analog mode, try this configuration and see if you have the same behavior or not?