This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
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

nRF21540 UICR programming

Hi,

I want to automatically load the value of POUTA_UICR into TX_GAIN at startup. The program code writes the setting value according to the steps on page 14 of the manual. It has been confirmed that the UICR Program state has been entered, and the VDD voltage value is 3.5V, but the values read by CONFREG2 and CONFREG3 are both 0. Can someone help me?

Best regards,

Stanley

Parents
  • Can you try to read those values in your application code? It seems that the segger might be having some read/display issues accessing these registers.

    If it is the same issue that you read 0 after write in your application, then i can try to replicate the problem.

  • I have solved this problem, but there are still some things I don't understand. I can use the example in \examples\peripheral\spi of SDK17 to read and write CONFREG0 and CONFIGREG1, but I cannot read and write CONFREG2 and CONFREG3. When the spi_event_handler is cancelled, everything is fine. Do you know the reason?

  • CONFREG2 and CONFREG3 are a bit special, they are one time write and I am not very clear on the limitations on read.

    Have you performed any writes to CONFREG2 and CONFREG3 and verifying your writes? 

    Can you please upload your project for me to reproduce this, I have not tried writing to these registers and it would help to get your project instead of me trying to make it from scratch

  • Was there ever a resolution for this? I'm seeing the same behaviour described above. Would it be possible to provide some pseudo code showing the steps needed to set the UICR registers?

Reply Children
Related