2019-05-15 07:20 AM
Hi All!
I have a next question for low power mode.
When i have using low power mode - SLEEPMODE_WAKETIMER - GPIO has generate some impulse for fix T-period. This reason in of operation low power mode?
GPIO_SetBits(GPIO_Pin_6);
HAL_VTimerStart_ms(0,2000);
while(1) {
/* Disable UART IRQ to avoid calling BLE stack functions while BTLE_StackTick() is running. */
NVIC_DisableIRQ(UART_IRQn);
/* BlueNRG-1 stack tick */
BTLE_StackTick();
NVIC_EnableIRQ(UART_IRQn);
/* Application tick */
APP_Tick();
STATE_CMD();
{
/* Power Save management */
BlueNRG_Sleep(SLEEPMODE_WAKETIMER,0,0);
if (ret != BLE_STATUS_SUCCESS) {
printf("BlueNRG_Sleep() error 0x%02x\r\n", ret);
while(1);
}else
{
PRINTF("BlueNRG_Sleep() OK 0x%02x\r\n", ret);
}
}
}
GPIO6 - must be in HIGH level.
2019-05-15 11:57 PM
Hi zovkorall,
What would be the period?
The answer shall be yes, since the clock are not powered in Sleep mode.
For GPIO special settings in low power modes, please choose from GPIO9, 10, and 11.
The GPIO9, GPIO10 and GPIO11 can be configured as output GPIO during sleep and standby mode. In addition, they can have enabled their internal pull. Their configuration is done in specific registers:
Best Regards,
Winfred
2019-05-19 05:12 AM
Hi Winfred LU!
|What would be the period?
T = 100ms(+-)
The only correct solution would be to use another GPIO (9,10,11) ?
Best Regards,
zovkorall