cancel
Showing results for 
Search instead for 
Did you mean: 

BLUENRG-2 constantly wakes up, settings when IO11 is low.

PSane
Associate

I have an application where I wake-up the BLUENRG-2 source from IO11 is low. but its not work. as a debug I config UART On Tx IO4 & Rx IO 5. for wake up and sleep I print sleep and wakeup. its continues print wake and sleep. when I set IO11 to GND, or IO11 set to VDD, IO11 has Pullup register. in both VDD and GND connect with IO11 its continues sleep and wake.

wakeup_source = WAKEUP_IO11;
 
wakeup_level = (WAKEUP_IOx_LOW << WAKEUP_IO11_SHIFT_MASK);
 printf("Sleep \r\n");
BlueNRG_Sleep(SLEEPMODE_NOTIMER, wakeup_source, wakeup_level);

In above code is there any functionality issue with this or what else I need to know what is the problem with IO11.

Thanks

1 REPLY 1
Sebastien DENOUAL
ST Employee

Hi @PSane​ ,

You code looks correct. It will enter Sleep mode ONLY if IO7 is high and it will wake up if IO11 is low.

Now, it may wake up because of other wakeup source like BLE activities. Indeed, if in you application you configured BLE stack to advertise every 100ms.. device will wake up every 100ms...

I would advise to look into below SDK code example :

...\BlueNRG-1_2 DK 3.2.2\Project\BlueNRG1_Periph_Examples\Micro\Sleep_Test

Also, you may check this Application Note : AN4820 BlueNRg-1/-2 low power mode

Regards,

Sebastien.