This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to read One Time Programmable (OTP) memory in nRF9160?

Hello Team,

I am facing segmentation fault while reading the OTP memory using pointer in my code. To write the OTP value I have used below command which was successful and also I am able to read OTP section using the read command given below.

$ nrfjprog --memwr 0xFF8108 --val 0xAABBCCDD

$ nrfjprog --memrd 0xFF8108 

But when I try to dereference the address using below code it throws me a segmentation fault. 

Do I need any special permission to read the OTP section? Because, I could not found any article which talks about how to read the OTP memory for nrf9160. 

Kindly, support me to overcome this issue asap.

Thanks in advanced. 

Regards,

Chetan