<?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>Assistance Requested for OTA Configuration on nRF7002DK with Memfault Integration</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/107002/assistance-requested-for-ota-configuration-on-nrf7002dk-with-memfault-integration</link><description>Dear Nordic Support Team, 
 I am currently working on a project involving Over-the-Air (OTA) firmware updates using the Memfault platform with a Nordic sample application. While I can download new firmware using the shell, I&amp;#39;m encountering difficulties</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 10 Jan 2024 13:39:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/107002/assistance-requested-for-ota-configuration-on-nrf7002dk-with-memfault-integration" /><item><title>RE: Assistance Requested for OTA Configuration on nRF7002DK with Memfault Integration</title><link>https://devzone.nordicsemi.com/thread/463566?ContentTypeID=1</link><pubDate>Wed, 10 Jan 2024 13:39:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57417ac5-ace5-4094-a13d-3eb90535f308</guid><dc:creator>Actif</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m leaving this comment as a reference for anyone who might encounter similar needs in the future. Initially, I must express my appreciation for the exceptional service provided by Memfault. Their support throughout the entire process was outstanding.&lt;/p&gt;
&lt;p&gt;It&amp;#39;s important to ensure that your NCS (Nordic Connect SDK) version is compatible with Memfault SDK tag versions of 1.6.0 or higher. This is crucial because critical fixes were implemented starting from version 1.6.0, enabling seamless integration and functionality. For my project, I successfully used NCS version 2.5.1 and a homemade fork of the &lt;span&gt;Memfault SDK to apply the fixes since the release was not yet there&lt;/span&gt;.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Start from the default &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/debug/memfault/README.html"&gt;memfault sample&lt;/a&gt;&amp;nbsp;.&lt;/li&gt;
&lt;li&gt;Add the wi-fi credential support to your proj.conf:&lt;/li&gt;
&lt;/ul&gt;
&lt;p style="padding-left:60px;"&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;# WiFi credentials
CONFIG_WIFI_CREDENTIALS=y
CONFIG_WIFI_CREDENTIALS_BACKEND_SETTINGS=y
CONFIG_WIFI_CREDENTIALS_STATIC=y
CONFIG_WIFI_CREDENTIALS_STATIC_SSID=&amp;quot;ORBI70&amp;quot;
CONFIG_WIFI_CREDENTIALS_STATIC_PASSWORD=&amp;quot;REDACED&amp;quot;&lt;/pre&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Add the support for the FOTA&amp;nbsp;to your proj.conf&lt;/li&gt;
&lt;/ul&gt;
&lt;p style="padding-left:60px;"&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;##
# FOTA Support
CONFIG_SPI=y
CONFIG_SPI_NOR=y
CONFIG_SPI_NOR_SFDP_DEVICETREE=y
CONFIG_PM_OVERRIDE_EXTERNAL_DRIVER_CHECK=y

CONFIG_BOOTLOADER_MCUBOOT=y
CONFIG_MCUBOOT_IMG_MANAGER=y

CONFIG_IMG_MANAGER=y
CONFIG_STREAM_FLASH=y
CONFIG_IMG_ERASE_PROGRESSIVELY=y

CONFIG_FOTA_DOWNLOAD=y
CONFIG_DFU_TARGET=y

CONFIG_DOWNLOAD_CLIENT=y
CONFIG_DOWNLOAD_CLIENT_STACK_SIZE=4096

CONFIG_MEMFAULT_NRF_CONNECT_SDK=y
CONFIG_MEMFAULT_FOTA=y
CONFIG_DOWNLOAD_CLIENT_MAX_FILENAME_SIZE=400

# Print download progress to console
CONFIG_FOTA_DOWNLOAD_PROGRESS_EVT=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Enable the device tree to be aware of the external flash by creating&amp;nbsp;the following file:&amp;nbsp;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;em&gt;&lt;strong&gt;&lt;span&gt;samples/debug/memfault/boards/nrf7002dk_nrf5340_cpuapp.overlay&lt;/span&gt;&lt;/strong&gt;&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p style="padding-left:60px;"&gt;&lt;em&gt;&lt;strong&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;# file samples/debug/memfault/boards/nrf7002dk_nrf5340_cpuapp.overlay

/ {
	/* Configure the partition manager to use the mx25r64 external flash memory. */
	chosen {
		nordic,pm-ext-flash = &amp;amp;mx25r64;
	};
};

&amp;amp;mx25r64 {
	status = &amp;quot;okay&amp;quot;;
};&lt;/pre&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Enable your build process to have multiple images; let&amp;#39;s create the MCU boot image.
&lt;ul&gt;
&lt;li&gt;Add the following file for generic configuration.&lt;/li&gt;
&lt;li&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;# file: samples/debug/memfault/child_image/mcuboot.conf

# General MCUboot image configurations for all boards.

# Disable serial output
CONFIG_SERIAL=n
CONFIG_UART_CONSOLE=n&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;Add specific board config&lt;/li&gt;
&lt;li&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt; # file: samples/debug/memfault/child_image/mcuboot/boards/nrf7002dk_nrf5340_cpuapp.conf

# MCUboot configurations to host the secondary image slot on the mx25r64 external flash memory.

# General
CONFIG_FLASH=y
CONFIG_MULTITHREADING=y
CONFIG_MAIN_STACK_SIZE=4096

# Serial Peripheral Interface (SPI)
CONFIG_SPI=y
CONFIG_SPI_NOR=y
CONFIG_SPI_NOR_SFDP_DEVICETREE=y
CONFIG_SPI_NOR_FLASH_LAYOUT_PAGE_SIZE=4096

# MCUBoot and Partition Manager
CONFIG_PM_OVERRIDE_EXTERNAL_DRIVER_CHECK=y
CONFIG_PM_PARTITION_SIZE_MCUBOOT=0x10000
CONFIG_BOOT_MAX_IMG_SECTORS=256
CONFIG_BOOT_ERASE_PROGRESSIVELY=y
CONFIG_SOC_FLASH_NRF_EMULATE_ONE_BYTE_WRITE_ACCESS=y

# Use minimal C library instead of the Picolib
CONFIG_MINIMAL_LIBC=y&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;Add specific board device tree config&lt;/li&gt;
&lt;li&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;# file: samples/debug/memfault/child_image/mcuboot/boards/nrf7002dk_nrf5340_cpuapp.overlay

/ {
	/* Configure the partition manager to use the mx25r64 external flash memory. */
	chosen {
		nordic,pm-ext-flash = &amp;amp;mx25r64;
	};
};&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;Following memfault documentation should be straightforward for how to do an OTA.&lt;/li&gt;
&lt;li&gt;The shell command to trigger it will be&amp;nbsp;
&lt;pre&gt;&lt;em&gt;&lt;strong&gt;mflt_nrf fota&lt;/strong&gt;&lt;/em&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Be sure to upload the following build&amp;nbsp;&lt;span style="font-weight:bold;"&gt;build/zephyr/app_update.bin&amp;nbsp;&lt;/span&gt;The&lt;i&gt;&amp;nbsp;&lt;/i&gt;&lt;span style="font-weight:bold;"&gt;&lt;code style="font-style:italic;"&gt;zephyr.bin&lt;/code&gt;&lt;span style="font-style:italic;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-style:italic;"&gt;f&lt;/span&gt;ile is intended for flashing directly, so it doesn&amp;#39;t have the image header pre-pended.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Don&amp;#39;t hesitate to ask if you have questions, and if you need help, the &lt;a href="https://interrupt-slack.herokuapp.com/"&gt;Slack community of memfault &lt;/a&gt;is there for you.&lt;br /&gt;&lt;br /&gt;Cheers all.&lt;br /&gt;&lt;br /&gt;Vincent&lt;br /&gt;Actif&lt;/p&gt;
&lt;p&gt;EDIT: I (Sigurd) took the liberty to edit this answer to redact the Wi-Fi password&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Assistance Requested for OTA Configuration on nRF7002DK with Memfault Integration</title><link>https://devzone.nordicsemi.com/thread/462727?ContentTypeID=1</link><pubDate>Thu, 04 Jan 2024 14:38:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ccb18cb-90dc-474d-841d-54f046ee051a</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;I see that you are already getting help testing Azure FOTA as standalone in&amp;nbsp; &amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/106761/need-help-with-fota-via-device-provisioning-on-my-nrf7002dk---azure-fota---iot-hub"&gt;NEED HELP WITH FOTA VIA DEVICE PROVISIONING ON MY NRF7002DK - AZURE FOTA - IOT HUB&lt;/a&gt;&amp;nbsp; on-my-nrf7002dk---azure-fota---iot-hub.&lt;/p&gt;
&lt;p&gt;When you are able to make it work without Memfault there, we can go on with this ticket on integrating memfault. Since Jan Tore was able to make the sample work in that case, I may not finish the testing on my side here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Assistance Requested for OTA Configuration on nRF7002DK with Memfault Integration</title><link>https://devzone.nordicsemi.com/thread/462587?ContentTypeID=1</link><pubDate>Wed, 03 Jan 2024 17:19:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd3353c7-6faf-4485-9101-be34e496ce64</guid><dc:creator>Actif</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;/p&gt;
&lt;p&gt;Thank you for your prompt response and commitment to addressing our concerns. We highly appreciate your willingness to personally test the Azure IoT sample with DFU for the nRF7002DK, and we understand that timelines cannot be guaranteed. Your proactive approach gives us hope for a timely resolution.&lt;/p&gt;
&lt;p&gt;We have an open ticket detailing our struggles: &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/106857/azure-iot-hub-sample-integration-of-dps-and-fota-not-working" target="_new"&gt;Azure IoT Hub sample integration of DPS and FOTA not working&lt;/a&gt;. We welcome your expertise on this ticket and any documentation or insights you can provide there would be greatly beneficial to not only us but also the wider community.&lt;/p&gt;
&lt;p&gt;Our primary challenge is understanding the complete architecture and deployment process involving DPS, IoT Hub, and FOTA. Specifically, we need clarity on where the device firmware is deployed and the configurations used within the Azure portal to achieve a successful FOTA implementation.&lt;/p&gt;
&lt;p&gt;Additionally, a clear explanation of DFU processes and a deeper understanding of flash partitioning (both internal and external) would enable us to integrate with the Memfault sample effectively. This knowledge is crucial for us to replicate the process and provide a comprehensive solution on the mentioned thread and the Memfault forum.&lt;/p&gt;
&lt;p&gt;Your assistance in these areas will not only help us resolve our current hurdles but also contribute significantly to our ongoing project development. We look forward to your updates and are eager to collaborate closely to find a viable solution.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Vincent&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Assistance Requested for OTA Configuration on nRF7002DK with Memfault Integration</title><link>https://devzone.nordicsemi.com/thread/462584?ContentTypeID=1</link><pubDate>Wed, 03 Jan 2024 17:07:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6efd0eb-2442-429e-b3d6-081478c59944</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;I will test the Azure IoT sample with DFU for&amp;nbsp; the nRF7002DK myself. &lt;br /&gt;If I am not able to make it work, I will get help from our experts and developers in Nordic until I get it to work.&lt;br /&gt;I am not able to give any timelines for how long this will take, but I hope it will not take too long.&lt;/p&gt;
&lt;p&gt;I were able to make the AWS IoT sample work for the nRF7002DK a couple of months ago, for what it&amp;#39;s worth&lt;/p&gt;
&lt;p&gt;Does that sound good to you?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Assistance Requested for OTA Configuration on nRF7002DK with Memfault Integration</title><link>https://devzone.nordicsemi.com/thread/462562?ContentTypeID=1</link><pubDate>Wed, 03 Jan 2024 15:16:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6af819e4-8040-4272-850e-3ce01b066eb8</guid><dc:creator>Actif</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi Sigurd,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you for your reply.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;For months, we have been working on making the networking sample for the nRF7002DK work with Azure IoT Hub + FOTA + DPS. Unfortunately, we have not received good support from Nordic yet. We have reached the critical limit on our risk assessment for this project and need a real solution to our problem. We have been referred to other samples and documentation, but we have not been able to make our solution work with the provided materials. That&amp;#39;s why we are seeking help here.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Could you please assign an engineer to this ticket who can focus on resolving our request for a complete walk-through of the configuration needed to make it work from your memfault sample? We are thankful for all the replies we&amp;#39;ve received so far, but ultimately we are looking for a solution that works.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Vincent&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Assistance Requested for OTA Configuration on nRF7002DK with Memfault Integration</title><link>https://devzone.nordicsemi.com/thread/462245?ContentTypeID=1</link><pubDate>Tue, 02 Jan 2024 10:35:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b6215e2-a968-4152-9ddf-9f2b88aae0f6</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;We do not yet have comprehensive documentation on how to do DFU over Wi-Fi, unfortunately. I have forwarded your feedback on this, but I would guess we already have plans to document this somewhere down the road.&lt;/p&gt;
&lt;p&gt;Anyhow, FOTA over Wi-Fi is already supported in our Azure IoT Hub and AWS IoT &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/net.html"&gt;networking samples&lt;/a&gt;. Since the DFU for nRF7002 just uses IP, it should in theory be similar to the nRF9160 DFU. &lt;br /&gt;I suggest that you try to implement it, and then ask for help if you are not able to make it work.&lt;/p&gt;
[quote user=""] especially regarding the use of internal vs. external flash memory for secondary image slots.[/quote]
&lt;p&gt;The networking samples listed above add configurations to enable external flash for over SPI for the nRF7002DK I think. You can learn how to do it from them, and ask me if anything is unclear.&lt;/p&gt;
&lt;p&gt;Did I answer your question?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>