erasing uicr affect gpios read

hi Nordic

i am working with nrf52832, running with zephyr and ncs1.91

i had to use nrfjprog -- eraseuicr to change serial number on 0x10001080 and after that something strange had happen an ADC read of a certain GPIO suddenly became zero 

any idea what possible configuration may have been deleted 

i also should mension that on the same board if i run an older version of the code which uses the SDK11.0 then it samples this GPIO just fine and when flashing the new Ncs application before erasing the uicr the GPIO ADC read is fine as well

the GPIOs in hand are (from dts):

enable_gpios = <&gpio0 9 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>;
adc_read_gpios = <&gpio0 30 (GPIO_OPEN_SOURCE)>;

also for some reason when i try to read uicr to see what values has changed, i come to this erroe:

canary-ep git:(release) nrfjprog --readuicr ~/workspace/uicr    
Reading UICR.
Storing data in '/home/zhershkovitch/workspace/uicr'.
 was not recognized as supported.
ERROR: Command executed requires write permission in the current directory.
➜  canary-ep git:(release) sudo nrfjprog --readuicr ~/workspace/uicr.txt
[sudo] password for zhershkovitch: 
Reading UICR.
Storing data in '/home/zhershkovitch/workspace/uicr.txt'.
.txt was not recognized as supported.
ERROR: Command executed requires write permission in the current directory.

any ideas why is that and how can i read the whole uicr ( and not just few bytes at a time with 'nrfjprog --memrd 0x10001080 --w 32 --n 32' )

hope to read from you soon 

best regards

Ziv

Related