Hello.
This issue was tested with nRF5 SDK v17.0.2.
There are steps to reproduce :
- sdk_config.h should not be included in nrfx_clock.h. It's a default template by SDK. I use modules\nrfx\templates\nRF52833\nrfx_config.h template.
- call gcc with -M option to see list of included files, or with -E to see preprocessor results.
As a result of this issue, NRF_CLOCK_ENABLED is not defined during compilation of nrf_drv_clock.c. This behaviour is against this Post.
Best regards, Roman