cancel
Showing results for 
Search instead for 
Did you mean: 

problem of consumption(Sleep mode) in STM32-P103??

mustapha_menhou
Associate II
Posted on May 20, 2013 at 13:04

Hi,

I need

to put my

card

STM32

-

P103

standby

I

test the

consumption of all

the

card

I see that

it

uses up to

19mA

but

the literature indicates that

standby power

consumption must

be

to

some

uA

.

here is my code

:

#include ''stm32f10x.h''

#include ''stm32f10x_gpio.h''

#include ''stm32f10x_rcc.h''

#define LED_PORT GPIOC

GPIO_InitTypeDef GPIO_InitStructure;

ErrorStatus HSEStartUpStatus;

void RCC_Configuration(void);

void GPIO_Configuration(void);

void main(void)

{

    

    RCC_Configuration();

    GPIO_Configuration();

    PWR_EnterSTANDBYMode();

    while (1)

    {

    }

}

void RCC_Configuration(void)

{

    RCC_DeInit();

    RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOA | RCC_APB2Periph_GPIOB |

    RCC_APB2Periph_GPIOC | RCC_APB2Periph_GPIOD |

    RCC_APB2Periph_GPIOE | RCC_APB2Periph_AFIO, ENABLE);

}

void GPIO_Configuration(void)

{

       GPIO_InitStructure.GPIO_Pin = GPIO_Pin_All;

    GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;

    GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AIN;

    GPIO_Init(GPIOA, &GPIO_InitStructure);

    GPIO_Init(GPIOB, &GPIO_InitStructure);

    GPIO_Init(GPIOC, &GPIO_InitStructure);

    GPIO_Init(GPIOD, &GPIO_InitStructure);

    RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOA | RCC_APB2Periph_GPIOB | RCC_APB2Periph_GPIOD | RCC_APB2Periph_GPIOE, DISABLE);

    ADC_Cmd(ADC1, DISABLE);

}

and thank you for your help
10 REPLIES 10
Posted on May 20, 2013 at 14:08

The specs are for the chip, not the board.

Are you measuring the current on the 3-3V3 supply for the chip itself, or prior to the regulator and for other chips (RS232 buffer, etc)?
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
mustapha_menhou
Associate II
Posted on May 20, 2013 at 14:40

Thank you clive

I put

the meter

on the

map entry

that

are

to say,

I measure the

total

current

consumed

by the card and

I

find

that the

current

equal

to

19mA

in standby mode

I do not know

how to reduce

consumption

at the end of

some

uA

?

and thank you

mustapha_menhou
Associate II
Posted on May 20, 2013 at 19:52

Thank you clive

I put

the meter

on the

map entry

that

are

to say,

I measure the

total

current

consumed

by the card and

I

find

that the

current

equal

to

19mA

in standby mode

I do not know

how to reduce

consumption

at the end of

some

uA

?

and thank you

Posted on May 20, 2013 at 20:04

I'm not sure what you want me to do about this.

The current drawn by VBAT will be of most interest as the internal regulator should switch off in STANDBY.

From my own F1 design I recall drawing 180 uA from my lithium battery (3.7V) in STANDBY, and in STOP it was below 1mA (800-900 uA). This was a board designed to be able to turn off and be low power, not some random board from the internet.

You need to consider what else on your board is pulling current, and be able to break the supplies to the F1 itself to quantify what it is using vs the rest of the design. I'm not sure if the Olimex board was designed with that much consideration.
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on May 20, 2013 at 20:09

I do not know

how to reduce

consumption

at the end of

some

uA

?

Start removing extraneous parts drawing current.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
mustapha_menhou
Associate II
Posted on May 20, 2013 at 21:53

thank you

very much for

your answer

, but I

did not understand

I am

newbie

to the field

thank you

explained

to

me

DETAILED

and thank you

Posted on May 20, 2013 at 22:18

explained

to

me

DETAILED

That's getting a bit beyond my level of participation.

You need to be measuring the current of the STM32 at the solder bridges on the board that break the supply feeds to the part.

0690X00000604z2QAA.png

You also want to be sure you're getting the part into STANDBY, and perhaps add code so you can identify that you RESET out of STANDBY successfully on the other side.
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
veeru14389
Associate
Posted on June 26, 2013 at 08:07

Hi clive 

My problem is same as above I am using STM32L microcontroller and I am putting microcontroller in sleep mode then the current consumption is about 1.1mA and when I used it into Stop mode its power consumption is about 300uA .why is the difference is there in stop mode and sleep mode .

Thanks and regards

virender singh

Amel NASRI
ST Employee
Posted on June 26, 2013 at 10:51

why is the difference is there in stop mode and sleep mode .

It is expected to have this difference between sleep and stop modes as in Stop mode all clocks in the VCORE domain are stopped, the PLL, the MSI, the HSI and the HSE RC oscillators are disabled.

Depending on your working conditions, you can compare the values you get with the ones in the datasheet to check if they are logic or not.

You can refer to RM0038 to get tips how to reduce the power consumption.

-Mayla-

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.