<?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>nRF52811 with AP-Protect in nRF5 SDK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/83860/nrf52811-with-ap-protect-in-nrf5-sdk</link><description>For an upcoming product based on the nRF52811 chipset I wanted to prepare for the arrival of the new AP-Protect variant of that chipset and have a unified firmware that runs on both AP-Protect and non-AP-Protect variants ready. 
 Recently nRF5 SDK 17</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 27 Jan 2022 15:40:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/83860/nrf52811-with-ap-protect-in-nrf5-sdk" /><item><title>RE: nRF52811 with AP-Protect in nRF5 SDK</title><link>https://devzone.nordicsemi.com/thread/350034?ContentTypeID=1</link><pubDate>Thu, 27 Jan 2022 15:40:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c8f40c9-fa9f-4ef4-aa93-4f1b58f5f807</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Those registers are regular UICR registers that are reserved for use by the MDK, similar to how the NRFFW registers are reserved for Nordic firmware. The details of their usage are not publicly documented.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52811 with AP-Protect in nRF5 SDK</title><link>https://devzone.nordicsemi.com/thread/349887?ContentTypeID=1</link><pubDate>Thu, 27 Jan 2022 08:51:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33ffc8f4-ed19-42d6-8456-396d80b50fd8</guid><dc:creator>Michael Hunold</dc:creator><description>[quote userid="8164" url="~/f/nordic-q-a/83860/nrf52811-with-ap-protect-in-nrf5-sdk/348867#348867"]I am not aware of any current plans of new nRF5 SDK release, but you can upgrade the latest version manually to use a newer MDK[/quote]
&lt;p&gt;Thank you for your feedback. I am currently in the process of evaluating the changes that are introduced by the new MDK.&lt;/p&gt;
&lt;p&gt;I noticed that new registers called &lt;code&gt;NRFMDK&lt;/code&gt; have been added in modules/nrfx/mdk/nrf52811.h which are described as &lt;code&gt;Reserved for Nordic MDK&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Their only usage is as part of SystemInit() for devices that are affected by configuration 249 (ie. AP-PROTECT variants) and when these registers have their uninitialized value of 0xffffffff.&lt;code&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;void SystemInit(void)
{
[...]
        if (nrf52_configuration_249() &amp;amp;&amp;amp; (NRF_UICR-&amp;gt;NRFMDK[0] == 0xFFFFFFFF || NRF_UICR-&amp;gt;NRFMDK[1] == 0xFFFFFFFF))
        {
            nvmc_config(NVMC_CONFIG_WEN_Wen);
            NRF_UICR-&amp;gt;NRFMDK[0] = 0;
            nvmc_wait();
            NRF_UICR-&amp;gt;NRFMDK[1] = 0;
            nvmc_wait();
            nvmc_config(NVMC_CONFIG_WEN_Ren);
        }
[...]
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Because these registers are not used anywhere else, this is like some magic hardware switch that is toggled here.&lt;/p&gt;
&lt;p&gt;Can you please comment what this is supposed to achieve?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52811 with AP-Protect in nRF5 SDK</title><link>https://devzone.nordicsemi.com/thread/348867?ContentTypeID=1</link><pubDate>Fri, 21 Jan 2022 09:38:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2a57338-9c31-49c6-8228-503c086ba4eb</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am not aware of any current plans of new nRF5 SDK release, but you can upgrade the latest version manually to use a newer MDK.&lt;/p&gt;
&lt;p&gt;For SES projects:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Find the SES version of the MDK in the dropdown menu on &lt;a href="https://www.nordicsemi.com/Products/Development-tools/nRF-MDK/Download#infotabs"&gt;https://www.nordicsemi.com/Products/Development-tools/nRF-MDK/Download#infotabs&lt;/a&gt; and run the emPackage file. This will install the MDK files on the system. The SDK and existing projects&lt;/li&gt;
&lt;li&gt;Find the location of the installed files. This depends on OS:
&lt;ol&gt;
&lt;li&gt;For Windows: %APPDATA%\..\Local\SEGGER\SEGGER Embedded Studio\v3\packages\nRF&lt;/li&gt;
&lt;li&gt;For Mac: ~/Library/SEGGER/SEGGER Embedded Studio/v3/packages/nRF&lt;/li&gt;
&lt;li&gt;For Linux: ~/.segger/SEGGER/SEGGER Embedded Studio/v3/packages/nRF&lt;/li&gt;
&lt;li&gt;If you do not find it in among the above locations, search for a file named nRF_package.xml. It should be in a folder named &amp;quot;packages&amp;quot; on the same level as the &amp;quot;nRF&amp;quot; folder.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;The example projects delivered with the SDK are hard coded to use the MDK files that are delivered as part of the SDK. For upgrading the full SDK to use the new MDK files, you therefore need to copy the files from the newly installed MDK, into the corresponding SDK folders. Here&amp;#39;s what&amp;#39;s where:
&lt;ol&gt;
&lt;li&gt;For nRF5 SDK 15.0.0 and newer, the MDK files are to be placed direcly in &amp;lt;sdk root folder&amp;gt;\modules\nrfx\mdk&lt;/li&gt;
&lt;li&gt;For nRF5 SDK 14.2.0 and older, copy files to the following folders:
&lt;ol&gt;
&lt;li&gt;&amp;lt;sdk root folder&amp;gt;\components\device:&lt;br /&gt;various *.h files, found at &amp;lt;mdk-install&amp;gt;\nRF\Device\Include&lt;/li&gt;
&lt;li&gt;&amp;lt;sdk root folder&amp;gt;\components\toolchain:&lt;br /&gt;system_nrf*.c files, found at &amp;lt;mdk-install&amp;gt;\nRF\Device\Source&lt;br /&gt;system_nrf*h files, found at &amp;lt;mdk-install&amp;gt;\nRF\Device\Include&lt;/li&gt;
&lt;li&gt;&amp;lt;sdk root folder&amp;gt;\svd:&lt;br /&gt;*.svd files, found at &amp;lt;mdk-install&amp;gt;\nRF\Device\Registers&lt;/li&gt;
&lt;li&gt;You may need some additional SES specific files that were not present in nRF5 SDK prior to version 15.0.0 since SES was not supported by the SDK back then. Since this means you must have set up or ported a project to SES previously, I assume that you know what to do (if anything) with the relevant files from the MDK install directory.&lt;/li&gt;
&lt;li&gt;Furthermore, depending on nRF5 SDK version, there may be updates needed for include paths and c files included in the project, for all MDK related files to be included in the build.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>