Symbols
loading...
Files
loading...

PWR_CurrentConsumption sample

PWR_CurrentConsumption is a sample project defining the following symbols:

Most used functions

Name
Location
Summary
This function handles NMI exception.
This function handles Hard Fault exception.
This function handles Debug Monitor exception.
This function handles Memory Manage exception.
This function handles Bus Fault exception.
This function handles Usage Fault exception.
This function handles SysTick Handler.
This function handles SVCall exception.
This function handles PendSVC exception.
This function is executed in case of error occurrence.
Main program
This function handles external line 15_10 interrupt request.
This function handles RTC Auto wake-up interrupt request.
This function configures the system to enter Sleep mode for current consumption measurement purpose. Sleep Mode ========== - System Running at PLL (180MHz) - Flash 3 wait state - Instruction and Data caches ON - Prefetch ON - Code running from Internal FLASH - All peripherals disabled. - Wakeup using EXTI Line (Key Button)
This function configures the system to enter Standby mode for current consumption measurement purpose. STANDBY Mode ============ - Backup SRAM and RTC OFF - IWDG and LSI OFF - Wakeup using WakeUp Pin (PA.00)
This function configures the system to enter Standby mode with RTC clocked by LSE or LSI for current consumption measurement purpose. STANDBY Mode with RTC clocked by LSE/LSI ======================================== - RTC Clocked by LSE/LSI - IWDG OFF - Backup SRAM OFF - Automatic Wakeup using RTC clocked by LSE/LSI (after ~20s)
This function configures the system to enter Stop mode with RTC clocked by LSE or LSI for current consumption measurement purpose. STOP Mode with RTC clocked by LSE/LSI ===================================== - RTC Clocked by LSE or LSI - Regulator in LP mode - HSI, HSE OFF and LSI OFF if not used as RTC Clock source - No IWDG - FLASH in deep power down mode - Automatic Wakeup using RTC clocked by LSE/LSI (~20s)
This function configures the system to enter Standby mode with RTC clocked by LSE or LSI and with Backup SRAM ON for current consumption measurement purpose. STANDBY Mode with RTC clocked by LSE/LSI and BKPSRAM ==================================================== - RTC Clocked by LSE or LSI - Backup SRAM ON - IWDG OFF - Automatic Wakeup using RTC clocked by LSE/LSI (after ~20s)
This function configures the system to enter Under-Drive stop mode with RTC clocked by LSE or LSI for current consumption measurement purpose. STOP Mode with RTC clocked by LSE/LSI ===================================== - RTC Clocked by LSE or LSI - Regulator in LP mode - Under drive feature enabled - HSI, HSE OFF and LSI OFF if not used as RTC Clock source - No IWDG - FLASH in deep power down mode - Automatic Wakeup using RTC clocked by LSE/LSI (~20s)
Configures system clock after wake-up from STOP: enable HSI, PLL and select PLL as system clock source.
System Clock Configuration The system Clock is configured as follows: System Clock source = PLL (HSE) SYSCLK(Hz) = 180000000 HCLK(Hz) = 180000000 AHB Prescaler = 1 APB1 Prescaler = 4 APB2 Prescaler = 2 HSE Frequency(Hz) = 8000000 PLL_M = 8 PLL_N = 360 PLL_P = 2 PLL_Q = 7 PLL_R = 2 VDD(V) = 3.3 Main regulator output voltage = Scale1 mode Flash Latency(WS) = 5

Other commonly used symbols

Name
Location
Summary
Internal High Speed oscillator (HSI) value. This value is used by the RCC HAL module to compute the system frequency (when HSI is used as system clock source, directly or through the PLL). Value of the Internal oscillator in Hz
Adjust the value of External High Speed oscillator (HSE) used in your application. This value is used by the RCC HAL module to compute the system frequency (when HSE is used as system clock source, directly or through the PLL). Value of the External oscillator in Hz
Miscellaneous Configuration *********************** Vector Table base offset field. This value must be a multiple of 0x200.
@file PWR/PWR_CurrentConsumption/Inc/main.h @author MCD Application Team Header for main.c module @attention Copyright (c) 2017 STMicroelectronics. All rights reserved. This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.
@file PWR/PWR_CurrentConsumption/Inc/stm32f4xx_it.h @author MCD Application Team This file contains the headers of the interrupt handlers. @attention Copyright (c) 2017 STMicroelectronics. All rights reserved. This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.
Uncomment the line below to expanse the "assert_param" macro in the HAL drivers code
External clock source for I2S peripheral This value is used by the I2S HAL module to compute the I2S clock source frequency, this source is inserted directly through I2S_CKIN pad. Value of the external oscillator in Hz
Internal Low Speed oscillator (LSI) value.
External Low Speed oscillator (LSE) value. Value of the External Low Speed oscillator in Hz
Time out for HSE start up, in ms
Time out for LSE start up, in ms
@file stm32f4xx_hal_conf.h @author MCD Application Team HAL configuration file. @attention Copyright (c) 2017 STMicroelectronics. All rights reserved. This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.
This is the list of modules to be used in the HAL driver
This is the HAL system configuration section Value of VDD in mv
@file PWR/PWR_CurrentConsumption/stm32f4xx_lp_modes.h @author MCD Application Team Header for stm32f4xx_lp_modes.c module @attention Copyright (c) 2017 STMicroelectronics. All rights reserved. This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.

Dependencies

PWR_CurrentConsumption depends on the following libraries: