<?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>External MCU flashing over BLE using nRF52840</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/49197/external-mcu-flashing-over-ble-using-nrf52840</link><description>Hi, 
 I have a STM32 MCU and I want to flash this MCU by using an nRF52840. The two chips will be connected by UART. 
 From where I need to start, and what is the most easiest way to do this ? 
 In resume, I want : PC/Phone &amp;lt;-BLE-&amp;gt; nRF52840 &amp;lt;-UART-&amp;gt; STM32</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 02 Jul 2019 12:08:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/49197/external-mcu-flashing-over-ble-using-nrf52840" /><item><title>RE: External MCU flashing over BLE using nRF52840</title><link>https://devzone.nordicsemi.com/thread/195975?ContentTypeID=1</link><pubDate>Tue, 02 Jul 2019 12:08:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6f987c8-9bc3-4007-9f17-437b19fa58eb</guid><dc:creator>flogui</dc:creator><description>&lt;p&gt;Yes probably. Thanks you for your help !&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External MCU flashing over BLE using nRF52840</title><link>https://devzone.nordicsemi.com/thread/195974?ContentTypeID=1</link><pubDate>Tue, 02 Jul 2019 12:06:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e97ca9a1-9712-4165-a2a1-89ff774adc22</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Again,&amp;nbsp; you probably need some &amp;quot;flow control&amp;quot; or &amp;quot;pacing&amp;quot; to manage the data throughput...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External MCU flashing over BLE using nRF52840</title><link>https://devzone.nordicsemi.com/thread/195968?ContentTypeID=1</link><pubDate>Tue, 02 Jul 2019 11:52:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a20a2d48-4832-4040-a153-324141154901</guid><dc:creator>flogui</dc:creator><description>&lt;p&gt;I looked at it, solved my error report but I still does not receive all of my data&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External MCU flashing over BLE using nRF52840</title><link>https://devzone.nordicsemi.com/thread/195871?ContentTypeID=1</link><pubDate>Tue, 02 Jul 2019 08:41:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:960340b0-4e16-4c96-a283-749b51bc311e</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Did you look at the post I linked?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External MCU flashing over BLE using nRF52840</title><link>https://devzone.nordicsemi.com/thread/195868?ContentTypeID=1</link><pubDate>Tue, 02 Jul 2019 08:34:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d475ce13-917f-4900-b1fd-a05bbe0e5ede</guid><dc:creator>flogui</dc:creator><description>&lt;p&gt;I found why there is not the same lines (the debug buffer was too small because I printed all the data).&lt;/p&gt;
&lt;p&gt;Here is what I get now, in the debug terminal:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;info&amp;gt; app: Debug logging for UART over RTT started.

&amp;lt;debug&amp;gt; nrf_ble_gatt: Requesting to update ATT MTU to 247 bytes on connection 0x0.

&amp;lt;debug&amp;gt; nrf_ble_gatt: Updating data length to 251 on connection 0x0.

&amp;lt;info&amp;gt; app: Connected

&amp;lt;debug&amp;gt; nrf_ble_gatt: ATT MTU updated to 247 bytes on connection 0x0 (response).

&amp;lt;info&amp;gt; app: Data len is set to 0xF4(244)

&amp;lt;debug&amp;gt; app: ATT MTU exchange completed. central 0xF7 peripheral 0xF7

&amp;lt;debug&amp;gt; nrf_ble_gatt: Data length updated to 251 on connection 0x0.

&amp;lt;debug&amp;gt; nrf_ble_gatt: max_rx_octets: 27

&amp;lt;debug&amp;gt; nrf_ble_gatt: max_tx_octets: 251

&amp;lt;debug&amp;gt; nrf_ble_gatt: max_rx_time: 328

&amp;lt;debug&amp;gt; nrf_ble_gatt: max_tx_time: 2120

&amp;lt;debug&amp;gt; app: ATT MTU exchange completed. central 0xF7 peripheral 0xF7

&amp;lt;debug&amp;gt; app: PHY update request.

&amp;lt;debug&amp;gt; app: Ready to send data over BLE NUS

&amp;lt;debug&amp;gt; app: Ready to send data over BLE NUS

&amp;lt;debug&amp;gt; app: Ready to send data over BLE NUS

&amp;lt;debug&amp;gt; app: Ready to send data over BLE NUS

&amp;lt;error&amp;gt; app: ERROR 1 [NRF_ERROR_SVC_HANDLER_MISSING] at C:\Users\FLO\Desktop\nRF5_SDK_15.3.0_59ac345\examples\ble_peripheral\ble_app_uart\main.c:560

PC at: 0x0002ED67

&amp;lt;error&amp;gt; app: End of error report

&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External MCU flashing over BLE using nRF52840</title><link>https://devzone.nordicsemi.com/thread/195862?ContentTypeID=1</link><pubDate>Tue, 02 Jul 2019 08:27:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f5f018b-a9c3-490f-8a9f-96af7bcbe8b9</guid><dc:creator>flogui</dc:creator><description>&lt;p&gt;I tried to remake the error to re-send you the code but I don&amp;#39;t have the same lines in the debug terminal besides the fact that I changed nothing.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1562055753536v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;I did chopped off one part of the error report but in the next picture I highlighted the line (it&amp;#39;s in the main file, line 560).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External MCU flashing over BLE using nRF52840</title><link>https://devzone.nordicsemi.com/thread/195856?ContentTypeID=1</link><pubDate>Tue, 02 Jul 2019 08:19:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0db615f2-c49b-41c8-8434-8e64dbf5d2f6</guid><dc:creator>awneil</dc:creator><description>[quote userid="81078" url="~/f/nordic-q-a/49197/external-mcu-flashing-over-ble-using-nrf52840/195849"]I guess it&amp;#39;s because I send too much data and too fast to the UART.[/quote]
&lt;p&gt;Or too much too fast for the BLE link.&lt;/p&gt;
&lt;p&gt;BLE = &amp;quot;Bluetooth Low Energy&amp;quot;: so its focus is on minimising energy consumption - which means it is specifically &lt;em&gt;&lt;strong&gt;not&lt;/strong&gt;&lt;/em&gt; designed for high-volume and/or high-speed data transfer ...&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="81078" url="~/f/nordic-q-a/49197/external-mcu-flashing-over-ble-using-nrf52840/195849"]How can I solve this[/quote]
&lt;p&gt;You will need some sort of flow control - or &amp;quot;pacing&amp;quot; - to regulate your data transmission.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External MCU flashing over BLE using nRF52840</title><link>https://devzone.nordicsemi.com/thread/195854?ContentTypeID=1</link><pubDate>Tue, 02 Jul 2019 08:16:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b8c1a2f0-50e1-4633-9c08-f61ed780b86a</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;You have chopped off the part of the error report which shows where, exactly, the error was detected!&lt;/p&gt;
&lt;p&gt;But check this:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/41480/multiperipheral-nus-crashes/161677#161677"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/41480/multiperipheral-nus-crashes/161677#161677&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;How to properly post source code:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/2577._5F00_Insert-Code-_2D00_-Nordic.png" /&gt;&lt;/p&gt;
&lt;p&gt;You can also post logs that way - just keep the &amp;#39;language&amp;#39; as &amp;#39;text&amp;#39;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External MCU flashing over BLE using nRF52840</title><link>https://devzone.nordicsemi.com/thread/195849?ContentTypeID=1</link><pubDate>Tue, 02 Jul 2019 08:08:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f4c7f15-53b5-4f31-9575-255ecf71df7a</guid><dc:creator>flogui</dc:creator><description>&lt;p&gt;I have some problems making the Nordic Uart Service working.&lt;/p&gt;
&lt;p&gt;I am trying to send a 2ko file but I get an ERROR 4 :&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1562054733461v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;The line making the error is in the main function :&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1562054801614v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;So I guess it&amp;#39;s because I send too much data and too fast to the UART. How can I solve this error ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External MCU flashing over BLE using nRF52840</title><link>https://devzone.nordicsemi.com/thread/195730?ContentTypeID=1</link><pubDate>Mon, 01 Jul 2019 15:00:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:441e1ddf-989d-4ccd-8f0d-8a3608e49882</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;As far as BLE is concerned, it&amp;#39;s just a matter of transferring the data - it makes no difference what that data represents.&lt;/p&gt;
&lt;p&gt;You might want to start by looking at the Nordic UART Service (NUS) - that&amp;#39;s good for transferring arbitrary chunks of data ...&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/ble_sdk_app_nus_eval.html"&gt;infocenter.nordicsemi.com/.../ble_sdk_app_nus_eval.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Or the&amp;nbsp;&lt;span&gt;Device Firmware Update (DFU)&amp;nbsp;&amp;nbsp;BLE Service:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.0.0/group__nrf__dfu__ble.html"&gt;https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.0.0/group__nrf__dfu__ble.html&lt;/a&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: External MCU flashing over BLE using nRF52840</title><link>https://devzone.nordicsemi.com/thread/195719?ContentTypeID=1</link><pubDate>Mon, 01 Jul 2019 14:44:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:41411ec0-9d36-49c2-9b4e-5a85fb25913f</guid><dc:creator>flogui</dc:creator><description>&lt;p&gt;Thanks that is going to be usefull but the part I am more interested in is the BLE part.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External MCU flashing over BLE using nRF52840</title><link>https://devzone.nordicsemi.com/thread/195710?ContentTypeID=1</link><pubDate>Mon, 01 Jul 2019 14:35:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9dc06948-55a2-4c54-9f92-259171b8078a</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;&lt;strong&gt;ST&lt;/strong&gt; have application notes on how to do in-system programming of their microcontrollers.&lt;/p&gt;
&lt;p&gt;You need to study them, and implement what they show you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>