<?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>FOTA problems via nRF Cloud</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/95459/fota-problems-via-nrf-cloud</link><description>We use nRF9160 with our board (with Serial LTE Modem 1.9.1). We try to download SLM / Modem firmware via nRF Cloud and we ran into several problems/misunderstandings: 1) First, We cannot add any modem firmware to the bundle. We received the message that</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 16 Jan 2023 10:17:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/95459/fota-problems-via-nrf-cloud" /><item><title>RE: FOTA problems via nRF Cloud</title><link>https://devzone.nordicsemi.com/thread/404984?ContentTypeID=1</link><pubDate>Mon, 16 Jan 2023 10:17:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a71c1853-2783-48aa-a50c-7e83a44b9ccc</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Stas,&lt;/p&gt;
[quote user="Stas Jis"]What about the modem firmware?&amp;nbsp;&lt;br /&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.2.0/nrf/samples/nrf9160/http_update/full_modem_update/README.html"&gt;nRF9160: HTTP full modem &lt;/a&gt;&amp;nbsp;says that An external flash memory with minimum 4 MB of free space is required to perform a full modem update. &lt;br /&gt;But we are talking about updating through the nRF9160 DK, and we need to be able to update the modem firmware on our device.[/quote]
&lt;p&gt;Yes, 4MB is a minimum requirement. You have to consider this requirement when you design your custom device if you need the full modem firmware update function.&lt;/p&gt;
&lt;p&gt;The cbor file is used for full modem update, which is where the size limitation comes from. bin files can be used for modem firmware delta updates, which is shown here&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.2.0/nrf/samples/nrf9160/http_update/modem_delta_update/README.html"&gt;nRF9160: HTTP modem delta update — nRF Connect SDK 2.2.0 documentation (nordicsemi.com)&lt;/a&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.2.0/nrf/samples/nrf9160/http_update/modem_delta_update/README.html"&gt;nRF9160: HTTP modem delta update — nRF Connect SDK 2.2.0 documentation (nordicsemi.com)&lt;/a&gt;. You can find a previous discussion &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/79650/what-is-the-maximum-expected-file-size-of-the-modem-update-file-for-the-9160-lte-modem/330971"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user="Stas Jis"]Can we just download the .hex file (firmware) from the Broker AWS URL, or required to prepare the .bin file for it?[/quote]
&lt;p&gt;&lt;span&gt;You should use bin file for firmware upgrading with MCUBOOT, and it is always provided by NCS when you build a project using MCUBOOT.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Flash tools like JLink use Intel&amp;nbsp;&lt;/span&gt;&lt;span&gt;Hex&lt;/span&gt;&lt;span&gt;&amp;nbsp;images (.hex) instead of raw&amp;nbsp;&lt;/span&gt;&lt;span&gt;bin&lt;/span&gt;&lt;span&gt;ary images (.bin) since the former include destination address information, when you upgrade firmware with MCUBOOT, the downloading library already knows the address of the image to store, so provide the raw&amp;nbsp;&lt;span&gt;bin&lt;/span&gt;ary image is enough.&amp;nbsp;&amp;nbsp;The application raw&amp;nbsp;&lt;span&gt;bin&lt;/span&gt;ary images also have a smaller size compared with hex file which could be a merged image of several different images at different addresses, like mcuboot+tfm+application.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Charlie&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FOTA problems via nRF Cloud</title><link>https://devzone.nordicsemi.com/thread/404904?ContentTypeID=1</link><pubDate>Sun, 15 Jan 2023 14:56:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:baa5eba3-9e0c-4501-9a7f-33b3d1d4ea59</guid><dc:creator>Stas Jis</dc:creator><description>&lt;p&gt;&lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/charlie-shao"&gt;Charlie&lt;/a&gt;&lt;span&gt;,&lt;/span&gt;&lt;/p&gt;
[quote userid="93921" url="~/f/nordic-q-a/95459/fota-problems-via-nrf-cloud/403796"]You can trigger the device to download firmware generally from any remote HTTP/HTTPS file server and upgrade itself.[/quote]
&lt;p&gt;What about the modem firmware?&amp;nbsp;&lt;br /&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.2.0/nrf/samples/nrf9160/http_update/full_modem_update/README.html"&gt;nRF9160: HTTP full modem &lt;/a&gt;&amp;nbsp;says that An external flash memory with minimum 4 MB of free space is required to perform a full modem update. &lt;br /&gt;But we are talking about updating through the nRF9160 DK, and we need to be able to update the modem firmware on our device.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FOTA problems via nRF Cloud</title><link>https://devzone.nordicsemi.com/thread/404902?ContentTypeID=1</link><pubDate>Sun, 15 Jan 2023 14:14:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:290b6e77-cbb8-49a4-8c7d-fc768d9524d2</guid><dc:creator>Stas Jis</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/charlie-shao"&gt;Charlie&lt;/a&gt;,&lt;br /&gt;I wanna clarify one moment. Now for the test update, we use the Programmer from nRF Connect for Desktop.&lt;br /&gt;And there, we always used the&lt;strong&gt; .hex&lt;/strong&gt; file for updates.&lt;br /&gt;Can we just download the .hex file (firmware) from the Broker AWS URL, or required to prepare the .bin file for it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FOTA problems via nRF Cloud</title><link>https://devzone.nordicsemi.com/thread/403796?ContentTypeID=1</link><pubDate>Mon, 09 Jan 2023 10:07:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:827230bb-22c4-44c5-ac17-402664725145</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Stas,&lt;/p&gt;
&lt;p&gt;1) Only Nordic official MFW can be programmed into the nRF9160 modem, we have provided all the available MFW bundles on this page. You can create application FOTA bundle from this page. For example:&lt;/p&gt;
&lt;p&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/pastedimage1673258822965v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;2) Please test the nRF Cloud FOTA function with &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.2.0/nrf/applications/asset_tracker_v2/README.html"&gt;nRF9160: Asset Tracker v2 — nRF Connect SDK 2.2.0 documentation (nordicsemi.com)&lt;/a&gt;,&amp;nbsp;SLM does not&amp;nbsp;have the implementation to support managing FOTA tasks from the nRF Cloud side.&lt;/p&gt;
&lt;p&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/pastedimage1673258156039v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.2.0/nrf/applications/serial_lte_modem/doc/FOTA_AT_commands.html"&gt;FOTA AT commands — nRF Connect SDK 2.2.0 documentation (nordicsemi.com)&lt;/a&gt;&amp;nbsp;is not specifically related to nRF Cloud. You can trigger the device to download firmware generally from any remote HTTP/HTTPS file server and upgrade itself. The following samples explain how to use AWS to build this kind of file server and you can upload a firmware file and get the link from there.&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.2.0/nrf/samples/nrf9160/http_update/application_update/README.html"&gt;nRF9160: HTTP application update&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.2.0/nrf/samples/nrf9160/http_update/full_modem_update/README.html"&gt;nRF9160: HTTP full modem update&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.2.0/nrf/samples/nrf9160/http_update/modem_delta_update/README.html"&gt;nRF9160: HTTP modem delta update&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I did a quick test that updated the SLM application firmware to&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.2.0/nrf/samples/nrf9160/http_update/application_update/README.html"&gt;nRF9160: HTTP application update&lt;/a&gt;&amp;nbsp;firmware stored&amp;nbsp;at &amp;quot;&lt;a href="http://nrfconnectsdk.s3.eu-central-1.amazonaws.com/app_update.bin"&gt;&amp;quot;&amp;gt;nrfconnectsdk.s3.eu-central-1.amazonaws.com/app_update.bin&amp;quot;.&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Ready
AT#XFOTA=6

#XFOTA: 3,1,296820,&amp;quot;0.0.0+0&amp;quot;

OK

AT+CFUN=1

OK
AT+CFUN?

+CFUN: 1

OK
AT#XFOTA=1,&amp;quot;http://nrfconnectsdk.s3.eu-central-1.amazonaws.com/app_update.bin&amp;quot;

#XFOTA: 1,1,-118

ERROR
AT#XFOTA=1,&amp;quot;http://nrfconnectsdk.s3.eu-central-1.amazonaws.com/app_update.bin&amp;quot;

OK

#XFOTA: 1,0,1

#XFOTA: 1,0,2

#XFOTA: 1,0,3

#XFOTA: 1,0,4

#XFOTA: 1,0,5

#XFOTA: 1,0,6

#XFOTA: 1,0,7

#XFOTA: 1,0,8

#XFOTA: 1,0,9

#XFOTA: 1,0,10

#XFOTA: 1,0,11

#XFOTA: 1,0,13

#XFOTA: 1,0,14

#XFOTA: 1,0,15

#XFOTA: 1,0,16

#XFOTA: 1,0,17

#XFOTA: 1,0,18

#XFOTA: 1,0,19

#XFOTA: 1,0,20

#XFOTA: 1,0,21

#XFOTA: 1,0,22

#XFOTA: 1,0,23

#XFOTA: 1,0,25

#XFOTA: 1,0,26

#XFOTA: 1,0,27

#XFOTA: 1,0,28

#XFOTA: 1,0,29

#XFOTA: 1,0,30

#XFOTA: 1,0,31

#XFOTA: 1,0,32

#XFOTA: 1,0,33

#XFOTA: 1,0,34

#XFOTA: 1,0,35

#XFOTA: 1,0,37

#XFOTA: 1,0,38

#XFOTA: 1,0,39

#XFOTA: 1,0,40

#XFOTA: 1,0,41

#XFOTA: 1,0,42

#XFOTA: 1,0,43

#XFOTA: 1,0,44

#XFOTA: 1,0,45

#XFOTA: 1,0,46

#XFOTA: 1,0,47

#XFOTA: 1,0,49

#XFOTA: 1,0,50

#XFOTA: 1,0,51

#XFOTA: 1,0,52

#XFOTA: 1,0,53

#XFOTA: 1,0,54

#XFOTA: 1,0,55

#XFOTA: 1,0,56

#XFOTA: 1,0,57

#XFOTA: 1,0,58

#XFOTA: 1,0,59

#XFOTA: 1,0,61

#XFOTA: 1,0,62

#XFOTA: 1,0,63

#XFOTA: 1,0,64

#XFOTA: 1,0,65

#XFOTA: 1,0,66

#XFOTA: 1,0,67

#XFOTA: 1,0,68

#XFOTA: 1,0,69

#XFOTA: 1,0,70

#XFOTA: 1,0,71

#XFOTA: 1,0,73

#XFOTA: 1,0,74

#XFOTA: 1,0,75

#XFOTA: 1,0,76

#XFOTA: 1,0,77

#XFOTA: 1,0,78

#XFOTA: 1,0,79

#XFOTA: 1,0,80

#XFOTA: 1,0,81

#XFOTA: 1,0,82

#XFOTA: 1,0,83

#XFOTA: 1,0,85

#XFOTA: 1,0,86

#XFOTA: 1,0,87

#XFOTA: 1,0,88

#XFOTA: 1,0,89

#XFOTA: 1,0,90

#XFOTA: 1,0,91

#XFOTA: 1,0,92

#XFOTA: 1,0,93

#XFOTA: 1,0,94

#XFOTA: 1,0,95

#XFOTA: 1,0,96

#XFOTA: 1,0,98

#XFOTA: 1,0,99

#XFOTA: 1,0,100

#XFOTA: 4,0
AT#XRESET

OK

*** Booting Zephyr OS build v2.7.99-ncs1-17-gc3208e7ff49d  ***
Flash regions           Domain          Permissions
00 03 0x00000 0x20000   Secure          rwxl
04 31 0x20000 0x100000  Non-Secure      rwxl

Non-secure callable region 0 placed in flash region 3 with size 32.

SRAM region             Domain          Permissions
00 03 0x00000 0x08000   Secure          rwxl
04 31 0x08000 0x40000   Non-Secure      rwxl

Peripheral              Domain          Status
00 NRF_P0               Non-Secure      OK
01 NRF_CLOCK            Non-Secure      OK
02 NRF_RTC0             Non-Secure      OK
03 NRF_RTC1             Non-Secure      OK
04 NRF_NVMC             Non-Secure      OK
05 NRF_UARTE1           Non-Secure      OK
06 NRF_UARTE2           Secure          SKIP
07 NRF_TWIM2            Non-Secure      OK
08 NRF_SPIM3            Non-Secure      OK
09 NRF_TIMER0           Non-Secure      OK
10 NRF_TIMER1           Non-Secure      OK
11 NRF_TIMER2           Non-Secure      OK
12 NRF_SAADC            Non-Secure      OK
13 NRF_PWM0             Non-Secure      OK
14 NRF_PWM1             Non-Secure      OK
15 NRF_PWM2             Non-Secure      OK
16 NRF_PWM3             Non-Secure      OK
17 NRF_WDT              Non-Secure      OK
18 NRF_IPC              Non-Secure      OK
19 NRF_VMC              Non-Secure      OK
20 NRF_FPU              Non-Secure      OK
21 NRF_EGU0             Non-Secure      OK
22 NRF_EGU1             Non-Secure      OK
23 NRF_EGU2             Non-Secure      OK
24 NRF_EGU3             Non-Secure      OK
25 NRF_EGU4             Non-Secure      OK
26 NRF_EGU5             Non-Secure      OK
27 NRF_DPPIC            Non-Secure      OK
28 NRF_REGULATORS       Non-Secure      OK
29 NRF_PDM              Non-Secure      OK
30 NRF_I2S              Non-Secure      OK
31 NRF_GPIOTE1          Non-Secure      OK

SPM: NS image at 0x20200
SPM: NS MSP at 0x200130a8
SPM: NS reset vector at 0x25ed9
SPM: prepare to jump to Non-Secure image.
*** Booting Zephyr OS build v2.7.99-ncs1-17-gc3208e7ff49d  ***
HTTP application update sample started
Using version 2


uart:~$ LTE Link Connecting ...
LTE Link Connected!
Press Button 1 or enter &amp;#39;download&amp;#39; to download firmware update&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>