<?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>Go to bootloader on PCA10059 with CDC connectivity software (without Reset button)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/97563/go-to-bootloader-on-pca10059-with-cdc-connectivity-software-without-reset-button</link><description>I use nrfutil.exe in Windows command line with a nRF52840 PCA10059 dongle to update slaves devices in BLE. 
 To do this, I replace my proprietary firmware by the connectivity_4.1.1_usb_with_s132_5.1.0.hex program in the dongle. 
 
 All this works perfectly</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 15 Mar 2023 09:26:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/97563/go-to-bootloader-on-pca10059-with-cdc-connectivity-software-without-reset-button" /><item><title>RE: Go to bootloader on PCA10059 with CDC connectivity software (without Reset button)</title><link>https://devzone.nordicsemi.com/thread/415395?ContentTypeID=1</link><pubDate>Wed, 15 Mar 2023 09:26:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86d2b3a7-5ae3-4d11-b14a-c8d16308700a</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Gaetan,&amp;nbsp;&lt;br /&gt;It&amp;#39;s possible for the nrfutil.exe to put the application to DFU mode (I was not correct in the&amp;nbsp;previous answer). nrfutil does this automatically. But your application need to support &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/lib_dfu_trigger_usb.html?cp=9_1_3_5_3"&gt;DFU trigger protocol&lt;/a&gt; as I pointed to earlier.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;One example of a firmware that supports the protocol&amp;nbsp;is the firmware for nRF Connect for Desktop - Bluetooth Low Energy application. &lt;br /&gt;You can test this by putting the dongle to DFU mode, then open the dongle in nRF Connect for Desktop -&amp;gt; Bluetooth Low Energy application. After that Bluetooth Low Energy application&amp;nbsp;will ask to&amp;nbsp;flash the dongle with the BLE backend firmware:&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1678872114877v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;After you flash the firmware, it will run as a BLE emulator.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;At this point you can use nrfutil.exe to do a DFU and the application will automatic switch to DFU mode. You will notice that the red LED will start after you enter DFU command in nrfutil.exe&lt;br /&gt;The way it switches to DFU mode is what I described at point #1 in my last reply, by triggering a pin reset.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;So what you need to do is to implement the DFU trigger library in your application allowing it to detect the command from nrfutil.exe.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Go to bootloader on PCA10059 with CDC connectivity software (without Reset button)</title><link>https://devzone.nordicsemi.com/thread/415319?ContentTypeID=1</link><pubDate>Tue, 14 Mar 2023 17:30:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4ed08bc-5bee-413f-95a1-05a6e54e4e0a</guid><dc:creator>Ga&amp;#233;tan</dc:creator><description>&lt;p&gt;I think I wasn&amp;#39;t very clear.&lt;/p&gt;
&lt;p&gt;When the PCA10059 runs the connectivy firmware, I would like to be able to send it a new firmware via nrfutil.exe.&lt;/p&gt;
&lt;p&gt;Unfortunately, for the nrfutil.exe command to work it seems that the dongle has to be in bootloader mode (red LED).&lt;/p&gt;
&lt;p&gt;My question is: what solution can I use to force the connectivy firmware (the original one) to launch the bootloader?&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;Maybe there is a parameter to add to the nrfutil command line to force the connectivity firmware to bootloader?&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;Maybe there is a frame to send on the CDC port to force the connectrivity firmware to launch the bootloader?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Ga&amp;eacute;tan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Go to bootloader on PCA10059 with CDC connectivity software (without Reset button)</title><link>https://devzone.nordicsemi.com/thread/414897?ContentTypeID=1</link><pubDate>Mon, 13 Mar 2023 12:04:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:caf2b0ce-6f45-4a0b-aa38-7db1f19352c2</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Gaetan,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;There&amp;#39;s actually multiple option you can do to put the device to DFU mode:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;- Trigger a pin reset by using a GPIO. This is actually what we do in our PCA10059. We connect one GPIO pin (P0.19) to the reset pin on the board. In the firmware we will active this pin when we receive the command from the PC. This will trigger a pin reset and the bootloader will enter DFU mode when there is a pin reset (equivalent to press SW2 on the dongle). You can have a look at &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/lib_dfu_trigger_usb.html?cp=9_1_3_5_3"&gt;this library.&lt;/a&gt;&amp;nbsp;You can write your own library as well. Just need to have your code on the PCA10059 to toggle the GPIO pin.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;- Write to GPREGRET retention register and reset. You can write your code so that when it receive a command it will write to GPREGRET a flag and in the bootloader,&amp;nbsp;it will be checked and the bootloader will enter DFU mode. Please have a look at our &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/ble_sdk_app_buttonless_dfu.html?cp=9_1_4_2_2_6"&gt;buttonless example&lt;/a&gt;.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;The challenge here is that as far as I know nrfutil wouldn&amp;#39;t do a request to switch to DFU and expect the board in DFU bootloader. So you may need to write your own application on PC to do so and then use nrfutil to do DFU.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>