<?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>BMD-200 and Atmega328p OTA upgrade</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/37670/bmd-200-and-atmega328p-ota-upgrade</link><description>Hi there, 
 I&amp;#39;ve been searching around this forum for a while and still haven&amp;#39;t gotten any reliable answer. I&amp;#39;m trying to develop a OTA firmware upgrade solution for the ATMega328p (or any other uC for that matter) and I&amp;#39;ve come across the BMD-200 module</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 23 Aug 2018 11:45:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/37670/bmd-200-and-atmega328p-ota-upgrade" /><item><title>RE: BMD-200 and Atmega328p OTA upgrade</title><link>https://devzone.nordicsemi.com/thread/145498?ContentTypeID=1</link><pubDate>Thu, 23 Aug 2018 11:45:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96b79377-732f-4fe0-b193-cc62b866143e</guid><dc:creator>Lmagalhaes</dc:creator><description>&lt;p&gt;Yes. The problem is the ability to reset the ATMega when the characters arrive. I didn&amp;#39;t say it wasn&amp;#39;t a fundamental part of any bootloader - I&amp;#39;m saying that I want to know if I can access the characters comming from the BT side, check if they&amp;#39;re the 0x30 0x20, which is the initial communication of the optiboot bootloader. That&amp;#39;s what I meant when I asked if you&amp;#39;re able to inspect the data.&lt;/p&gt;
&lt;p&gt;Again, I don&amp;#39;t argue with the fact that the bootloader has nothing to do with the nRF.&lt;/p&gt;
&lt;p&gt;What I am asking and is on the scope of this forum are two things:&lt;/p&gt;
&lt;p&gt;1) Has anyone tried this with any success ? If so, would you mind sharing your experience?&lt;/p&gt;
&lt;p&gt;2) If not, at least tell me if, when you want to make a bridge between the BT and the UART in the BMD-200, if you still have access to the data comming from both sides. In other BLE devices, you simply turn on the bridge and that&amp;#39;s it, you&amp;#39;ll never have access to what&amp;#39;s comming from the BT interface nor the UART interface, making it impossible to add a condition that states &amp;quot;oh, if you receive 0x30 and 0x20, please make the GPIO LOW for 200ms&amp;quot;.hence resetting the ATMega.&lt;/p&gt;
&lt;p&gt;Again, not looking for bootloaders, only information.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Lu&amp;iacute;s&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BMD-200 and Atmega328p OTA upgrade</title><link>https://devzone.nordicsemi.com/thread/145463?ContentTypeID=1</link><pubDate>Thu, 23 Aug 2018 09:33:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9a89682-e2cc-433b-8f83-5b1bcd0a1d9d</guid><dc:creator>awneil</dc:creator><description>[quote userid="73454" url="~/f/nordic-q-a/37670/bmd-200-and-atmega328p-ota-upgrade/145323"]The main problem is the ability to reset the atmega when the characters arrive[/quote]
&lt;p&gt;Is it?&lt;/p&gt;
&lt;p&gt;Why is that a problem? This would be a fundamental part of &lt;em&gt;&lt;strong&gt;any&lt;/strong&gt; &lt;/em&gt;bootloader - irrespective of what transport is used.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="73454" url="~/f/nordic-q-a/37670/bmd-200-and-atmega328p-ota-upgrade/145323"][/quote]
&lt;p&gt;when you start the bridge between UART and BT you can no longer inspect the data comming from either side?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have no idea what you mean by that!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/eith"&gt;Einar Thorsrud&lt;/a&gt;&amp;nbsp;is correct: the AVR bootloader part of this really has nothing to do with nRF - the AVR neither knows nor&amp;nbsp; cares what is &amp;quot;driving&amp;quot; it.&lt;br /&gt;&lt;br /&gt;If you have no experience with AVR (or any other) bootloaders, then you should certainly spend time to understand &amp;amp; get that working on its own without BT &lt;em&gt;&lt;strong&gt;before&lt;/strong&gt;&lt;/em&gt; adding that complication!&lt;/p&gt;
&lt;p&gt;And that is beyond the scope of this forum.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;EDIT&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;AIUI, OptiBoot is (essentially) what Arduino uses - so there is no shortage of support for that!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;EDIT 2&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://arduino.stackexchange.com/questions/757/what-alternatives-are-there-to-the-optiboot-bootloader"&gt;https://arduino.stackexchange.com/questions/757/what-alternatives-are-there-to-the-optiboot-bootloader&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BMD-200 and Atmega328p OTA upgrade</title><link>https://devzone.nordicsemi.com/thread/145443?ContentTypeID=1</link><pubDate>Thu, 23 Aug 2018 08:35:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:15e877a8-a86d-4d58-93e9-a22f2cec0512</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;I see. I have no experience with the&amp;nbsp;optiboot bootloader, but hopefully you can get some relevant feedback from others on this forum. I expect it will need quite a bit of work in order to use it with the nRF51, as that is a very different chip.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BMD-200 and Atmega328p OTA upgrade</title><link>https://devzone.nordicsemi.com/thread/145323?ContentTypeID=1</link><pubDate>Wed, 22 Aug 2018 13:04:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37f56a6b-bfa3-43b1-b718-db83e9bc302a</guid><dc:creator>Lmagalhaes</dc:creator><description>&lt;p&gt;Hi Einar,&lt;/p&gt;
&lt;p&gt;You can theoretically use the optiboot bootloader. I was just asking to know if anyone had tried to do this with a BT 4.x module. There are lots of people who have done upgrade OTA with BT 2.x modules, mainly the HC-05 variants, but never with any BT 4.x module. That&amp;#39;s why I was asking around here if someone had done such a thing before.&lt;/p&gt;
&lt;p&gt;The main problem is the ability to reset the atmega when the characters arrive, but that can be fixed through programming right ? Or when you start the bridge between UART and BT you can no longer inspect the data comming from either side?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Lu&amp;iacute;s&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BMD-200 and Atmega328p OTA upgrade</title><link>https://devzone.nordicsemi.com/thread/145318?ContentTypeID=1</link><pubDate>Wed, 22 Aug 2018 12:33:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:786cb10b-7044-4a7a-83de-9d16d3df8dbe</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Do you want to update the&amp;nbsp;ATMega328p from the nRF? If so, you need to look for a bootloader for the&amp;nbsp;ATMega328p.&amp;nbsp; &lt;a href="https://www.avrfreaks.net/"&gt;AVR Freaks&lt;/a&gt; is a better forum for such questions as it depend more on the Atmel part than the Nordic part.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>