<?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>NRF52840 dongle firmware question</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/81880/nrf52840-dongle-firmware-question</link><description>The dongle is an excellent piece of hardware. However the features of DFU is rather limited. 
 I am wondering if I can put two hex files onto the dongle? For example, 
 1. My own bootloader right after MBR at flash address 0x1000, takes 64KB 
 2. My own</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 19 Nov 2021 21:14:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/81880/nrf52840-dongle-firmware-question" /><item><title>RE: NRF52840 dongle firmware question</title><link>https://devzone.nordicsemi.com/thread/339889?ContentTypeID=1</link><pubDate>Fri, 19 Nov 2021 21:14:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3dc8522d-43b0-4a4d-9aa5-afc1f076401b</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;No problem &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&amp;nbsp; Unlike the M0, the M4 has the &lt;strong&gt;&lt;a href="https://developer.arm.com/documentation/dui0552/a/cortex-m3-peripherals/system-control-block/vector-table-offset-register?lang=en"&gt;VTOR &lt;/a&gt;&lt;/strong&gt;register which, after startup, lets you cange the interrupt forwarding address in HW (default address after reset is always 0x0). And yes, you can set the VTOR to point to your application&amp;#39;s vector table when you don&amp;#39;t use the Softdevice.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 dongle firmware question</title><link>https://devzone.nordicsemi.com/thread/339884?ContentTypeID=1</link><pubDate>Fri, 19 Nov 2021 18:01:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3591036b-f2f6-4ca5-9386-d3b6d6b069e0</guid><dc:creator>Libertas</dc:creator><description>&lt;p&gt;Thanks again!&lt;/p&gt;
&lt;p&gt;Just did a quick search on the Q&amp;amp;A and learnt that interrupt forwarding is for CM0 which doesn&amp;#39;t allow NVIC relocation.&lt;/p&gt;
&lt;p&gt;I didn&amp;#39;t know there is such a thing in the world before!!!&lt;/p&gt;
&lt;p&gt;I believe in my own bootloader I can still relocate NVIC because I never meant to build anything for CM0 and I don&amp;#39;t plan to use soft device. Is that right?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 dongle firmware question</title><link>https://devzone.nordicsemi.com/thread/339877?ContentTypeID=1</link><pubDate>Fri, 19 Nov 2021 16:22:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13009533-925c-4b87-8296-623441718d39</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;1. Yes, correct.&lt;/p&gt;
&lt;p&gt;2. Yes, this limitation applies to when you do serial DFU over the USB interface. The app RAM start address must also be set to 0x20000008 as the first two words are reserved to the MBR (for interrupt forwarding).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 dongle firmware question</title><link>https://devzone.nordicsemi.com/thread/339869?ContentTypeID=1</link><pubDate>Fri, 19 Nov 2021 15:21:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a439955c-ec3e-4618-ba18-eea28d53ec99</guid><dc:creator>Libertas</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;Thanks for your response. I just did some further reading on your Q&amp;amp;A. Here are my understandings:&lt;/p&gt;
&lt;p&gt;1. The nRF MBR will jump to fixed address of 0x1000 if the DFU is not triggered.&lt;/p&gt;
&lt;p&gt;2. nRF tools can only write hex files with specified starting address to dongle.&lt;/p&gt;
&lt;p&gt;If my understandings are correct I believe it is enough for what I wanted.&lt;/p&gt;
&lt;p&gt;I do have j-link, tag-connect pogo cables etc. But I would like to make my system available to people who only have the dongles.&lt;/p&gt;
&lt;p&gt;Also about the j-link, I managed to find out the pin out layout of the &lt;span&gt;tag-connect pogo cables for the dongle. It appears the adapter below may work and I am still waiting for shipment.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.adafruit.com/product/2094#tutorials"&gt;https://www.adafruit.com/product/2094#tutorials&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 dongle firmware question</title><link>https://devzone.nordicsemi.com/thread/339862?ContentTypeID=1</link><pubDate>Fri, 19 Nov 2021 14:57:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30016841-d94f-4eff-98f9-cd9488f4d11a</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t think of any reasons for why this would not work as long as you only intend to support application updates and not plan on using the Softdevice (BLE stack in the nRF5 SDK). The pre-programmed bootloader will protect itself and the MBR on startup with the &lt;span&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/acl.html?cp=4_0_0_5_2"&gt;AC&lt;/a&gt;L peripheral.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;But it would probably be easier if you used a J-link programmer and just removed the existing bootloader. We have a tutorial on the various ways you can program the dongle here: &lt;a href="https://devzone.nordicsemi.com/guides/short-range-guides/b/getting-started/posts/nrf52840-dongle-programming-tutorial"&gt;https://devzone.nordicsemi.com/guides/short-range-guides/b/getting-started/posts/nrf52840-dongle-programming-tutorial&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>