<?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>BLE BAS Central compiles as a secure application</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/113478/ble-bas-central-compiles-as-a-secure-application</link><description>Hello, 
 I need to integrate the BLE BAS Central sample into a custom application. 
 The provided sample compiles as a secure application, and the `_ns` build configs are not for my chip (nRF52833). 
 I checked the KConfig of the provided build configs</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 30 Jul 2024 12:49:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/113478/ble-bas-central-compiles-as-a-secure-application" /><item><title>RE: BLE BAS Central compiles as a secure application</title><link>https://devzone.nordicsemi.com/thread/496219?ContentTypeID=1</link><pubDate>Tue, 30 Jul 2024 12:49:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc615c05-7b86-4361-9cef-e1cf6d30f991</guid><dc:creator>StefanoN</dc:creator><description>&lt;p&gt;Thanks, the solution was to set &lt;strong&gt;CONFIG_NCS_SAMPLES_DEFAULTS&lt;/strong&gt;=n and &lt;strong&gt;CONFIG_DK_LIBRARY&lt;/strong&gt;=n.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE BAS Central compiles as a secure application</title><link>https://devzone.nordicsemi.com/thread/496079?ContentTypeID=1</link><pubDate>Mon, 29 Jul 2024 18:48:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2dd4716d-93b0-49fa-afc8-da451dbf4d77</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
[quote user="StefanoN"]Recovering the device erases the flash, so I can&amp;#39;t debug the code because its being erased.[/quote]
&lt;p&gt;I mean recovering and then programming to debug. The&amp;nbsp;CONFIG_NRF_APPROTECT_USE_UICR is default enabled in NCS, so it will look up&amp;nbsp;&lt;span&gt;UICR.APPROTECT value.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You could read&amp;nbsp;UICR.&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52833/uicr.html?cp=5_1_0_3_4_0#register.APPROTECT"&gt;APPROTECT&lt;/a&gt;(0x10001208)&amp;nbsp;&amp;nbsp;to check if it&amp;#39;s enabled by nrfjprog --memrd 0x10001208.&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE BAS Central compiles as a secure application</title><link>https://devzone.nordicsemi.com/thread/496076?ContentTypeID=1</link><pubDate>Mon, 29 Jul 2024 18:00:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d65dcde-cf71-4729-8a32-facd184161a4</guid><dc:creator>StefanoN</dc:creator><description>&lt;p&gt;Recovering the device erases the flash, so I can&amp;#39;t debug the code because its being erased.&lt;/p&gt;
&lt;p&gt;Reading &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/security/ap_protect.html#app-approtect"&gt;this&lt;/a&gt; I see that HW access port protection is enabled by &amp;quot;writing Enabled to UICR.APPROTECT and performing a reset&amp;quot;&lt;/p&gt;
&lt;p&gt;I wonder where this is done because I don&amp;#39;t see it in the main.c of the BLE BAS Sample code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE BAS Central compiles as a secure application</title><link>https://devzone.nordicsemi.com/thread/496013?ContentTypeID=1</link><pubDate>Mon, 29 Jul 2024 13:01:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bfab1904-32b9-49a9-bfa2-8d7abc61e531</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;nRF52833 doesn&amp;#39;t have the&amp;nbsp;&lt;span&gt;non-secure area so you can build for nRF52833 without ns.&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
[quote user=""] I can read debugging messages through my J-Link, how can I do so?[/quote]
&lt;p&gt;Run recover (nrfjprog --recover) before programming, it would unlock/unsecure the device.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;br /&gt;Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>