Skip to main content
AKuma.2074
Associate II
December 4, 2019
Solved

red led of BlueNRG2 keeps glowing after system goes to sleep.

  • December 4, 2019
  • 1 reply
  • 604 views

I am using BlueNRG2 for a project, and using jtag segger as burner/debugger.

The application is simple, i have activated all 3 leds and using the microcontroller with sleep mode.

but when my system wakes, the red keeps glowing. The code is:

BTLE_StackTick();

BlueNRG_Sleep(SLEEPMODE_NOTIMER, wakeup_source, wakeup_level);

GPIO_WriteBit(GPIO_Pin_6 | GPIO_Pin_7 | GPIO_Pin_14, Bit_SET);

Clock_Wait(1000);

GPIO_WriteBit(GPIO_Pin_6 | GPIO_Pin_7 | GPIO_Pin_14, Bit_RESET);

Like i said, the red led does not goes off even when system is in sleep mode.

This topic has been closed for replies.
Best answer by Winfred LU

Only GPIO9, GPIO10, and GPIO11 can be configured to be used as output pin during the low power modes.

During BlueNRG-2 is in sleep mode, DIO7 is still possibly driven by STM32L151, PB14.

1 reply

Winfred LU
Winfred LUBest answer
ST Employee
December 5, 2019

Only GPIO9, GPIO10, and GPIO11 can be configured to be used as output pin during the low power modes.

During BlueNRG-2 is in sleep mode, DIO7 is still possibly driven by STM32L151, PB14.