Dear Sir.
Attached a code .
It takes about 20 seconds from power on until the Blue Led is On.
The timing of the Blue Led is about 2 sec , as in the code.
Commenting all lines beside the io_init(); , a delay of 20 seconds is still on.
Please Advise.
void main(void) { int err; static unsigned int i = 0; // k_work_init(&work_bz, work_bz_func); k_work_init(&work_top, work_top_func); k_work_init(&work_spi, spi_work_func); k_work_init(&work_adp5360, adp5360_work_func); // k_work_init(&work_lis2dw12, lis2dw12_work_func); initStructures(); _AFE4900_AQUIRE_MODE.aquire_mode = afe4900_aquire_sample; // k_timer_init(&bz_timer, bz_func, NULL); // k_timer_start(&bz_timer, K_SECONDS(1), K_MSEC(50)); // k_timer_init(&my_timer, my_expiry_function, NULL); // k_timer_start(&my_timer, K_SECONDS(TIEMR_INTERVAL_SEC), K_SECONDS(TIEMR_INTERVAL_SEC)); io_init(); // pwm_init(); _BZ_SM.bz_state = BZ_silence; init_i2cx_spix(); ADP5360_vbus_sense(); ADP5360_Interrupt_Config(); SetLed(BLUE,ON); k_sleep(K_MSEC(2000)); SetLed(BLUE,OFF); printk("Just before sleep \n"); while(FirstCharge == false) { k_sleep(K_MSEC(100)); } // for (;;) { // k_cpu_idle(); // } FirstCharge = true; printk("Right after sleep \n"); BlipCycles(20);