Hi,
the nrfx driver for the internal temperature sensor has been introduced with SDK 16,0.0, Since I started developing with SDK 15.02, I have used so far the old HAL driver, which works fine.
Now I tried to switch to the new NRFX driver (using non-blocking mode) and ran into problems.
- The first issue was that NRFX_TEMP_ENABLED is needed in sdk_config.h, but this is not included in the template sdk_config.h files to be found in <SDK_ROOT>/config/nrf52840. I added than "#define NRFX_TEMP_ENABLED 1" to my project-specific sdk_config.h, so the link succeeded.
- The second issue is, that nrfx_temp_init() runs into a hard fault on trying to enable the interrupt, nrfx_temp.c, line 82. This happens only if the SoftDevice is included in the build. I can build two different versions of my software, one includes the SoftDevice, and one does not include it (helps with debugging if I don't need Bluetooth).If I build my software without the SoftDevice, the driver seems to work as expected. The fault handler message is "SOFTDEVICE: INVALID MEMORY ACCESS"
Since the NRFX_TEMP_ENABLED is not included in the template sdk_config.h, I am suspicious if thas new driver has ever been tested.
Any ideas?
Regards
Dirk