Chibios and Low Power
Posted: Thu Jan 08, 2015 9:35 am
MCU is STM32F4xx
AT the moment i'm trying to reduce the current consumed by the MCU in stop mode.
Currently im down at 5.2mA, but this is still higher than it should be. This is with all I/O set to Analogue I/P, All GPIO CLKS Disabled.
In the STM datasheets it states peripherals if enable will consume current, so i disabled to start with ADC1(which i use in my application). This saved another 800uA.
All through it did high-light something.
To stop the ADC driver one can't just call adcStop( &ADCD1 ); you have to first call adcStopConversion( &ADCD1 );
The issue i have now is how should one safely stop Chibios Drivers, as each one of these will consume power in stop mode ? and some of them you cant just call xxxStop();
i.e.
SD
SDC
DMA
I2C
SPI
What i need effectively is the MCU back to the state like at the beginning of program execution before halinit(); is called.
AT the moment i'm trying to reduce the current consumed by the MCU in stop mode.
Currently im down at 5.2mA, but this is still higher than it should be. This is with all I/O set to Analogue I/P, All GPIO CLKS Disabled.
In the STM datasheets it states peripherals if enable will consume current, so i disabled to start with ADC1(which i use in my application). This saved another 800uA.
All through it did high-light something.
To stop the ADC driver one can't just call adcStop( &ADCD1 ); you have to first call adcStopConversion( &ADCD1 );
The issue i have now is how should one safely stop Chibios Drivers, as each one of these will consume power in stop mode ? and some of them you cant just call xxxStop();
i.e.
SD
SDC
DMA
I2C
SPI
What i need effectively is the MCU back to the state like at the beginning of program execution before halinit(); is called.