<?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>aws transport for dfu</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/118464/aws-transport-for-dfu</link><description>I currently have a board using a nrf52840 that has a reliable connection to AWS via a Quectel BG95. 
 I have DFU implemented and working via Bluetooth with config settings 
 CONFIG_BOOTLOADER_MCUBOOT=y 
 CONFIG_NCS_SAMPLE_MCUMGR_BT_OTA_DFU=y 
 
 CONFIG_NCS_SAMPLE_MCUMGR_BT_OTA_DFU_SPEEDUP</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 18 Mar 2025 13:52:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/118464/aws-transport-for-dfu" /><item><title>RE: aws transport for dfu</title><link>https://devzone.nordicsemi.com/thread/527862?ContentTypeID=1</link><pubDate>Tue, 18 Mar 2025 13:52:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3fc28bf-a0fe-4ee0-b9a6-9f560a6be3e0</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Apologies for the delayed response. I was on business travel last week.&lt;/p&gt;
&lt;p&gt;I see you&amp;#39;ve made some progress and you state that you&amp;#39;ve solved the signing issue. Did this conclude the case for you?&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: aws transport for dfu</title><link>https://devzone.nordicsemi.com/thread/526728?ContentTypeID=1</link><pubDate>Tue, 11 Mar 2025 11:12:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6b00e33-953a-4cf2-a181-fab85220cc2b</guid><dc:creator>KentOverton</dc:creator><description>&lt;p&gt;I&amp;#39;ve ssolved the signing problem.&lt;/p&gt;
&lt;p&gt;I removed the&amp;nbsp;&lt;span&gt;CONFIG_BOOT_SIGNATURE_KEY_FILE from prj.conf.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I generated a new key using&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;openssl ecparam -name prime256v1 -genkey -noout -out priv.pem&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I moved the new key to&amp;nbsp;&amp;quot;C:\Users\kover\HomeSmart\VScode\KEYS\privatekey.pem&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I added&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;set&lt;/span&gt;&lt;span&gt;(BOOT_SIGNATURE_KEY_FILE &amp;nbsp;C:/Users/kover/HomeSmart/VScode/KEYS/privatekey.pem) &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;to CMakeLists.txt&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: aws transport for dfu</title><link>https://devzone.nordicsemi.com/thread/526632?ContentTypeID=1</link><pubDate>Mon, 10 Mar 2025 17:31:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe8af558-81ad-45e6-844b-d0da4e88ae24</guid><dc:creator>KentOverton</dc:creator><description>&lt;p&gt;I&amp;#39;ve made some progress.&lt;/p&gt;
&lt;p&gt;The firmware I want to install is app_update.bin (stored in build/zephyr after a successful build)&lt;/p&gt;
&lt;p&gt;I have built and fully tested firmware and associated server software that will reliably download the app_update.bin from the AWS cloud to my board&lt;/p&gt;
&lt;p&gt;It looks like the DFU Target library is perfect for what I want to do - which is&lt;/p&gt;
&lt;p&gt;1. initialize the target (dfu_target_init())&lt;/p&gt;
&lt;p&gt;2. Download my fiemware - using dfu_target_write() to move each block of downloaded data into the mcu_boot_secondary partition.&lt;/p&gt;
&lt;p&gt;3. finalize the download with dfu_target_done.&lt;/p&gt;
&lt;p&gt;4. Stage the update with dfu_target_schefule_update().&lt;/p&gt;
&lt;p&gt;5. Reboot&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve modified my build to use static partitions (I copied build/partitions.yml to pm_static.yml)&lt;/p&gt;
&lt;p&gt;Currenty my prj.conf has&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_BOOT_SIGNATURE_KEY_FILE&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&amp;quot;C:\\Users\\kover\\HomeSmart\\VScod\\RSAKEYS\\privatekey.pem&amp;quot;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_FLASH&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_IMG_MANAGER&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_STREAM_FLASH&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_STREAM_FLASH_ERASE&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_FLASH_MAP&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_IMG_ERASE_PROGRESSIVELY&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_DFU_TARGET&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_DFU_TARGET_MCUBOOT&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_BOOTLOADER_MCUBOOT&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_MCUBOOT_IMG_MANAGER&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;I currently have two issues. &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;1. I want to properly sign the firmware/mcu boot with a private key using&amp;nbsp; CONFIG_BOOT_SIGNATURE_KEY_FILE&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;When I do a pristine build i get&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_BOOT_SIGNATURE_KEY_FILE couldn&amp;#39;t be set. Missing dependencies:&lt;br /&gt;!MCUBOOT_BUILD_STRATEGY_FROM_SOURCE&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;In the Build Problems.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Note thaat I&amp;#39;ve tried adding&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_MCUBOOT_BUILD_STRATEGY_FROM_SOURCE&lt;/span&gt;&lt;span&gt;=n&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;to prj.conf, but I get the same warning.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;2. When my application tries to init the DFU target with&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;i&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;dfu_target_init&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;DFU_TARGET_IMAGE_TYPE_ANY_APPLICATION&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt;0&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt;filesize&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;span&gt;&amp;amp;&lt;/span&gt;&lt;span&gt;target_cb&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;-19 (-NO SUCH DEVICE) is returned.&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Any help you can give me woud be greatly appreciatted.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: aws transport for dfu</title><link>https://devzone.nordicsemi.com/thread/520720?ContentTypeID=1</link><pubDate>Thu, 30 Jan 2025 13:31:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a45939be-5ef1-4b51-adeb-8e32b3db33a7</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not certain how the module you refer to work, but here&amp;#39;s a couple of resources that might get you started anyways:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/net/aws_iot/README.html#aws-iot"&gt;https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/net/aws_iot/README.html#aws-iot&lt;/a&gt;&amp;nbsp;with focus on&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/libraries/networking/aws_iot.html#aws_fota"&gt;the fota section&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If this does not help, then in short terms: If you have set up your device with MCUboot, a primary application slot and a secondary application slot, you should be able to&amp;nbsp;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Enter bootloader mode&lt;/li&gt;
&lt;li&gt;Receive the update image over AWS through the Quectel and write the image to the secondary application slot (on either external flash with communication to the nRF52840 for instance).&lt;/li&gt;
&lt;li&gt;When the image is received, MCUboot tests and verifies the image and confirms it for swap at first reset of the device&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Let me know if this is enough to get you started&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>