<?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>Issue after enabling Flash Read Protection</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/92013/issue-after-enabling-flash-read-protection</link><description>Hello, 
 I have my BLE Gatt Peripheral application working and running. 
 I am developing a reader that reads BLE credential. 
 Application is complete. I flash the .hex file and reads the BLE credential from mobile app without power cycling. 
 I then</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 26 Sep 2022 09:00:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/92013/issue-after-enabling-flash-read-protection" /><item><title>RE: Issue after enabling Flash Read Protection</title><link>https://devzone.nordicsemi.com/thread/387844?ContentTypeID=1</link><pubDate>Mon, 26 Sep 2022 09:00:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80f78396-c696-411b-8f67-e9803f56cf52</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="Deep Patel"]&lt;span&gt;when i read after the &amp;quot;warm reset&amp;quot; and see if the program asserts?&amp;nbsp;&lt;/span&gt;&lt;span&gt;Yes, i cannot read log on RTT since APPLOCK is enabled.&lt;/span&gt;[/quote]
&lt;p&gt;I see..&lt;/p&gt;
[quote user="Deep Patel"]&lt;p&gt;&lt;span&gt;I have NRF52840 DK as well as Dongle to work with and android app for nRF Sniffer.&amp;nbsp;&lt;/span&gt;&lt;span&gt;Can you share me online video tutorial / document that explains how do i use nRF Sniffer to capture BLE logs OTA ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Can i use same phone (android) to run NRF SNIFFER APP on which my other BLE credential is being used to read ? &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;or can i use nRF Sniffer app on windows PC while using DK / Dongle to capture ?&lt;/span&gt;&lt;/p&gt;[/quote]
&lt;p&gt;You have to use a separate DK or Dongle to sniff packets between two devices. You can not use a device that is already a part of the communication that is going to be sniffed. We have &lt;a href="https://www.youtube.com/watch?v=Sccst1loWbU&amp;amp;ab_channel=NordicSemiconductor"&gt;this &lt;/a&gt;outdated video that gives you a brief overview of the sniffer, but you should really look at the documentation that explains how to run the sniffer. You can find the documentation &lt;a href="https://infocenter.nordicsemi.com/topic/ug_sniffer_ble/UG/sniffer_ble/installing_sniffer.html?cp=10_5_2"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue after enabling Flash Read Protection</title><link>https://devzone.nordicsemi.com/thread/387358?ContentTypeID=1</link><pubDate>Wed, 21 Sep 2022 17:52:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58b5ccce-c225-497b-b6d2-0226986f2e84</guid><dc:creator>Deep Patel</dc:creator><description>&lt;p&gt;&lt;span&gt;when i read after the &amp;quot;warm reset&amp;quot; and see if the program asserts?&amp;nbsp;&lt;/span&gt;&lt;span&gt;Yes, i cannot read log on RTT since APPLOCK is enabled.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I have NRF52840 DK as well as Dongle to work with and android app for nRF Sniffer.&amp;nbsp;&lt;/span&gt;&lt;span&gt;Can you share me online video tutorial / document that explains how do i use nRF Sniffer to capture BLE logs OTA ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Can i use same phone (android) to run NRF SNIFFER APP on which my other BLE credential is being used to read ? &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;or can i use nRF Sniffer app on windows PC while using DK / Dongle to capture ?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue after enabling Flash Read Protection</title><link>https://devzone.nordicsemi.com/thread/387314?ContentTypeID=1</link><pubDate>Wed, 21 Sep 2022 13:33:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d219617-794e-4e9f-b0fe-a23897cca357</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes, most likely this is not related to readback protection. I suspect that it&amp;#39;s somewhat related to your code snippet that you shared above.&amp;nbsp;&lt;/p&gt;
[quote user=""]Once i flash this application, i verified Readback is protected (since i added WARM_RESET after enabling APPROTECT), but my BLE credential doesn&amp;#39;t read (although reader sees advertisement).[/quote]
&lt;p&gt;Can you try to debug your application when you read after the &amp;quot;warm_reset&amp;quot; and see if the program asserts? Do you have any logging on the mobile application or the nRF that would tell something about the state of the program when you try to read the BLE characteristic? Could you capture and share a trace with&amp;nbsp;&lt;a href="https://www.nordicsemi.com/Products/Development-tools/nrf-sniffer-for-bluetooth-le"&gt;nRF Sniffer&lt;/a&gt;?&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue after enabling Flash Read Protection</title><link>https://devzone.nordicsemi.com/thread/386953?ContentTypeID=1</link><pubDate>Mon, 19 Sep 2022 17:41:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2bcfb0ae-a9db-4606-8fc8-739ea7ea9b78</guid><dc:creator>Deep Patel</dc:creator><description>&lt;p&gt;&lt;span&gt;nrfjprog --rbp ALL works fine as well to protect read back.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;After several testing it seems like this issue is not related to ENABLING FLASH protection.&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;There seems like a bug in VScode nRF Connect extension for FLASH action&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; -&amp;gt; If the fw is flashed using VScode extension, the application runs but the Mobile BLE credential doesn&amp;#39;t read, unless reader is power cycled.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; -&amp;gt; If the fw is flashed using Programmer application {inside nRF Connect SDK (Windows Desktop Application)}, the Mobile BLE credential reads right away without needing to power cycle*/&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;You did said:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; Flashing a board from the nRF Connect SDK VScode extension versus flashing it from nRF Connect Programmer app does indeed behave differently. The former will do a pin reset while the latter will do a soft reset.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Does that makes a difference in performing what application needs to do ?&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Does pin reset halt the application and softreset doesnt ? &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;If yes, how can i run the application after i perform FLASH from VScode extension.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue after enabling Flash Read Protection</title><link>https://devzone.nordicsemi.com/thread/386929?ContentTypeID=1</link><pubDate>Mon, 19 Sep 2022 14:12:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4e0c4af-4658-4cc6-bd90-c67c6b53f2a3</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m a bit unsure how this is related to readback protection. Enabling readback protection by setting&amp;nbsp;&lt;span&gt;ENABLE_APPROTECT will not prevent the application to read from the internal flash. It will however prevent external devices to read internal data because the readback protection disables the debugger interface.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Flashing a board from the nRF Connect SDK VScode extension versus flashing it from nRF Connect Programmer app does indeed behave differently. The former will do a pin reset while the latter will do a soft reset.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The code snippet you&amp;#39;ve shared for enabling app protect isn&amp;#39;t&amp;nbsp;necessary, there is already a kconfig that can be set in the project kconfig that enables app protect, it&amp;#39;s called &amp;quot;&lt;/span&gt;NRF_APPROTECT_LOCK&amp;quot;. Have you already enabled this in your project, can you double check your build folder and see if it&amp;#39;s enabled?&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure if this is related directly to readback protection, however your code snippet might be causing the issue here.&lt;/p&gt;
&lt;p&gt;Can you&lt;span&gt;:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Disable&amp;nbsp;NRF_APPROTECT_LOCK&amp;nbsp;if it has already been enabled&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Remove the code snippet that you have added that enables readback protection&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Enable readback protection trough nRF Command Line Tools by using&amp;nbsp;&amp;quot;nrfjprog --rbp ALL&amp;quot;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span&gt;The last step should enable readback protection on your device. Can you see if you&amp;#39;re able to reproduce your problem with vs code when you&amp;#39;re using this method instead of enabling it with your code from the application.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Jared&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue after enabling Flash Read Protection</title><link>https://devzone.nordicsemi.com/thread/386707?ContentTypeID=1</link><pubDate>Fri, 16 Sep 2022 15:40:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:741c8c8b-2090-45e8-9380-a7412e6b4f06</guid><dc:creator>Deep Patel</dc:creator><description>&lt;p&gt;Jared,&lt;/p&gt;
&lt;p&gt;I am using nRF Connect SDK v2.0.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1663342846611v6.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;This is the Visual Studio Code version&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1663342382711v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This is the version of nRF Connect for VS&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1663342544954v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This is the J-Link version&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1663342804106v5.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If i program the Application FW using VScode extension FLASH operation, the BLE credential doesnt work (application is running: UART etc)&lt;/p&gt;
&lt;p&gt;I have to power cycle the HW and then everything works.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1663342629799v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;But if i flash the same Application FW using Programmer Desktop Application, everything works (without performing power cycle)&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1663342699525v4.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue after enabling Flash Read Protection</title><link>https://devzone.nordicsemi.com/thread/386603?ContentTypeID=1</link><pubDate>Fri, 16 Sep 2022 11:13:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3dd1c79-9859-4434-b021-eb9bb830bcbf</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;What SDK are you using? nRF Connect SDK or nRF5SDK, what version are you using?&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue after enabling Flash Read Protection</title><link>https://devzone.nordicsemi.com/thread/386470?ContentTypeID=1</link><pubDate>Thu, 15 Sep 2022 22:34:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2f25361-f813-4c13-ad3d-da2678d907c6</guid><dc:creator>Deep Patel</dc:creator><description>&lt;div&gt;
&lt;div&gt;&lt;span&gt;There seems like a bug in VScode nRF Connect extension.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;The Release Build FW has ReadBack Protection enabled.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;-&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;If release build fw is flashed using VScode extension, BLE credential doesn&amp;#39;t read, unless reader is power cycled.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;-&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;If release build fw is flashed using Programmer application {inside nRF Connect SDK (Windows Desktop Application)}, reads without needing to power cycle &lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue after enabling Flash Read Protection</title><link>https://devzone.nordicsemi.com/thread/386466?ContentTypeID=1</link><pubDate>Thu, 15 Sep 2022 21:57:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:787b6e02-aef5-4bd3-a795-767b64d8ff2e</guid><dc:creator>Deep Patel</dc:creator><description>&lt;p&gt;The code i added is the Readback Protection i added first thing in the main(). I am using Rev2 (build code Dx00) NRF52840 SOC.&lt;/p&gt;
&lt;p&gt;Is this code ok ? Not sure something is messing up with BLE stack / code unless i power cycle.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>