2024-10-23 12:50 AM - last edited on 2024-10-23 01:05 AM by Andrew Neil
I have the NUCLEO-G432RB, which has the STM32G431RB MCU. The datasheet states that the MCU could operate in different ranges to reduce power consumption. For my application, I need to know how much power the MCU consumes, so connecting a multimeter to JP6 (IDD) allowed me to monitor the current consumption. However, I do not know how to make the MCU operate in different ranges to observe the change in the current consumption. First I thought that selecting the range required selecting the frequency (f HCLK) only. However, there are common frequencies between ranges 1 and 2.
If anyone knows how to handle this issue please inform me.
Note that I am using STM Cube IDE to program the MCU.
Solved! Go to Solution.
2024-10-23 01:02 AM
Ahlan @Hussain and welcome to the ST Community.
The easy way to do this is to create an MX project based on the Board or MCU, go to the Clock Configuration and select a SYSCLK on the range where the power scale that you want to use is available and go to RCC>Configuration>Power Parameters> Power Regulator Voltage Scale and select the range that you want to use.
Marhaban
STTwo-32
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-10-23 01:02 AM
Ahlan @Hussain and welcome to the ST Community.
The easy way to do this is to create an MX project based on the Board or MCU, go to the Clock Configuration and select a SYSCLK on the range where the power scale that you want to use is available and go to RCC>Configuration>Power Parameters> Power Regulator Voltage Scale and select the range that you want to use.
Marhaban
STTwo-32
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-10-23 01:04 AM - edited 2024-10-23 01:07 AM
The Reference Manual would be the place to go ...
https://www.st.com/en/microcontrollers-microprocessors/stm32g431rb.html#documentation
PS:
See also the HAL User Manual:
https://www.st.com/en/embedded-software/stm32cubeg4.html#documentation