HI,
I am using "NRF_POWER->TASKS_CONSTLAT = 1;" to enable CONSTLAT, but when i printf("TASKS_CONSTLAT %d",NRF_POWER->CONSTLATSTAT); the result is still 0; how can i config it? thanks
HI,
Do you use BLE or MPSL? In that case I guess you need to use this function https://github.com/NordicSemiconductor/nrfx/blob/32f47b3f6cadb175266e3a9c5faf4a730ad76ac0/drivers/include/nrfx_power.h#L361 because MPSL will also switch to/from constant latency during radio events. Note that I haven't tested if it works myself nor checked which Kconfig settings must be applied.
Do you use BLE or MPSL? In that case I guess you need to use this function https://github.com/NordicSemiconductor/nrfx/blob/32f47b3f6cadb175266e3a9c5faf4a730ad76ac0/drivers/include/nrfx_power.h#L361 because MPSL will also switch to/from constant latency during radio events. Note that I haven't tested if it works myself nor checked which Kconfig settings must be applied.