<?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>Nrf52 dongle programming using nrf52dk</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/102851/nrf52-dongle-programming-using-nrf52dk</link><description>Testing nrf52 dongle programming using nrf52dk with blinky example. If I compile code and flash the dongle using boot loader nrf52 dongle it works and blinks led correctly, but if I tried to flash it with nrf52 dk after erasing chip it programs and does</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 16 Aug 2023 14:01:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/102851/nrf52-dongle-programming-using-nrf52dk" /><item><title>RE: Nrf52 dongle programming using nrf52dk</title><link>https://devzone.nordicsemi.com/thread/441661?ContentTypeID=1</link><pubDate>Wed, 16 Aug 2023 14:01:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1f36afb-068e-4018-84c7-9f6c77732229</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hello Haj,&lt;/p&gt;
&lt;p&gt;Yes, you nailed it. The dongle comes preloaded with an nRF5 SDK bootloader so that one could&amp;#39;ve flashed it using a DFU. Along with it comes the MBR, which is what you are struggling with being removed. Normally when you build something for the dongle, it takes into account that the MBR is there, and moves the application over. &lt;/p&gt;
&lt;p&gt;You could make a custom board for a version of the dongle which does not have the MBR, or simply by adding the configurations &lt;span&gt;&lt;span dir="ltr"&gt;CONFIG_FLASH_LOAD_OFFSET&lt;/span&gt;&lt;/span&gt;=0 or &lt;span&gt;&lt;span dir="ltr"&gt;CONFIG_BOARD_HAS_NRF5_BOOTLOADER=n&lt;/span&gt;&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf52 dongle programming using nrf52dk</title><link>https://devzone.nordicsemi.com/thread/441472?ContentTypeID=1</link><pubDate>Tue, 15 Aug 2023 20:18:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6f13366-0120-41c6-ad63-1093967a2272</guid><dc:creator>hajmousa</dc:creator><description>&lt;p&gt;The issue was as expected is the bootloader, App address was mapped to a default offset of 0x1000, when I added the following config&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_FLASH_LOAD_OFFSET&lt;/span&gt;&lt;span&gt;=0x0&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;to force mapping the app to start from address 0x00 it worked.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Is that the proper wat to boot simple application that does not need bootloader?&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf52 dongle programming using nrf52dk</title><link>https://devzone.nordicsemi.com/thread/441390?ContentTypeID=1</link><pubDate>Tue, 15 Aug 2023 12:58:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5432897-1d72-49be-b151-3649875dcf05</guid><dc:creator>hajmousa</dc:creator><description>&lt;p&gt;To clarify the steps I have taken:&lt;/p&gt;
&lt;p&gt;1) Compiled BLINKY code using VScode and nRF sdk&amp;nbsp;&lt;/p&gt;
&lt;p&gt;2) Programmed nRF52 Dongle using&amp;nbsp; the Open USB bootloader through the nRF programmer app.&amp;nbsp; (worked with Problem)&lt;/p&gt;
&lt;p&gt;3) Using the nRF52 DK (After adding soldering SB47 to power&amp;nbsp;USB dongle) completely erased USB Dongle and reprogrammed only the LED Blinky code.&amp;nbsp; It did not work I think it hangs&lt;/p&gt;
&lt;p&gt;4) To troubleshoot the issue, with nRF52 DK read the flash from another good USB dongle,&lt;/p&gt;
&lt;p&gt;5) Programmed the Dongle with the read flash from good USB dongle, and then reloaded the Blinky code and it worked.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I can debug the code with no problem as long as I do not erase the chip and keep the bootloader, using the nRF52 DK&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I think I would reword my question to what is the configuration changes needed to run the code without the Bootloader?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for support&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>