<?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>UART DFU MBR example</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/70164/uart-dfu-mbr-example</link><description>Hi, 
 I&amp;#39;m trying to use uart dfu mbr example and when I flush boot loader via jlink I see that it write mbr hex file at address 0x0. My main application also started from address 0, should I move it to address MBR_SIZE or this mbr hex file used only for</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 18 Feb 2021 10:21:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/70164/uart-dfu-mbr-example" /><item><title>RE: UART DFU MBR example</title><link>https://devzone.nordicsemi.com/thread/295044?ContentTypeID=1</link><pubDate>Thu, 18 Feb 2021 10:21:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb819fd7-8f30-4134-9aa7-4176b2dae739</guid><dc:creator>Dinkin Uri</dc:creator><description>&lt;p&gt;That what I did already. Thank you tried to help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART DFU MBR example</title><link>https://devzone.nordicsemi.com/thread/295038?ContentTypeID=1</link><pubDate>Thu, 18 Feb 2021 10:17:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a9d223d-e6a0-4005-a1ee-b2bbd2baf214</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Uri,&amp;nbsp;&lt;br /&gt;The nRF52805 is very similar to the NRF52810, with some&amp;nbsp;differences in the peripherals, but not in the flash and RAM.&amp;nbsp;&lt;br /&gt;You can re-use the&amp;nbsp;PCA10040E project (which is for NRF52810) for the nRF52805. You may need to switch the boards.h setting to choose nrf52805 instead of nRF52810.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART DFU MBR example</title><link>https://devzone.nordicsemi.com/thread/295033?ContentTypeID=1</link><pubDate>Thu, 18 Feb 2021 09:47:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c38b037-60c8-4e10-a3f7-8c40fa714aae</guid><dc:creator>Dinkin Uri</dc:creator><description>&lt;p&gt;Ok, thank you. Where can I find uart dfu project for 805?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART DFU MBR example</title><link>https://devzone.nordicsemi.com/thread/294797?ContentTypeID=1</link><pubDate>Wed, 17 Feb 2021 10:46:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b21cd64-a892-45e2-9f0d-fbdaf10d9bb7</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Please try to setup a test bench, you can use a NRF52 DK to test receiving image.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;What you are trying to build is quite complex and requires good understanding of the bootloader and the DFU protocol. I don&amp;#39;t see any way of achieving that without good debug setup. I would suggest to get very familiar with the UART DFU process, by first testing it with the nrfutil on PC.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART DFU MBR example</title><link>https://devzone.nordicsemi.com/thread/294791?ContentTypeID=1</link><pubDate>Wed, 17 Feb 2021 10:22:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f90f259-5d23-4e18-8b70-f10b28780f62</guid><dc:creator>Dinkin Uri</dc:creator><description>&lt;p&gt;Hi, the problem is that 805 is not exposed to PC, the only way is via 840. Can I send you project and may be you discover the problem?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART DFU MBR example</title><link>https://devzone.nordicsemi.com/thread/294578?ContentTypeID=1</link><pubDate>Tue, 16 Feb 2021 10:59:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e19e4568-0a33-4764-88ee-0ec0bf62a53c</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Uri,&amp;nbsp;&lt;br /&gt;Have you tried to use nRFutil application on PC&amp;nbsp; to send the same image ?&amp;nbsp;&lt;br /&gt;Have you done any successful DFU update to your NRF52805 chip ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you can do a DFU update using the nRFUtil you can capture a logic trace of the UART pins. And then do the same with your/my DFU bootloader and compare the two.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Which error code was thrown after you sent the init packet ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART DFU MBR example</title><link>https://devzone.nordicsemi.com/thread/294447?ContentTypeID=1</link><pubDate>Mon, 15 Feb 2021 16:08:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:093455b4-3d8e-4752-b9c8-45a35d1df865</guid><dc:creator>Dinkin Uri</dc:creator><description>&lt;p&gt;Yes, I try send from nrf52840 that is my master send to nrf52805 via uart. I used your sample to send package and I have the same behavior, your&amp;nbsp;program is stuck after it starts to send image because your code is blocking on uart transfer bit, but init packet is sent ok.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART DFU MBR example</title><link>https://devzone.nordicsemi.com/thread/294328?ContentTypeID=1</link><pubDate>Mon, 15 Feb 2021 09:25:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d20c1bbd-e287-4150-8aed-41fbaddfa88f</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Uri,&amp;nbsp;&lt;br /&gt;Could you clarify that you are planning to send image from a nRF52 to another nRF52 ?&lt;br /&gt;Which example did you base your DFU master on&amp;nbsp; ? Have you got a look at my example &lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/software-development-kit/posts/getting-started-with-nordics-secure-dfu-bootloader#h108sjziaxo3m81rkgr1has5r1d72qtu"&gt;here &lt;/a&gt;?&lt;br /&gt;I would suggest to test doing DFU from PC or from my example with no modification , just to test and make sure the bootloader on the DFU target works fine. After that you can start to test on your own DFU master.&lt;/p&gt;
&lt;p&gt;If it works with my example (or from PC) but not on your DFU master, you can try to record a logic trace on the UART pins and compare what is sent from my example or PC with what you send from your DFU master.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART DFU MBR example</title><link>https://devzone.nordicsemi.com/thread/294304?ContentTypeID=1</link><pubDate>Mon, 15 Feb 2021 05:59:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:501590c4-9a33-412a-8244-e60c0971a6de</guid><dc:creator>Dinkin Uri</dc:creator><description>&lt;p&gt;&lt;span&gt;No I have not log from boot loader. I implemented protocol of boot loader in main processor that connected via uart with processor with boot loader. I send init packet and it is working fine, but when I start to send image boot loader crushes. I modified project to match it to 52805, because&amp;nbsp;nordic does not provide boot loader for this processor, and modifications is not only for size, but I&amp;#39;m sure I implemented the protocol in right way. The problem in boot loader definitions. What can be a problem in boot loader writing firmware? What definitions in sdk_config.h I should to check?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART DFU MBR example</title><link>https://devzone.nordicsemi.com/thread/294303?ContentTypeID=1</link><pubDate>Mon, 15 Feb 2021 05:59:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a10181a-6892-4995-a4f1-9d6c1aefe579</guid><dc:creator>Dinkin Uri</dc:creator><description>&lt;p&gt;No I have not log from boot loader. I implemented protocol of boot loader in main processor that connected via uart with processor with boot loader. I send init packet and it is working fine, but when I start to send image boot loader crushes. I modified project to match it to 52805, because&amp;nbsp;nordic does not provide boot loader for this processor, and modifications is not only for size, but I&amp;#39;m sure I implemented the protocol in right way. The problem in boot loader definitions. What can be a problem in boot loader writing firmware? What definitions in sdk_config.h I should to check?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART DFU MBR example</title><link>https://devzone.nordicsemi.com/thread/293731?ContentTypeID=1</link><pubDate>Wed, 10 Feb 2021 11:04:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f75b2789-acae-45c2-a441-850160b847cb</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Do you have any log from the bootloader and from nrfutil ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have you done any modification to the bootloader ? Have you successfully tested with the stock bootloader example and managed to update for example the blinky example&amp;nbsp; ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART DFU MBR example</title><link>https://devzone.nordicsemi.com/thread/293714?ContentTypeID=1</link><pubDate>Wed, 10 Feb 2021 09:57:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:282d4bc0-f2af-4a30-ad49-8496d0d9e4bc</guid><dc:creator>Dinkin Uri</dc:creator><description>&lt;p&gt;Hi, I encountered in problem when I send fw image to boot loader, it is crushes after second write request, init packet sent ok, but when i start transfer fw image it boot loader is crushed. Do you know what can be a reason?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART DFU MBR example</title><link>https://devzone.nordicsemi.com/thread/289272?ContentTypeID=1</link><pubDate>Thu, 14 Jan 2021 15:36:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b8199cd3-437d-49b4-be76-7291a822e750</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;No, you need to edit the&amp;nbsp;linker_section_placement_macros instead.&amp;nbsp;&lt;br /&gt;Please have a look at the blinky mbr example located at&amp;nbsp;\examples\peripheral\blinky\pca10040\mbr\ses&lt;/p&gt;
&lt;p&gt;It&amp;#39;s made for the nRF52832 but you just need to adjust the size of flash to match with your nRF52805&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART DFU MBR example</title><link>https://devzone.nordicsemi.com/thread/289235?ContentTypeID=1</link><pubDate>Thu, 14 Jan 2021 13:56:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f83f43cf-0abf-46fe-bde6-e221e6b266d0</guid><dc:creator>Dinkin Uri</dc:creator><description>&lt;p&gt;I create project CortexM4 for device nrf52805. In main I create output gpio and timer0 with 500 ms frequency. Run it and it run great. Now I go to project and put&amp;nbsp;linker_section_placements_segments=&amp;quot;FLASH RX 0x00001000 0x00029000;RAM RWX 0x20000000 0x00006000&amp;quot; and run. What I see it does not run, it just stopped in address 0x2A0&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART DFU MBR example</title><link>https://devzone.nordicsemi.com/thread/289210?ContentTypeID=1</link><pubDate>Thu, 14 Jan 2021 13:06:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe490d84-1b53-49ec-9ed0-6551f845998a</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Could you explain what exactly you did when you moved main application to address 0x1000h ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Usually what you need to do is to configure the start flash address&amp;nbsp;&amp;nbsp;FLASH_START in the linker to the address 0x1000. This will also move the vector table to 0x1000&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART DFU MBR example</title><link>https://devzone.nordicsemi.com/thread/289168?ContentTypeID=1</link><pubDate>Thu, 14 Jan 2021 11:37:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:700cd5b3-cdc8-4e4f-9093-b9f064b0df50</guid><dc:creator>Dinkin Uri</dc:creator><description>&lt;p&gt;Hi, thank you for your help. I moved main application to address 1000h and it runs. I work with nrf52805, when I enable timer0 it application jumps to address that is unknown. Should I do something with vector table, move it to the same address (0x1000)? I make blinking with led and it works fine, but timer raise interrupt and program entering to address 0x2A0&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART DFU MBR example</title><link>https://devzone.nordicsemi.com/thread/288041?ContentTypeID=1</link><pubDate>Thu, 07 Jan 2021 21:02:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:335fb243-9901-46c5-af06-b83c7c22b086</guid><dc:creator>Dinkin Uri</dc:creator><description>&lt;p&gt;Thank you. I will try&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART DFU MBR example</title><link>https://devzone.nordicsemi.com/thread/287722?ContentTypeID=1</link><pubDate>Wed, 06 Jan 2021 13:06:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f88000f-ff19-4434-ac99-75fbe7c2d377</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Uri,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The MBR is needed for the bootloader to operate. If your application started from address 0, you would need to move it to MBR_SIZE (0x1000). You can refer to our blinky example made for MBR compatibility \examples\peripheral\blinky\pca10040\mbr.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>