<?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>Does bootloader use Customer UICR registers?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23058/does-bootloader-use-customer-uicr-registers</link><description>I want to use the UICR customer registers to store MAC/serialization information for my devices. It looks like the UICR customer section would be great, and the product spec says they are reserved for user application, but @jldewitt mentioned here that</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 27 Jun 2017 21:34:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23058/does-bootloader-use-customer-uicr-registers" /><item><title>RE: Does bootloader use Customer UICR registers?</title><link>https://devzone.nordicsemi.com/thread/90753?ContentTypeID=1</link><pubDate>Tue, 27 Jun 2017 21:34:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9522de5c-fcf2-4534-9796-2aec0acebb18</guid><dc:creator>Collin</dc:creator><description>&lt;p&gt;Thanks. Which SDKs is that valid for? See @jldewitt&amp;#39;s reply above. I am most interested in SDK12 and 13.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does bootloader use Customer UICR registers?</title><link>https://devzone.nordicsemi.com/thread/90752?ContentTypeID=1</link><pubDate>Tue, 27 Jun 2017 21:33:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76a99922-96e7-4c08-b3b1-b272c6981d07</guid><dc:creator>Collin</dc:creator><description>&lt;p&gt;Thanks for the info! I just switched from 12.1.0 to 13.0.0, and I  couldn&amp;#39;t find the file dfu_init.h in either folder. I also searched for the text UICR_CUSTOMER_DEVICE_INFO_OFFSET, UICR_CUSTOMER_RESERVED_OFFSET, and DFU_DEVICE_INFO_BASE in all  SDK files, and didn&amp;#39;t get a match. That seems to imply that the customer UICR are no longer used by Nordic code, which would line up with @hungbui&amp;#39;s response.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does bootloader use Customer UICR registers?</title><link>https://devzone.nordicsemi.com/thread/90751?ContentTypeID=1</link><pubDate>Tue, 27 Jun 2017 18:54:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5dda8a73-8640-4184-912d-ea05fea27e08</guid><dc:creator>John</dc:creator><description>&lt;p&gt;Hi Collin &amp;amp; Hung,&lt;/p&gt;
&lt;p&gt;The comment I made in the linked question above was based on some declarations in dfu_init.h in SDK 10.0.0. I haven&amp;#39;t checked to see if this is still in SDK12.1.0 which is what I am currently using.&lt;/p&gt;
&lt;p&gt;Code snippet:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;    /** The device info offset can be modified to place the device info settings at a different location.
  * If the customer reserved UICR location is used for other application specific data, the offset
  * must be updated to avoid collision with that data.
  */
/** [DFU UICR DEV offset] */
#define UICR_CUSTOMER_DEVICE_INFO_OFFSET    0x0                                             /**&amp;lt; Device info offset inside the customer UICR reserved area. Customers may change this value to place the device information in a user-preferred location. */
/** [DFU UICR DEV offset] */

#define UICR_CUSTOMER_RESERVED_OFFSET       0x80                                            /**&amp;lt; Customer reserved area in the UICR. The area from UICR + 0x80 is reserved for customer usage. */
#define DFU_DEVICE_INFO_BASE                (NRF_UICR_BASE + \
                                             UICR_CUSTOMER_RESERVED_OFFSET + \
                                             UICR_CUSTOMER_DEVICE_INFO_OFFSET)              /**&amp;lt; The device information base address inside of UICR. */
#define DFU_DEVICE_INFO                     ((dfu_device_info_t *)DFU_DEVICE_INFO_BASE)     /**&amp;lt; The memory mapped structure for device information data. */

#define DFU_DEVICE_TYPE_EMPTY               ((uint16_t)0xFFFF)                              /**&amp;lt; Mask indicating no device type is present in UICR. 0xFFFF is default flash pattern when not written with data. */
#define DFU_DEVICE_REVISION_EMPTY           ((uint16_t)0xFFFF)                              /**&amp;lt; Mask indicating no device revision is present in UICR. 0xFFFF is default flash pattern when not written with data. */
#define DFU_SOFTDEVICE_ANY                  ((uint16_t)0xFFFE)                              /**&amp;lt; Mask indicating that any SoftDevice is allowed for updating this application. Allows for easy development. Not to be used in production images. */
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Regards,
John&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does bootloader use Customer UICR registers?</title><link>https://devzone.nordicsemi.com/thread/90754?ContentTypeID=1</link><pubDate>Tue, 27 Jun 2017 09:07:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca102dec-531c-4e47-a5f4-a18aad29ff24</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Collin,&lt;/p&gt;
&lt;p&gt;If you have a look at chapter 14 in the nRF52 product spec, you can find that the first 128 bytes of the UICR are reserved for Nordic&amp;#39;s use. You can use the rest of the space of those CUSTOMER[] register.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>