cancel
Showing results for 
Search instead for 
Did you mean: 

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

AKuma.2074
Associate III

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Winfred LU
ST Employee

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.

View solution in original post

1 REPLY 1
Winfred LU
ST Employee

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.