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

ADC on nRF9160 DK - Example code problems

Hi,

I am trying to get the ADC up and running on the nRF9160 DK. I had a look for example code and the latest I found was here.

https://github.com/Rallare/fw-nrfconnect-nrf/tree/nrf9160_samples/samples/nrf9160/adc/src

Can anyone suggest an alternative?

So, when I run this, I get an error

Secure Boot: MSP_NS 200209b8

Secure Boot: prepare to jump to Non-Secure image

***** BUS FAULT *****

  Precise data bus error

  BFAR Address: 0x4000e104

***** Hardware exception *****

Current thread ID = 0x200200b4

Faulting instruction address = 0x42612

Fatal fault in essential thread! Spinning...

Looking in the code, there is a comment about setting SSADC to non secure .

I tried this in the Konfg file in the secure_boot application

config SB_NRF_SAADC_NS
bool "ADC is Non-Secure"
default y

But,Im not sure if this is correct.

Would appreciate your help.

Regards,

Rod

Related