This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF52832 DCDC problem

Hi,

I'm trying out the nRF52832 with kit PCA10040 V 0.9.0. I have S132 softdevice installed and running the ble_app_pwr_profiling example from nRF5 SDK v11.0.0.

I'm trying to enable the dcdc to reduce current consumption when transmitting with the radio. When i add the line "sd_power_dcdc_mode_set(1)", the advertising do not work.

Here is the main.c. I only added "sd_power_dcdc_mode_set(1)" on line 676.

Any ideas ?

main.c

EDIT: It works if i remove the call "power_manage();" (line 710). Why ?

EDIT: I have the rev B. I see in the rev B errata document that the DC/DC does not automatically switch off in system ON IDLE. Is there a way to switch it off between advertising events?

EDIT: I have tried replacing the line "power_manage();" by the following code to enable and disable the DC/DC manually when the radio is on or off:

do{
   __WFE();
}while (!NRF_RADIO->POWER);     
NRF_POWER->DCDCEN = 1;          
NRF_TIMER0->TASKS_START = 1;    
NRF_TIMER0->TASKS_STOP = 1;
	
do{
   __WFE();
}while (NRF_RADIO->POWER);      
NRF_TIMER0->TASKS_SHUTDOWN = 1; 
NRF_POWER->DCDCEN = 0;          
(void)sd_power_mode_set((nrf_power_mode_t) 1); 

Unfortunately the advertising will not work with the code above. What could be the problem?

Parents Reply Children
No Data
Related