cancel
Showing results for 
Search instead for 
Did you mean: 

Current consumption in stop mode using B-L072Z-LRWAN1

Remco Groenendaal
Associate II
Posted on May 03, 2017 at 11:42

Does anyone have any experience with the current consumption when using B-L072Z-LRWAN1 (STM32L072 and LoRa board) with i-cube-lrwan 110?

I can't get the current consumption below below 1.1mA no matter what i try. In lowpower (stop) mode all pins are set as analog, clocks are disabled, debug is off.

- I checked the device going into STOP mode

- Configured all non-connected pins to GPIO_MODE_ANALOG, GPIO_NOPULL

- Configured connected pins (UART, etc.) to GPIO_MODE_OUTPUT_PP, GPIO_NOPULL, and set to zero

I also stopped the debug clock in the ARM:

  __HAL_RCC_DBGMCU_CLK_ENABLE( );

  HAL_DBGMCU_DisableDBGSleepMode( );

  HAL_DBGMCU_DisableDBGStopMode( );

  HAL_DBGMCU_DisableDBGStandbyMode( );

Also TCXO is Off.

Still the current consumption is above 1 mA.

Anyone out there that managed to get the current down?

Thanks!

#lora #b-l072z-lrwan1
1 ACCEPTED SOLUTION

Accepted Solutions
Posted on May 22, 2017 at 10:10

I solved my problem in changing the delay: &sharpdefine TCXO_OFF_DELAY 2. Thanks!

View solution in original post

24 REPLIES 24
maxence forget
Associate II
Posted on May 17, 2017 at 15:51

Hi,

I'm very interesting by the LoRa consumption using B-L072Z, I have the same problem.

I mesured the RF consumption of my LoRa module after adding the jumpers (

http://www.st.com/content/ccc/resource/technical/document/user_manual/group0/ac/62/15/c7/60/ac/4e/9c/DM00329995/files/DM00329995.pdf/jcr:content/translations/en.DM00329995.pdf

)

My measure of Tx (38mA) and Rx (11mA) are ok, but in sleep mode my consumption is too big.

For the RF consumption in sleepmode, I find 1,1mA. My mesure of Tx and Rx are good, but in sleepmode my consumption is too big.

Thanks in advance for any help.

Max
Krzysztof Pranga
Associate II
Posted on May 18, 2017 at 10:06

Have the same problem.

I'm using my custom board and the LoRa module same as in B-L072Z.. My current consumption during stop mode is 1.16mA.

So this is not a B-L072Z hardware problem. I suspect there is some bug in the code (I-CUBE-LRWAN) or hardware problem with LoRa murata module.

Amel NASRI
ST Employee
Posted on May 18, 2017 at 18:20

Hello All,

Referring to

http://www.st.com/content/ccc/resource/technical/document/user_manual/group0/31/96/2f/3b/df/c1/40/2e/DM00300436/files/DM00300436.pdf/jcr:content/translations/en.DM00300436.pdf

, required setup for power consumption measurement is to have:
  • No DEBUG
  • No TRACE
  • No SENSOR_ENABLED

Updates have to be made in hw_conf.h.

Is it the case for you?

-Amel

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.

Posted on May 18, 2017 at 17:40

LEDs Off? Other things off the GPIO, USART, etc.

>>

I suspect there is some bug in the code (I-CUBE-LRWAN)

Definately several of those...

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 19, 2017 at 09:11

Hi,

I updated my code to deactivate DEBUG, TRACE and SENSOR ENABLED but I have always 1,16mA in sleep mode.

Posted on May 19, 2017 at 09:39

I have only LoRa module, SWD connector, 1 LED (controlled through GPIO) and vdd capacitor on test PCB.

Of course I made a test with disabling: sensors, debug, trace. I have tested the code in configuration with no HW activation, no LoRa initialization and going to

HAL_PWR_EnterSLEEPMode(PWR_MAINREGULATOR_ON, PWR_SLEEPENTRY_WFI);

just after start of the program and still have got 1.16mA

Amel NASRI
ST Employee
Posted on May 19, 2017 at 13:05

Hello,

It seems that TCXO is always enabled in you configuration. Please check JP9 setting: it should be in position 1-2 to have TCXO controlled by PA12.

JP3 is the one that allows you to measure IDD_MCU.

I suggest you to refer to

http://www.st.com/content/ccc/resource/technical/document/user_manual/group0/ac/62/15/c7/60/ac/4e/9c/DM00329995/files/DM00329995.pdf/jcr:content/translations/en.DM00329995.pdf

for more details.

Please confirm if this helps you to reach the expected consumption.

-Amel

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.

Posted on May 19, 2017 at 14:13

With this configuration, the consumption in sleepmode seems to be ok but I can't join my gateway whereas with the JP9 in positon 2-3 I can, there is some modification that I should made?

Thanks in advance

Posted on May 19, 2017 at 15:32

I made some screen about my terminal windows in debug and trace with the same code but the JP9 in a different postion:

  • JP9 in position 2-3:
0690X0000060741QAA.png
  • JP9 in position 1-2: (impossible to join the gateway)
0690X000006073aQAA.png