<?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>initializer element is not constant in expansion of macro &amp;#39;NRF_UICR&amp;#39;</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/76378/initializer-element-is-not-constant-in-expansion-of-macro-nrf_uicr</link><description>hello Nordic 
 
 i am working with nrf52840 sdk16.0 s140 
 i wish to read the UICR register value like this : 
 
 
 but i get this compilation error 
 
 since it is a define in the nrf52840.h file it is not a variable that i can initiate, even more i</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 16 Jun 2021 11:33:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/76378/initializer-element-is-not-constant-in-expansion-of-macro-nrf_uicr" /><item><title>RE: initializer element is not constant in expansion of macro 'NRF_UICR'</title><link>https://devzone.nordicsemi.com/thread/315581?ContentTypeID=1</link><pubDate>Wed, 16 Jun 2021 11:33:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0cdd452-531e-41a1-93c4-440f953e60d1</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]i wish to read the UICR register value like this :[/quote]
&lt;p&gt;&amp;nbsp;This should work fine.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;quot;5&amp;gt; D:\Ziv\projects\Audio_sticker_FW\src\ble_audio_sticker.c:82:26: note: in expansion of macro &amp;#39;NRF_UICR&amp;#39;&amp;quot;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Have you defined &amp;quot;&lt;span&gt;NRF_UICR&amp;quot; as something else here?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Can you post the code from &amp;quot;ble_audio_sticker.c:82:26&amp;quot; ?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>