<?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>Error when trying to use nrfutil pkg generate</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/112282/error-when-trying-to-use-nrfutil-pkg-generate</link><description>while trying to package my hex file from zephyr and I have gotten the following error 
 nrfutil pkg generate --hw-version 52 --sd-req=0x00 \ 
 --application build/zephyr/zephyr.hex \ 
 --application-version 1 blinky.zip 
 
 |=========================</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 26 Jun 2024 21:51:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/112282/error-when-trying-to-use-nrfutil-pkg-generate" /><item><title>RE: Error when trying to use nrfutil pkg generate</title><link>https://devzone.nordicsemi.com/thread/490958?ContentTypeID=1</link><pubDate>Wed, 26 Jun 2024 21:51:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a8570b7-740a-4525-bfe5-bed3af8c3c1c</guid><dc:creator>Edvin</dc:creator><description>[quote user="melta101"]The kind of bootloader, I am looking for is it application to flash on the board without any external intervention from the physical world(such as button click)[/quote]
&lt;p&gt;And how do you want to transfer the new application? Through USB? Through BLE (via mobile phone)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error when trying to use nrfutil pkg generate</title><link>https://devzone.nordicsemi.com/thread/490658?ContentTypeID=1</link><pubDate>Tue, 25 Jun 2024 13:08:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19f0f17b-1b5f-486a-bc26-44986486ecd1</guid><dc:creator>melta101</dc:creator><description>&lt;p&gt;Oh, this has given me good understanding!&lt;br /&gt;&lt;br /&gt;The kind of bootloader, I am looking for is it application to flash on the board without any external intervention from the physical world(such as button click)&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error when trying to use nrfutil pkg generate</title><link>https://devzone.nordicsemi.com/thread/490644?ContentTypeID=1</link><pubDate>Tue, 25 Jun 2024 12:46:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc45d9b5-1fa0-47ff-920e-45a12e75ff98</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;There is no such thing as MCUBOOT in the nRF5 SDK. The MCUBOOT bootloader was introduced with NCS.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Indeed, there is something called buttonless DFU in the nRF5 SDK. This is a BLE service that tells the nRF to enter DFU mode. In fact, you can use any kind of event that you can grab onto from the application to enter DFU mode. It can be a buttonpress, a particular BLE event (which is the case in the buttonless DFU example), it can be a particular UART or USB message.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;But please note that this is not the bootloader that is pre-programmed onto the nRF52840 dongle. If you want this kind of bootloader, you need to use an external programmer to re-program the nRF52dongle. Please see &lt;a href="https://devzone.nordicsemi.com/guides/short-range-guides/b/getting-started/posts/nrf52840-dongle-programming-tutorial"&gt;this blog post&lt;/a&gt;. Particularly notice the section on the REGOUT0 register.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So what kind of bootloader do you want? Do you want to be able to program it over BLE? Or via USB only?&lt;/p&gt;
&lt;p&gt;BR,&lt;br /&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error when trying to use nrfutil pkg generate</title><link>https://devzone.nordicsemi.com/thread/490595?ContentTypeID=1</link><pubDate>Tue, 25 Jun 2024 11:17:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5273caae-832b-4be3-8dd6-52cca63e8efb</guid><dc:creator>melta101</dc:creator><description>&lt;p&gt;Hello Edwin,&lt;br /&gt;Thank you for your response,&lt;br /&gt;but the problems is we require a small form factor + only BLE and USB which led us to the dongle,&lt;br /&gt;As of the moment, the firmware is no big of problem,&lt;br /&gt;&lt;br /&gt;The problem is with the nRF Connect, as is that it&amp;#39;s interaction based, we require a CLI, no interaction based flashing solution&amp;nbsp;for our deployment. Could you give any methods go forward with this?&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;And related to the question of MCUBOOT, I remember seeing buttonless DFU using MCUBOOT on the nRF5 SDK,&lt;br /&gt;are the same available in the NCS?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error when trying to use nrfutil pkg generate</title><link>https://devzone.nordicsemi.com/thread/490004?ContentTypeID=1</link><pubDate>Fri, 21 Jun 2024 14:14:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:370cbe7b-3b99-4477-8853-f97a56f0dd44</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Ok, I understand.&lt;/p&gt;
&lt;p&gt;the nRF52840 dongle is pre-programmed with a serial bootloader, because it doesn&amp;#39;t have a bootloader.&lt;/p&gt;
&lt;p&gt;However, to update the FW on the dongle, the intention is to use &lt;a href="https://www.nordicsemi.com/Products/Development-tools/nRF-Connect-for-Desktop"&gt;nRF Connect for Desktop&lt;/a&gt; - Programmer app. The dongle, however does require you to interfere with the dongle to put it back in DFU mode. Both the nRF5 SDK bootloader and the MCUBOOT bootloader are capable of doing this without interfering with the device, but not the particular bootloader that is preprogrammed into that dongle. If you want to change the pre-programmed bootloader on the dongle, you still need an eternal programmer to do so.&lt;/p&gt;
&lt;p&gt;Either way, the dongle is not intended for app development. It is meant as a companion tool. For app development, I suggest that you get hold of a proper development kit of some sort (nRF52840 DK). This has a built in/on board debugger, which makes development much easier. And if you intend to use the nRF Connect SDK (NCS, based on Zephyr), then you should use the mcuboot bootloader.&lt;/p&gt;
&lt;p&gt;You can however, build a sample in NCS, and program it to the dongle using nRF Connect for Desktop -&amp;gt; programmer. But that will be over serial, and you need to put the dongle in DFU mode by pressing the reset button (not the big button, but the small one next to it, going sideways).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error when trying to use nrfutil pkg generate</title><link>https://devzone.nordicsemi.com/thread/489852?ContentTypeID=1</link><pubDate>Fri, 21 Jun 2024 07:08:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4c51117-f8b2-4d01-bbb2-16dc82b783c1</guid><dc:creator>melta101</dc:creator><description>&lt;p&gt;Actually,&lt;br /&gt;I have been following the Zephyr Documentation,(&lt;a href="https://docs.zephyrproject.org/latest/boards/nordic/nrf52840dongle/doc/index.html"&gt;https://docs.zephyrproject.org/latest/boards/nordic/nrf52840dongle/doc/index.html&lt;/a&gt;)&lt;br /&gt;where it written that t&lt;span&gt;he board is factory-programmed with Nordic&amp;rsquo;s bootloader from Nordic&amp;rsquo;s nRF5 SDK, such that we would need to use nrfutil,&lt;br /&gt;if there are other tools which would help other than MCUBOOT, nrfutil to help in flashing, could you suggest that&lt;br /&gt;&lt;br /&gt;The problem with MCUBOOT is the need of manual intervention, I had seen the nrf5 sdk has a way to do buttonless DFU, are there such way to do in nrfconnect SDK, if yes, could you lead to towards those resources and samples.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error when trying to use nrfutil pkg generate</title><link>https://devzone.nordicsemi.com/thread/489753?ContentTypeID=1</link><pubDate>Thu, 20 Jun 2024 12:52:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61501543-aee2-4aee-8995-f74c9d42be45</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The nrfutil pkg generate is a command used in the &amp;quot;old&amp;quot;/&amp;quot;Legacy&amp;quot; nRF5 SDK, and not in Zephyr. Are you intentionally using this with a Zephyr/NCS application? It will not work out of the box, although I do believe some customers have made it work.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Perhaps what you are looking for is the MCUBOOT bootloader in NCS? I believe the &lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/"&gt;Nordic Developer Academy course nRF Connect SDK Intermediate&lt;/a&gt;&amp;nbsp;covers this quite good.&lt;/p&gt;
&lt;p&gt;If you are intentionally trying to use the nRF5 SDK bootloader? If so, I believe I need some more details on what you are trying to do.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>