<?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>nRF52840 Dongle, PCA10059 DFU Trigger library</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/77254/nrf52840-dongle-pca10059-dfu-trigger-library</link><description>Hello I&amp;#39;m trying to implement the DFU Trigger library into my project. to get following function: 
 &amp;quot; When the trigger library is added to an application, it allows a connected USB host to remotely tell the app to reboot into the bootloader to allow it</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 28 Oct 2021 13:25:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/77254/nrf52840-dongle-pca10059-dfu-trigger-library" /><item><title>RE: nRF52840 Dongle, PCA10059 DFU Trigger library</title><link>https://devzone.nordicsemi.com/thread/336506?ContentTypeID=1</link><pubDate>Thu, 28 Oct 2021 13:25:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3484929d-d8c4-42d6-aac9-bb379184d91d</guid><dc:creator>brianreinhold</dc:creator><description>&lt;p&gt;I have been unable to get it to work. I have managed to include all the h-files and c-files to allow the single nrf_dfu_trigger_usb_init() to be supported. So I can build and install my app and the app runs, but I get the error&amp;nbsp;&lt;span&gt;Nordic DFU Trigger Interface was not found.Please physically reset device after programming with NRF Connect.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;However, there are all kinds of unknowns in the sdk_config.h file. I am not sure if I have enabled everything that needs to be enabled and configured everything correctly. My app does not use USB so I assumed that the SHARE option should be off. That drops the interface I believe. But that may not be the only thing. So I am still at quite a loss and there is no documentation for this trigger relative to all the settings and how they influence it.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 Dongle, PCA10059 DFU Trigger library</title><link>https://devzone.nordicsemi.com/thread/332458?ContentTypeID=1</link><pubDate>Tue, 05 Oct 2021 05:59:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0743725-851c-408f-b961-b1ad7a977098</guid><dc:creator>Uyl</dc:creator><description>&lt;p&gt;Hello Brian&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I couldn&amp;#39;t find a trigger library either and i dont use Bluetooth. I had some little success with following setup:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;1. Change some values in following config files:&lt;/p&gt;
&lt;p&gt;&lt;span class="line" id="LC1" lang="plaintext"&gt;ot-nrf528xx/third_party/NordicSemiconductor/config&lt;/span&gt; &lt;span class="line" id="LC2" lang="plaintext"&gt;- app_config.h&lt;/span&gt; &lt;span class="line" lang="plaintext"&gt;- sdk_config.h&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h2 id="mcetoc_1fh7frmos0" dir="auto"&gt;&lt;span style="font-size:inherit;"&gt;app_config.h&lt;/span&gt;&lt;/h2&gt;
&lt;pre class="code highlight js-syntax-highlight language-plaintext white" lang="plaintext"&gt;&lt;code&gt;&lt;span class="line" id="LC1" lang="plaintext"&gt;#ifndef APP_USBD_PID&lt;/span&gt;
&lt;span class="line" id="LC2" lang="plaintext"&gt;#define APP_USBD_PID 0x0C00A&lt;/span&gt;
&lt;span class="line" id="LC3" lang="plaintext"&gt;endif&lt;/span&gt;
&lt;span class="line" id="LC4" lang="plaintext"&gt;&lt;/span&gt;
&lt;span class="line" id="LC5" lang="plaintext"&gt;#ifndef APP_USBD_NRF_DFU_TRIGGER_ENABLED&lt;/span&gt;
&lt;span class="line" id="LC6" lang="plaintext"&gt;#define APP_USBD_NRF_DFU_TRIGGER_ENABLED 1&lt;/span&gt;
&lt;span class="line" id="LC7" lang="plaintext"&gt;#endif&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id="mcetoc_1fh7fsmik3" dir="auto"&gt;nrf52840/sdk_config.h&lt;/h2&gt;
&lt;pre class="code highlight js-syntax-highlight language-plaintext white" lang="plaintext"&gt;&lt;code&gt;&lt;span class="line" id="LC1" lang="plaintext"&gt;#ifndef APP_USBD_ENABLED&lt;/span&gt;
&lt;span class="line" id="LC2" lang="plaintext"&gt;#define APP_USBD_ENABLED 1&lt;/span&gt;
&lt;span class="line" id="LC3" lang="plaintext"&gt;#endif&lt;/span&gt;
&lt;span class="line" id="LC4" lang="plaintext"&gt;&lt;/span&gt;
&lt;span class="line" id="LC5" lang="plaintext"&gt;#ifndef APP_USBD_CONFIG_SELF_POWERED&lt;/span&gt;
&lt;span class="line" id="LC6" lang="plaintext"&gt;#define APP_USBD_CONFIG_SELF_POWERED 0&lt;/span&gt;
&lt;span class="line" id="LC7" lang="plaintext"&gt;#endif&lt;/span&gt;
&lt;span class="line" id="LC8" lang="plaintext"&gt;&lt;/span&gt;
&lt;span class="line" id="LC9" lang="plaintext"&gt;#ifndef APP_USBD_CDC_ACM_ENABLED&lt;/span&gt;
&lt;span class="line" id="LC10" lang="plaintext"&gt;#define APP_USBD_CDC_ACM_ENABLED 1&lt;/span&gt;
&lt;span class="line" id="LC11" lang="plaintext"&gt;#endif&lt;/span&gt;
&lt;span class="line" id="LC12" lang="plaintext"&gt;&lt;/span&gt;
&lt;span class="line" id="LC13" lang="plaintext"&gt;#ifndef APP_USBD_NRF_DFU_TRIGGER_CONFIG_LOG_ENABLED&lt;/span&gt;
&lt;span class="line" id="LC14" lang="plaintext"&gt;#define APP_USBD_NRF_DFU_TRIGGER_CONFIG_LOG_ENABLED 1&lt;/span&gt;
&lt;span class="line" id="LC15" lang="plaintext"&gt;#endif&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span class="line" id="LC3" lang="plaintext"&gt;&lt;br /&gt;2. Build and generate hex file with these settings&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="line" lang="plaintext"&gt;&lt;code&gt;$ ./script/build nrf52840 USB_trans -DOT_BOOTLOADER=USB -DOT_APP_CLI=ON -DOT_FTD=ON&lt;/code&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="line" lang="plaintext"&gt;&lt;code&gt;$ arm-none-eabi-objcopy -O ihex build/bin/ot-cli-ftd ot-cli-ftd.hex&lt;/code&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="line" lang="plaintext"&gt;&lt;code&gt;&lt;/code&gt;&lt;code&gt;3. Flash with Nrf Desktop connect or with nrfutil&lt;/code&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="line" lang="plaintext"&gt;&lt;code&gt;nrfutil:&lt;/code&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="line" lang="plaintext"&gt;3.1. Generate &lt;code&gt;.pkg&lt;/code&gt; file from &lt;code&gt;.hex&lt;/code&gt; file. (nrfutil uses .pkg files to flash)&lt;code&gt;&lt;/code&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="line" lang="plaintext"&gt;&lt;code&gt;C:\Users\..&amp;gt; nrfutil pkg generate --debug-mode --hw-version 52 --sd-req 0x00 --application ot-cli-ftd.hex app_dfu_package.zip&lt;/code&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="line" lang="plaintext"&gt;&lt;code&gt;&lt;/code&gt;&lt;code&gt;3.2&lt;/code&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt; C:\Users\..&amp;gt; nrfutil dfu usb-serial -pkg app_dfu_package.zip -p COM8&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;The Dongle should appear as &lt;code&gt;nRF Connect USB CDC ACM (COM11)&lt;/code&gt; in device-manager. Choose this device in NRF-Connect Desktop Programmer. The RESET will be triggered and the device will be in bootloader mode.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;Let me know if it work and when you find better solutions.&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 Dongle, PCA10059 DFU Trigger library</title><link>https://devzone.nordicsemi.com/thread/332347?ContentTypeID=1</link><pubDate>Mon, 04 Oct 2021 12:31:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8966e94e-b9e6-4969-8b91-06612fb6e890</guid><dc:creator>brianreinhold</dc:creator><description>&lt;p&gt;Uyl,&lt;/p&gt;
&lt;p&gt;Did you get this to work? I am trying to do the same thing, program the nRF52840 dongle without pressing the reset button. I have dongles that are in a sealed cover and do not have access to the reset button. I don&amp;#39;t even know how to start. Where did you find the documentation to get off the ground? Maybe there isn&amp;#39;t any? I certainly have not found anything but documentation has always been difficult to find on the Nordic sites.&lt;/p&gt;
&lt;p&gt;I cannot even find the trigger library... of course I don&amp;#39;t know what it is called in the SDK or if it even exists in the SDK. My current project uses SoftDevice and BTLE. It does not use the SDK for Bluetooth; just SoftDevice.&lt;/p&gt;
&lt;p&gt;I guess it does not exist in the SDK in any obvious form - I tried adding&amp;nbsp;&lt;/p&gt;
&lt;p&gt;#include &amp;quot;nrf_dfu_trigger_usb.h&amp;quot; in an example BTLE project (BPS) and the compiler could not find the file.&lt;/p&gt;
&lt;p&gt;Did you find an example project where this is implemented?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Brian&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 Dongle, PCA10059 DFU Trigger library</title><link>https://devzone.nordicsemi.com/thread/319654?ContentTypeID=1</link><pubDate>Mon, 12 Jul 2021 15:33:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fca22afa-6d8f-4163-a3fe-255c9f997d9e</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;You need to include and set the sdk_config.h configuration parameters correctly. In this case, it looks like&amp;nbsp;&lt;span&gt;USBD_CONFIG_IRQ_PRIORITY is not defined. You can check the APP_USBD examples, and copy relevant configs for APP_USBD and USBD parts.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 Dongle, PCA10059 DFU Trigger library</title><link>https://devzone.nordicsemi.com/thread/319566?ContentTypeID=1</link><pubDate>Mon, 12 Jul 2021 11:00:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5168354-ba01-4d18-aaa4-4d0febc82235</guid><dc:creator>Uyl</dc:creator><description>&lt;p&gt;I still have following problem, do you have any ideas?&lt;/p&gt;
&lt;p&gt;/opt/gcc-arm-none-eabi-9-2020-q2-update/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld: build/nrf_dfu_trigger_usb.c.o:(.rodata.m_app_dfu+0x4): undefined reference to `app_usbd_nrf_dfu_trigger_class_methods&amp;#39;&lt;br /&gt;collect2: error: ld returned 1 exit status&lt;br /&gt;Makefile:361: recipe for target &amp;#39;build&amp;#39; failed&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And when it finaly work, how can i trigger the dongle to get into bootloader mode? I&amp;#39;m using Nrfutil and NRF connect desktop to load the firmware.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 Dongle, PCA10059 DFU Trigger library</title><link>https://devzone.nordicsemi.com/thread/319192?ContentTypeID=1</link><pubDate>Thu, 08 Jul 2021 12:58:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fecd5f0a-5faf-4d2c-a946-0f5a7b9ba0ab</guid><dc:creator>Uyl</dc:creator><description>&lt;p&gt;Hello no i have not.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve also set&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;#define&lt;/span&gt;&lt;span&gt;&amp;nbsp;APP_USBD_CONFIG_EVENT_QUEUE_ENABLE&amp;nbsp;&lt;/span&gt;&lt;span&gt;1&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;I&amp;#39;ve enabled it now and got following error:&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;In file included from ./third_party/NordicSemiconductor/components/libraries/util/sdk_macros.h:52,&lt;br /&gt; from ./third_party/NordicSemiconductor/components/libraries/util/sdk_common.h:62,&lt;br /&gt; from ./third_party/NordicSemiconductor/components/libraries/usb/app_usbd.c:40:&lt;br /&gt;./third_party/NordicSemiconductor/components/libraries/usb/app_usbd.c: In function &amp;#39;app_usbd_power_events_enable&amp;#39;:&lt;br /&gt;./third_party/NordicSemiconductor/components/libraries/usb/app_usbd.c:953:54: error: &amp;#39;USBD_CONFIG_IRQ_PRIORITY&amp;#39; undeclared (first use in this function); did you mean &amp;#39;CLOCK_CONFIG_IRQ_PRIORITY&amp;#39;?&lt;br /&gt; 953 | ASSERT((!APP_USBD_CONFIG_EVENT_QUEUE_ENABLE) || (USBD_CONFIG_IRQ_PRIORITY == POWER_CONFIG_IRQ_PRIORITY));&lt;br /&gt; | ^~~~~~~~~~~~~~~~~~~~~~~~&lt;br /&gt;./third_party/NordicSemiconductor/components/libraries/util/nrf_assert.h:106:9: note: in definition of macro &amp;#39;ASSERT&amp;#39;&lt;br /&gt; 106 | if (expr) \&lt;br /&gt; | ^~~~&lt;br /&gt;./third_party/NordicSemiconductor/components/libraries/usb/app_usbd.c:953:54: note: each undeclared identifier is reported only once for each function it appears in&lt;br /&gt; 953 | ASSERT((!APP_USBD_CONFIG_EVENT_QUEUE_ENABLE) || (USBD_CONFIG_IRQ_PRIORITY == POWER_CONFIG_IRQ_PRIORITY));&lt;br /&gt; | ^~~~~~~~~~~~~~~~~~~~~~~~&lt;br /&gt;./third_party/NordicSemiconductor/components/libraries/util/nrf_assert.h:106:9: note: in definition of macro &amp;#39;ASSERT&amp;#39;&lt;br /&gt; 106 | if (expr) \&lt;br /&gt; | ^~~~&lt;br /&gt;./third_party/NordicSemiconductor/components/libraries/usb/app_usbd.c:953:82: error: &amp;#39;POWER_CONFIG_IRQ_PRIORITY&amp;#39; undeclared (first use in this function); did you mean &amp;#39;GPIOTE_CONFIG_IRQ_PRIORITY&amp;#39;?&lt;br /&gt; 953 | ASSERT((!APP_USBD_CONFIG_EVENT_QUEUE_ENABLE) || (USBD_CONFIG_IRQ_PRIORITY == POWER_CONFIG_IRQ_PRIORITY));&lt;br /&gt; | ^~~~~~~~~~~~~~~~~~~~~~~~~&lt;br /&gt;./third_party/NordicSemiconductor/components/libraries/util/nrf_assert.h:106:9: note: in definition of macro &amp;#39;ASSERT&amp;#39;&lt;br /&gt; 106 | if (expr) \&lt;br /&gt; | ^~~~&lt;br /&gt;./third_party/NordicSemiconductor/components/libraries/usb/app_usbd.c: In function &amp;#39;app_usbd_event_execute&amp;#39;:&lt;br /&gt;./third_party/NordicSemiconductor/components/libraries/usb/app_usbd.c:1068:12: error: &amp;#39;USBD_CONFIG_IRQ_PRIORITY&amp;#39; undeclared (first use in this function); did you mean &amp;#39;CLOCK_CONFIG_IRQ_PRIORITY&amp;#39;?&lt;br /&gt; 1068 | ASSERT(USBD_CONFIG_IRQ_PRIORITY &amp;lt;= current_int_priority_get());&lt;br /&gt; | ^~~~~~~~~~~~~~~~~~~~~~~~&lt;br /&gt;./third_party/NordicSemiconductor/components/libraries/util/nrf_assert.h:106:9: note: in definition of macro &amp;#39;ASSERT&amp;#39;&lt;br /&gt; 106 | if (expr) \&lt;br /&gt; | ^~~~&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 Dongle, PCA10059 DFU Trigger library</title><link>https://devzone.nordicsemi.com/thread/319182?ContentTypeID=1</link><pubDate>Thu, 08 Jul 2021 12:45:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ac84891-3ba1-4a32-885b-0636538e6cd6</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Have you enabled app_usbd library in your sdk_config.h file?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;// &amp;lt;e&amp;gt; APP_USBD_ENABLED - app_usbd - USB Device library
//==========================================================
#ifndef APP_USBD_ENABLED
#define APP_USBD_ENABLED 1
#endif&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>