<?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>Flashing example .hex file to NRF52840 dongle (PCA10059) to achieve UART over BLE</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/90956/flashing-example-hex-file-to-nrf52840-dongle-pca10059-to-achieve-uart-over-ble</link><description>Hi, 
 I would like to use the NRF52840 dongle (PCA10059) to transfer UART over BLE. 
 It seems there are some examples available that look promising, but after a day of struggling to find a .hex file or to compile a .hex file myself I&amp;#39;m reaching out to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 14 Sep 2022 11:03:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/90956/flashing-example-hex-file-to-nrf52840-dongle-pca10059-to-achieve-uart-over-ble" /><item><title>RE: Flashing example .hex file to NRF52840 dongle (PCA10059) to achieve UART over BLE</title><link>https://devzone.nordicsemi.com/thread/386139?ContentTypeID=1</link><pubDate>Wed, 14 Sep 2022 11:03:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e134a688-94a0-472f-a182-17b00bd95ea0</guid><dc:creator>coen</dc:creator><description>&lt;p&gt;Dear Sigurd,&lt;/p&gt;
&lt;p&gt;Due to vacation it took some time to get back to you, but thank you for providing such a detailed reply. It looks like the desired functionality is not available in the sample code that I could flash to the dongle.&amp;nbsp;This would mean that I would need to alter the code and have to use the DK instead of dongle as that would allow debugging and flashing.&lt;/p&gt;
&lt;p&gt;For now I have found a quick alternative solution by using a&amp;nbsp;&lt;span&gt;CSR BC417143 based board. It is intended for serial communication and preloaded with serial port profile (SPP) firmware. This is not the most configurable solution, but it does the job for now.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;When I find some free time in-between&amp;nbsp;project work I will keep on playing with the Nordic boards. It will take a bit more time, but on the long term this enables to build more complex projects.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Once again thanks for the reply,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Many thanks,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Coen&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing example .hex file to NRF52840 dongle (PCA10059) to achieve UART over BLE</title><link>https://devzone.nordicsemi.com/thread/381485?ContentTypeID=1</link><pubDate>Mon, 15 Aug 2022 08:04:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d3996a8-0ef0-44bf-a467-62d9d1e18aae</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi Coen,&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;Two different SDKs&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I will start by addressing a common misunderstanding, which I suspect is present here.&lt;/p&gt;
&lt;p&gt;We have two different Software Development Kits (SDKs):&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;The nRF5 SDK (old)&lt;/li&gt;
&lt;li&gt;The nRF Connect SDK (New, recommended for new projects)&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;This is explained in more depth in our &lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/nrf-connect-sdk-and-nrf5-sdk-statement"&gt; nRF Connect SDK and nRF5 SDK statement&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;For your case specifically, VS Code is for the nRF Connect SDK, while the infocenter sample you have linked to are for the nRF5 SDK.&lt;/p&gt;
&lt;p&gt;Since you are starting a new project here, I strongly recommend using the nRF Connect SDK.&lt;/p&gt;
&lt;p&gt;For a step-by-step guide on how to set up + basics for the nRF Connect SDK, see &lt;a href="https://academy.nordicsemi.com/"&gt;https://academy.nordicsemi.com/&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Samples for the nRF Connect SDK can be found in our &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/index.html"&gt;nRF Connect SDK docs&lt;/a&gt;:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples.html"&gt;nRF Connect SDK nRF samples&lt;/a&gt;, for nRF specific samples. Look here first&lt;/li&gt;
&lt;li&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/index.html"&gt;nRF Connect SDK Zephyr samples&lt;/a&gt;, for generic zephyr samples. Usually useful for hardware drivers or Zephyr features&lt;/li&gt;
&lt;li&gt;For your specific need, see the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.2/nrf/samples/bluetooth/peripheral_uart/README.html"&gt;Bluetooth: Peripheral UART sample&lt;/a&gt;. I do not think we have a pre-made hex file for this, so you must build this yourself.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;nRF52840 Dongle vs nRF52840 Development Kit (DK)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;While the &lt;a href="https://www.nordicsemi.com/Products/Development-hardware/nrf52840-dongle"&gt;nRF52840 Dongle&lt;/a&gt; you use are fine for doing testing for the nRF52840, the &lt;a href="https://www.nordicsemi.com/Products/Development-hardware/nRF52840-DK"&gt;nRF52840DK &lt;/a&gt;is arguably better.&lt;/p&gt;
&lt;p&gt;The main difference between the Dongle and the DK is that the DK has an onboard &lt;a href="https://infocenter.nordicsemi.com/topic/ug_nrf52840_dk/UG/dk/if_mcu.html?cp=4_0_4_6"&gt;Debugger chip&lt;/a&gt;, making it easier to program.&lt;/p&gt;
&lt;p&gt;As you have already discovered, you can not just program the Dongle using VS Code.&lt;br /&gt;This is because VS Code uses &amp;quot;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.2/zephyr/develop/west/build-flash-debug.html#flashing-west-flash"&gt;west flash&lt;/a&gt;&amp;quot;, which invokes &lt;a href="https://www.nordicsemi.com/Products/Development-tools/nrf-command-line-tools"&gt;nrfjprog&lt;/a&gt; to program the nRF52840. &lt;br /&gt;nrfjprog uses a debugger to directly flash the nRF52840.&lt;/p&gt;
&lt;p&gt;The Dongle on the other hand, must have a bootloader running as part of its firmware, to be able to load applications.&lt;br /&gt;To load a new application onto the Dongle, you must write to it using UART requires &lt;a href="https://www.nordicsemi.com/Products/Development-tools/nRF-Util"&gt;nrfutil&lt;/a&gt;. But worry not, the &lt;a href="https://www.nordicsemi.com/Products/Development-tools/nRF-Connect-for-desktop/Download#infotabs"&gt;nRF Connect for Desktop&lt;/a&gt; Programmer app should work for this as well.&lt;/p&gt;
&lt;p&gt;If you want some more in-depth on Dongle programming, here is a guide on how to &lt;a href="https://devzone.nordicsemi.com/guides/short-range-guides/b/getting-started/posts/nrf52840-dongle-programming-tutorial"&gt;manual nRF52840 Dongle Programming Tutorial&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;Summary&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;I recommend that you stick to the nRF Connect SDK, get started by using &lt;a href="https://academy.nordicsemi.com/"&gt;https://academy.nordicsemi.com/&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Using the Dongle should be fine, but the nRF52840DK will make your life easier.&lt;/li&gt;
&lt;li&gt;Try to use the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.2/nrf/samples/bluetooth/peripheral_uart/README.html"&gt;Bluetooth: Peripheral UART&lt;/a&gt; sample, and see if you can program the Dongle in that case?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If you&amp;nbsp; have any questions to this, let me know!&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>