<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Overwriting UICR (NFCPINS) on nRF52833 (BC833M) – how to enable readback protection without losing configuration?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/127817/overwriting-uicr-nfcpins-on-nrf52833-bc833m-how-to-enable-readback-protection-without-losing-configuration</link><description>Hi, 
 I’m working with the Raytac BC833M module (nRF52833) and programming it via nrfjprog in a batch script. 
 I need to: 
 
 Program my application firmware 
 Configure a UICR register (NFCPINS) to disable NFC and enable GPIO usage for I2C 
 Enable</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 16 Apr 2026 22:57:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/127817/overwriting-uicr-nfcpins-on-nrf52833-bc833m-how-to-enable-readback-protection-without-losing-configuration" /><item><title>RE: Overwriting UICR (NFCPINS) on nRF52833 (BC833M) – how to enable readback protection without losing configuration?</title><link>https://devzone.nordicsemi.com/thread/565071?ContentTypeID=1</link><pubDate>Thu, 16 Apr 2026 22:57:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66709817-95fd-49d1-9569-445b29ec0f73</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;You may be observing correct behaviour; once APPROTECT has been set at the noted address it will take effect following the next reset. Once APPROTECT is in force - following that first reset - all UICR registers are unreadable (all FF) and debug is disabled. Forcing the debugger to connect will erase the UICR to clear APPROTECT to allow debugging, which clobbers NFC io setting.&lt;/p&gt;
&lt;p&gt;Bottom line is to test the NFC in the debugger APPROTECT must not be enabled. (unofficial response; hope it helps)&lt;/p&gt;
&lt;p&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Overwriting UICR (NFCPINS) on nRF52833 (BC833M) – how to enable readback protection without losing configuration?</title><link>https://devzone.nordicsemi.com/thread/565070?ContentTypeID=1</link><pubDate>Thu, 16 Apr 2026 20:52:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d15e08d-0e01-47e7-9a0f-bd17ec0a6542</guid><dc:creator>EJViaTech</dc:creator><description>&lt;p class="isSelectedEnd"&gt;&lt;span&gt;I wanted to provide an update on my previous issue regarding configuring UICR and enabling protection on a BC833M (nRF52833).&lt;/span&gt;&lt;/p&gt;
&lt;p class="isSelectedEnd"&gt;&lt;span&gt;I am now generating a separate UICR HEX file and merging it with my application using &lt;/span&gt;&lt;code dir="ltr"&gt;&lt;span&gt;mergehex&lt;/span&gt;&lt;/code&gt;&lt;span&gt;:&lt;/span&gt;&lt;/p&gt;
&lt;pre dir="ltr"&gt;&lt;code dir="ltr"&gt;&lt;span&gt;:020000041000EA
:04120C00FEFFFFFFE3   ; NFCPINS = GPIO
:0412080000000000E2   ; APPROTECT enabled
:00000001FF&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p class="isSelectedEnd"&gt;&lt;span&gt;Merge command:&lt;/span&gt;&lt;/p&gt;
&lt;pre dir="ltr"&gt;&lt;code dir="ltr"&gt;&lt;span&gt;mergehex.exe -m application.hex uicr_config.hex -o combined.hex&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p class="isSelectedEnd"&gt;&lt;span&gt;After programming:&lt;/span&gt;&lt;/p&gt;
&lt;pre dir="ltr"&gt;&lt;code dir="ltr"&gt;&lt;span&gt;nrfjprog.exe -f NRF52 --program combined.hex --verify&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p class="isSelectedEnd"&gt;&lt;span&gt;I then read back the registers:&lt;/span&gt;&lt;/p&gt;
&lt;pre dir="ltr"&gt;&lt;code dir="ltr"&gt;&lt;span&gt;nrfjprog.exe -f NRF52 --memrd 0x1000120C
nrfjprog.exe -f NRF52 --memrd 0x10001208&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p class="isSelectedEnd"&gt;&lt;span&gt;Both return the expected values:&lt;/span&gt;&lt;/p&gt;
&lt;ul data-spread="false"&gt;
&lt;li&gt;&lt;span&gt;NFCPINS = 0xFFFFFFFE&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;APPROTECT = 0x00000000&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;However, when I subsequently connect a debugger, I observe that the NFC pins are no longer configured as GPIO (i.e., behavior suggests NFCPINS has reverted). I assume that the read is reading a non-latched value and once I connect a debugger to confirm the state, I am resetting and the register&amp;nbsp;NFCPINS&amp;nbsp;is as well.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Are there methods to have this written value persist through a reset?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Is there a known interaction between APPROTECT and UICR configuration that could cause this?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>