<?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>Implement ble_app_usbd_cdc_acm on NRF52840 dongle with DFU mode</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/121463/implement-ble_app_usbd_cdc_acm-on-nrf52840-dongle-with-dfu-mode</link><description>Hi, 
 I have successfully adapting nRF5 SDK projects(ble_app_uart and usbd_cdc_acm example project) for the nRF52840 dongle by following the nRF52840 Dongle Programming Tutorial , and can run both projects which are flash via nRF Connect Programmer. </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 16 May 2025 01:39:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/121463/implement-ble_app_usbd_cdc_acm-on-nrf52840-dongle-with-dfu-mode" /><item><title>RE: Implement ble_app_usbd_cdc_acm on NRF52840 dongle with DFU mode</title><link>https://devzone.nordicsemi.com/thread/535677?ContentTypeID=1</link><pubDate>Fri, 16 May 2025 01:39:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca5a2568-66e2-4a7d-bdb7-761e6beb4be8</guid><dc:creator>pqfranky</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi Hung,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I solved the problem by clean the project first than rebuild the project, and the configuration has no any wrong setup.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks for your help!&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Implement ble_app_usbd_cdc_acm on NRF52840 dongle with DFU mode</title><link>https://devzone.nordicsemi.com/thread/535587?ContentTypeID=1</link><pubDate>Thu, 15 May 2025 12:42:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:41ee3df8-e76d-4351-89a8-cccc07c6ec6e</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Frank,&amp;nbsp;&lt;br /&gt;There must be something wrong with the project configuration. Next step is to try compare the SES project file (.emProject) of the modified project (with empy main.c) with the default .emProject file of the&amp;nbsp;&lt;span&gt;ble_app_uart sample.&amp;nbsp;&lt;br /&gt;You can use a text editor to compare the 2 files. Or you can use an online text compare tool .&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Implement ble_app_usbd_cdc_acm on NRF52840 dongle with DFU mode</title><link>https://devzone.nordicsemi.com/thread/535574?ContentTypeID=1</link><pubDate>Thu, 15 May 2025 12:26:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:490d4ef9-79b0-41d1-a720-d5789d1dc929</guid><dc:creator>pqfranky</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;1. I have remove&amp;nbsp;&lt;span&gt;CONFIG_GPIO_AS_PINRESET.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2. Yes, I started with&amp;nbsp;ble_app_uart, and add the code of usbd_cdc_acm&amp;nbsp;in. And I have try&amp;nbsp;with an empty main.c just a while(1), but I cannot jump into&amp;nbsp;application(with bootloader).&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Implement ble_app_usbd_cdc_acm on NRF52840 dongle with DFU mode</title><link>https://devzone.nordicsemi.com/thread/535544?ContentTypeID=1</link><pubDate>Thu, 15 May 2025 11:41:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93d923b2-ba57-4704-bb2e-cb9146ffd485</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Frank,&lt;/p&gt;
&lt;p&gt;You may want to remove&amp;nbsp;CONFIG_GPIO_AS_PINRESET. As far as I know the bootloader would use the pin to detect if you should enter DFU mode or not.&amp;nbsp;&lt;br /&gt;If it doesn&amp;#39;t work, you may want to go back to what you modified and revert back. I assume you started with&amp;nbsp;&lt;span&gt;ble_app_uart&amp;nbsp;&amp;nbsp;and add the code of usbd_cdc_acm in ? I would suggest to try testing with an empty main.c just a while(1) to see if you can jump to application or not. You can bring an LED, or use SWD to step in the code.&amp;nbsp;&lt;br /&gt;Note that you can also debug the bootloader, if you debug from open_bootloader project.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Implement ble_app_usbd_cdc_acm on NRF52840 dongle with DFU mode</title><link>https://devzone.nordicsemi.com/thread/535430?ContentTypeID=1</link><pubDate>Thu, 15 May 2025 01:37:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ea22782-aa62-412c-b870-1aed6137ba9e</guid><dc:creator>pqfranky</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;1. F&lt;span&gt;lash via nRF Connect Programmer means&amp;nbsp;that the dongle has already flash the dfu bootloader firmware(examples\dfu\open_bootloader\pca10059_usb_debug). The dongle can enter DFU mode, and can flash the built hex via the&amp;nbsp;nRF Connect Programmer, the ble_app_uart&amp;nbsp; and usbd_cdc_acm&amp;nbsp;example(after adapting) are work fine after flash. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;But&amp;nbsp;the program(ble_app_usbd_cdc_acm), only can work with no&amp;nbsp;dfu bootloader(which means that I have to erase entire chip first, than use IDE to flash the built hex via&amp;nbsp;SWD interface to run/debug the program), If the chip contain the dfu bootloader, I cannot debug or run the program(flash hex via SWD or DFU mechanism).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The attachment is the&amp;nbsp;ble_app_usbd_cdc_acm project.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ble_5F00_app_5F00_usbd_5F00_acm.rar"&gt;devzone.nordicsemi.com/.../ble_5F00_app_5F00_usbd_5F00_acm.rar&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2. The&amp;nbsp;hardware&amp;nbsp;is the &lt;a href="https://www.nordicsemi.com/Products/Development-hardware/nRF52840-Dongle"&gt;nrf52840 dongle&lt;/a&gt;, program the dongle use &lt;a href="https://www.mouser.tw/new/segger/seggerjlink/"&gt;jlink &lt;/a&gt;via SWD interface, and use &lt;a href="https://www.nordicsemi.com/Products/Development-tools/nRF-Connect-for-Desktop/Download"&gt;nRF Connect for Desktop&lt;/a&gt;&amp;#39;s Programmer APP via DFU mode.&amp;nbsp;&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: Implement ble_app_usbd_cdc_acm on NRF52840 dongle with DFU mode</title><link>https://devzone.nordicsemi.com/thread/535345?ContentTypeID=1</link><pubDate>Wed, 14 May 2025 13:23:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0372cda-3479-4eb8-b904-271b90a4ea68</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user=""]I have successfully adapting nRF5 SDK projects(ble_app_uart and usbd_cdc_acm example project) for the nRF52840 dongle by following the &lt;a href="https://devzone.nordicsemi.com/guides/short-range-guides/b/getting-started/posts/nrf52840-dongle-programming-tutorial"&gt;nRF52840 Dongle Programming Tutorial&lt;/a&gt;, and can run both projects which are flash via nRF Connect Programmer.[/quote]
&lt;p&gt;Please explain what exactly you did by saying &amp;quot;&lt;span&gt;which are flash via nRF Connect Programmer&amp;quot;&amp;nbsp;&lt;br /&gt;Flashing via NRF Connect Programmer can be both direct flashing via SWD interface and via the DFU mechanism.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
[quote user=""]I&amp;#39;m trying merge two example become&amp;nbsp;ble_app_usbd_cdc_acm, it works well, and it can&amp;nbsp;&lt;span&gt;successfully&amp;nbsp;debugging and run(without the nordic offically USB DFU bootloader).&lt;/span&gt;[/quote]
&lt;p&gt;How did you program and on which hardware did you run that firmware ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>