<?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>Trouble flashing nrf52840 dongle (Peripheral UART sample)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/119733/trouble-flashing-nrf52840-dongle-peripheral-uart-sample</link><description>I am trying to port the BLE Peripheral UART sample to work on the nrf52840 dongle. It&amp;#39;s not in the list of supported board but I don&amp;#39;t see why it shouldn&amp;#39;t work (at least, the BLE advertising part). I created a new app from the sample and created a build</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 17 Mar 2025 13:58:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/119733/trouble-flashing-nrf52840-dongle-peripheral-uart-sample" /><item><title>RE: Trouble flashing nrf52840 dongle (Peripheral UART sample)</title><link>https://devzone.nordicsemi.com/thread/527662?ContentTypeID=1</link><pubDate>Mon, 17 Mar 2025 13:58:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc7a7bc5-7c05-4f36-a6b1-34000170257f</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;olalonde and James168,&lt;/p&gt;
&lt;p&gt;My colleague Vidar shared the following past case, which I believe is the same issue.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/118594/nrf52840-dongle-ble-peripheral_uart-example-sdk-migration-from-2-6-0-to-2-9-0"&gt;nRF52840 dongle, BLE peripheral_uart example, SDK migration from 2.6.0 to 2.9.0&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please refer to that case for more explanation and a sample code that fixes the issue.&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trouble flashing nrf52840 dongle (Peripheral UART sample)</title><link>https://devzone.nordicsemi.com/thread/527425?ContentTypeID=1</link><pubDate>Fri, 14 Mar 2025 16:47:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fad103ef-dd3b-4150-adc2-43c4706ad1c6</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;I&amp;nbsp;don&amp;#39;t have a nRF52840 dongle right now, so right now I only have the nRF52840 DK, which runs the LBS sample&amp;nbsp;from v2.9.0 fine. I will check the dongle next week.&lt;/p&gt;
&lt;p&gt;As for having to comment out UART&amp;nbsp;lines to work, could you give me more details? It is most likely related to the fact that on the dongle, you actually use USB CDC ACM for serial, rather than true UART interface.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trouble flashing nrf52840 dongle (Peripheral UART sample)</title><link>https://devzone.nordicsemi.com/thread/527307?ContentTypeID=1</link><pubDate>Fri, 14 Mar 2025 07:17:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d11e918-054a-49cc-a311-d225cbf9d52f</guid><dc:creator>James168</dc:creator><description>&lt;p&gt;Not sure related to this ticket, it&amp;#39;s about mcuboot, I don&amp;#39;t have time to read it detail.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/119311/after-upgrading-mcuboot-the-device-crashes-upon-power-up"&gt;After upgrading mcuboot, the device crashes upon power-up - Nordic Q&amp;amp;A - Nordic DevZone - Nordic DevZone&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trouble flashing nrf52840 dongle (Peripheral UART sample)</title><link>https://devzone.nordicsemi.com/thread/527291?ContentTypeID=1</link><pubDate>Fri, 14 Mar 2025 02:43:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf5f1f36-db13-49a7-82d6-357db632084e</guid><dc:creator>olalonde</dc:creator><description>&lt;p&gt;You&amp;#39;re right, I commented out some UART related stuff in&amp;nbsp;&lt;span&gt;peripheral_uart and it ended up working on the dongle. (with the&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/main/samples/bluetooth/mesh/light_ctrl/pm_static_nrf52840dongle_nrf52840.yml"&gt;pm_static_nrf52840dongle_nrf52840.yml&lt;/a&gt;&amp;nbsp;file though because I am using the bootloader to flash)&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trouble flashing nrf52840 dongle (Peripheral UART sample)</title><link>https://devzone.nordicsemi.com/thread/527080?ContentTypeID=1</link><pubDate>Thu, 13 Mar 2025 06:26:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6944fa41-c491-47ce-8971-9c1fd70a55b0</guid><dc:creator>James168</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;1) peripheral_lbs v2.7.0 is normal, but v2.9.0 can&amp;#39;t advertise in dongle. I guess nordic make something wrong in the new NCS version.&lt;/p&gt;
&lt;p&gt;I attach the hex file for test.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/zephyr_5F00_v270_5F00_lbs.hex"&gt;devzone.nordicsemi.com/.../zephyr_5F00_v270_5F00_lbs.hex&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;2) peripheral_uart is failed to advertise in both NCS version for dongle, I guess maybe need to modify main.c due to UART function, but I don&amp;#39;t have time to trace now.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trouble flashing nrf52840 dongle (Peripheral UART sample)</title><link>https://devzone.nordicsemi.com/thread/527054?ContentTypeID=1</link><pubDate>Wed, 12 Mar 2025 22:33:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11fa5e19-e76f-4389-920c-e1dc62106526</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi olalonde,&lt;/p&gt;
&lt;p&gt;That is really quite strange. I just built the Peripheral LBS sample myself, and the memory layout is as expected. The application starts at 0x00001000, which is the only requirement for the dongle to work. I unfortunately don&amp;#39;t have a dongle with me so I couldn&amp;#39;t verify that it works yet.&lt;/p&gt;
&lt;p&gt;Do you have the hex file of the&amp;nbsp;Peripheral LBS sample when it didn&amp;#39;t work? Also, what SDK version were you using?&lt;/p&gt;
&lt;p&gt;As for Peripheral UART,&amp;nbsp;how is it not working? Are you able to see its advertisement with the nRF Connect app, for example?&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trouble flashing nrf52840 dongle (Peripheral UART sample)</title><link>https://devzone.nordicsemi.com/thread/527032?ContentTypeID=1</link><pubDate>Wed, 12 Mar 2025 17:20:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64014e3c-af10-4cf7-ad49-a6abad0b5ffc</guid><dc:creator>olalonde</dc:creator><description>&lt;p&gt;Update2:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I managed to get the &amp;quot;Bluetooth: Peripheral LBS&amp;quot; sample to work by copying the &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/main/samples/bluetooth/mesh/light_ctrl/pm_static_nrf52840dongle_nrf52840.yml"&gt;pm_static_nrf52840dongle_nrf52840.yml&lt;/a&gt;&amp;nbsp;file from the &amp;quot;Bluetooth Mesh light fixture sample&amp;quot; sample to the root of the project.&lt;/p&gt;
&lt;p&gt;However, the &amp;quot;BLE Peripheral UART&amp;quot; sample is still not working as expected.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trouble flashing nrf52840 dongle (Peripheral UART sample)</title><link>https://devzone.nordicsemi.com/thread/527021?ContentTypeID=1</link><pubDate>Wed, 12 Mar 2025 16:18:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82609261-0203-4f16-aa39-0b2b7af0dfe8</guid><dc:creator>olalonde</dc:creator><description>&lt;p&gt;Update:&lt;/p&gt;
&lt;p&gt;I also tried to build and flash the &lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.9.1/page/nrf/samples/bluetooth/peripheral_lbs/README.html"&gt;&amp;quot;Bluetooth: Peripheral LBS&amp;quot;&lt;/a&gt;&amp;nbsp;which according to its documentation supports the nrf52840 dongle. But after I flash nothing happens although the documentation states that the LED should be blinking.&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s the steps I followed&lt;/p&gt;
&lt;p&gt;1) I created a new application from sample&lt;/p&gt;
&lt;p&gt;2) Create a build configuration, keep all defaults except for the board which I change to nrf52840dongle/nrf52840.&lt;/p&gt;
&lt;p&gt;3) Click build.&lt;/p&gt;
&lt;p&gt;4) Put the dongle in bootloader mode (red led fading in/out).&lt;/p&gt;
&lt;p&gt;5) Open the Programmer, select device, add file, select build/merged.hex, click &amp;quot;Write&amp;quot;.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-2025_2D00_03_2D00_12-at-12.14.07_2F20_PM.png" /&gt;&lt;/p&gt;
&lt;p&gt;I tried with two different dongles to make sure it wasn&amp;#39;t a hardware issue.&lt;/p&gt;
&lt;p&gt;What am I doing wrong?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trouble flashing nrf52840 dongle (Peripheral UART sample)</title><link>https://devzone.nordicsemi.com/thread/526839?ContentTypeID=1</link><pubDate>Wed, 12 Mar 2025 03:35:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:adb918b0-4392-4484-aca8-6a459ac917a3</guid><dc:creator>olalonde</dc:creator><description>&lt;p&gt;Is it possible to keep the bootloader? I think it would be better because I don&amp;#39;t have a J-Link debug probe.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trouble flashing nrf52840 dongle (Peripheral UART sample)</title><link>https://devzone.nordicsemi.com/thread/526838?ContentTypeID=1</link><pubDate>Wed, 12 Mar 2025 03:29:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:195276f7-379d-4d58-b205-b75bc39b9d02</guid><dc:creator>James168</dc:creator><description>&lt;p&gt;Do you want to keep the original bootloader of 52840 dongle or not?&lt;/p&gt;
&lt;p&gt;check this,&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/115691/how-to-generate-nrf52840-dongle-hex-file-with-using-external-j-link-to-program-and-run-directly"&gt;devzone.nordicsemi.com/.../how-to-generate-nrf52840-dongle-hex-file-with-using-external-j-link-to-program-and-run-directly&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>