<?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>Upgrade from s140 to s340</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/111644/upgrade-from-s140-to-s340</link><description>Reference to my old work where I sucessfully upgraded an s140 based application to s340 (ANT supported) application here: 
 
 Now we have decided to change the bootloader name from simple DfuTarg to Dfu_ABCD_C where ABCD is short for the MAC address of</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 29 Nov 2024 12:47:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/111644/upgrade-from-s140-to-s340" /><item><title>RE: Upgrade from s140 to s340</title><link>https://devzone.nordicsemi.com/thread/512751?ContentTypeID=1</link><pubDate>Fri, 29 Nov 2024 12:47:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:50faa044-6000-44ea-96a0-60652d528d5c</guid><dc:creator>Aftab</dc:creator><description>&lt;p&gt;Found the solution of it by:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;First upload the modified bootloader (only) file&lt;/li&gt;
&lt;li&gt;Upload the modified bootloader + new SD + new app&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;To create new bootloader package this command is used:&amp;nbsp;nrfutil pkg generate --bootloader bootloader.hex --bootloader-version 1 --hw-version 52 --sd-req 0x00 --key-file private.pem dfu_bootloader_package.zip&lt;/p&gt;
&lt;p&gt;To create new BL+SD+APP package, this command is used:&amp;nbsp;nrfutil pkg generate --bootloader bootloader.hex --bootloader-version 2 --application app.hex --application-version 2 --application-version-string &amp;quot;1.0.0&amp;quot; --hw-version 52 --sd-req 0x00 --sd-id 0xB9 --softdevice ANT_s340_nrf52840_6.1.1.hex --key-file private.pem Converter_package.zip&lt;/p&gt;
&lt;p&gt;This process was done to convert normal BLE (SD = s140_nrf52_7.0.1_softdevice.hex) devices into ANT capable devices (SD =&amp;nbsp;&lt;span&gt;ANT_s340_nrf52840_6.1.1.hex&lt;/span&gt;).&lt;/p&gt;
&lt;p&gt;The new bootloader changes were as follows:&lt;/p&gt;
&lt;ul&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Removed the softdevice compatibility to make&amp;nbsp; s340 work&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;NRF_DFU_APP_ACCEPT_SAME_VERSION 0, to accept firmware with different version&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;NRF_DFU_APP_DOWNGRADE_PREVENTION 0 for ANT/BOOST&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;#define NRF_DFU_EXTERNAL_APP_VERSIONING 0 for ANT/BOOST&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Upgrade from s140 to s340</title><link>https://devzone.nordicsemi.com/thread/487784?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2024 14:51:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8373b543-915c-4a54-a0a0-701b66b41da7</guid><dc:creator>Aftab</dc:creator><description>[quote userid="4240" url="~/f/nordic-q-a/111644/upgrade-from-s140-to-s340/486896"]&lt;blockquote class="quote"&gt;&lt;div class="quote-user"&gt;Aftab said:&lt;/div&gt;&lt;div class="quote-content"&gt;When writing &amp;#39;CREATE&amp;#39; command to Control Point Characteristic of DFU Target: Operation code 1 (CREATE) failed on DFU Target. Result code 3 (INVALID_PARAMETER).&lt;/div&gt;&lt;/blockquote&gt;&lt;div class="quote-footer"&gt;&lt;/div&gt;
&lt;p&gt;It&amp;#39;s difficult to say as the error does not say what the parameters were. When do you experience this, and are you still using the built-in DFU library in the nRF Connect for desktop app?&lt;/p&gt;[/quote]
&lt;p&gt;It happens when I try to upload the bl+sd (340) + app bundle/zip file, here is the log:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://drive.google.com/file/d/1eJsnySkHJa9xZuJbk6xhsGh439tM3vFA/view?usp=sharing"&gt;https://drive.google.com/file/d/1eJsnySkHJa9xZuJbk6xhsGh439tM3vFA/view?usp=sharing&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Before this, I upload the modified bootloader (s140 based) zip file which uploads correctly on a non-modified s140 bootloader. I could see the modified advertising name of the device. That means the required bootloader upgrade was complete.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Upgrade from s140 to s340</title><link>https://devzone.nordicsemi.com/thread/486896?ContentTypeID=1</link><pubDate>Fri, 31 May 2024 12:17:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88dabce4-e3c8-49a8-80b8-0e88cb8b99d0</guid><dc:creator>Vidar Berg</dc:creator><description>[quote user="Aftab"]When writing &amp;#39;CREATE&amp;#39; command to Control Point Characteristic of DFU Target: Operation code 1 (CREATE) failed on DFU Target. Result code 3 (INVALID_PARAMETER).[/quote]
&lt;p&gt;It&amp;#39;s difficult to say as the error does not say what the parameters were. When do you experience this, and are you still using the built-in DFU library in the nRF Connect for desktop app?&lt;/p&gt;
[quote user="Aftab"]The old bootloader advertised with name DfuTarg, the new one is with Dfu_ABCD_X, does this affect anything? Also if I with download the bootloader onto barebone device, it quickly starts advertising. Not sure what is missing[/quote]
&lt;p&gt;I need more information to speculate where it might be failing. Are you able to attach a debugger to the target?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Upgrade from s140 to s340</title><link>https://devzone.nordicsemi.com/thread/486836?ContentTypeID=1</link><pubDate>Fri, 31 May 2024 09:25:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af224b1f-7a55-4a8b-afbd-d4d0ae52c43a</guid><dc:creator>Aftab</dc:creator><description>&lt;p&gt;What causes this error?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;When writing &amp;#39;CREATE&amp;#39; command to Control Point Characteristic of DFU Target: Operation code 1 (CREATE) failed on DFU Target. Result code 3 (INVALID_PARAMETER).&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Upgrade from s140 to s340</title><link>https://devzone.nordicsemi.com/thread/486798?ContentTypeID=1</link><pubDate>Fri, 31 May 2024 07:27:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06a362ff-8530-4930-b9ee-fd1f24e65879</guid><dc:creator>Aftab</dc:creator><description>&lt;p&gt;The old bootloader advertised with name DfuTarg, the new one is with Dfu_ABCD_X, does this affect anything? Also if I with download the bootloader onto barebone device, it quickly starts advertising. Not sure what is missing here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Upgrade from s140 to s340</title><link>https://devzone.nordicsemi.com/thread/486796?ContentTypeID=1</link><pubDate>Fri, 31 May 2024 07:21:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a9b3db3-dcfe-4e3c-8343-af0b2c1398c8</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Yes, but you were not getting the&amp;nbsp;&lt;span&gt;NRF_DFU_RES_CODE_INSUFFICIENT_RESOURCES error on your last attempt either.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Upgrade from s140 to s340</title><link>https://devzone.nordicsemi.com/thread/486794?ContentTypeID=1</link><pubDate>Fri, 31 May 2024 07:20:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4aa76f2-a374-481f-b596-13c253e800ab</guid><dc:creator>Aftab</dc:creator><description>&lt;p&gt;The build does not fail with the flash_placement.xml file you provided&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Upgrade from s140 to s340</title><link>https://devzone.nordicsemi.com/thread/486793?ContentTypeID=1</link><pubDate>Fri, 31 May 2024 07:15:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7fd83c7c-e85c-4250-b183-4e9deb73b43d</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;There was an error in the linker configuration for the bootloader in SDK 16 that allowed the bootloader code to grow into the MBR param and BL settings page without raising any errors at link time..&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can replace your flash_placement.xml with the one attached below to ensure that the build will fail if your bootloader becomes too big.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/8688.flash_5F00_placement.xml"&gt;devzone.nordicsemi.com/.../8688.flash_5F00_placement.xml&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Upgrade from s140 to s340</title><link>https://devzone.nordicsemi.com/thread/486788?ContentTypeID=1</link><pubDate>Fri, 31 May 2024 07:07:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:acc33577-60c9-4aba-874c-e5fdea6e6366</guid><dc:creator>Aftab</dc:creator><description>&lt;p&gt;SDK v16.0&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Upgrade from s140 to s340</title><link>https://devzone.nordicsemi.com/thread/486787?ContentTypeID=1</link><pubDate>Fri, 31 May 2024 07:05:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d0c7ae3-2f02-4edc-b9fe-9c4afc5d7d9a</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Bootloader updates always require a higher version number. The bootloader will not accept a bootloader update&amp;nbsp;of the same version or lower, and the error response if the version requirement is not met&amp;nbsp;should be NRF_DFU_RES_CODE_EXT_ERROR + NRF_DFU_EXT_ERROR_FW_VERSION_FAILURE.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;NRF_DFU_RES_CODE_INSUFFICIENT_RESOURCES should only be returned if the data object is too big or if the new bootloader is too big to fit in the allocated bootloader region.&lt;/p&gt;
&lt;p&gt;Which SDK version are you on?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Upgrade from s140 to s340</title><link>https://devzone.nordicsemi.com/thread/486693?ContentTypeID=1</link><pubDate>Thu, 30 May 2024 13:32:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7303605b-a8e4-4f13-9d35-00025ae653b7</guid><dc:creator>Aftab</dc:creator><description>&lt;p&gt;These the project settings of both the bootloaders, they are same:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Old bootloader&lt;/strong&gt;&lt;br /&gt;FLASH_PH_START=0x0&lt;br /&gt;FLASH_PH_SIZE=0x100000&lt;br /&gt;RAM_PH_START=0x20000000&lt;br /&gt;RAM_PH_SIZE=0x40000&lt;br /&gt;FLASH_START=0xf8000&lt;br /&gt;FLASH_SIZE=0x6000&lt;br /&gt;RAM_START=0x20005968&lt;br /&gt;RAM_SIZE=0x3a698&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;New bootloader&lt;/strong&gt;&lt;br /&gt;FLASH_PH_START=0x0&lt;br /&gt;FLASH_PH_SIZE=0x100000&lt;br /&gt;RAM_PH_START=0x20000000&lt;br /&gt;RAM_PH_SIZE=0x40000&lt;br /&gt;FLASH_START=0xf8000&lt;br /&gt;FLASH_SIZE=0x6000&lt;br /&gt;RAM_START=0x20005968&lt;br /&gt;RAM_SIZE=0x3a698&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Upgrade from s140 to s340</title><link>https://devzone.nordicsemi.com/thread/486687?ContentTypeID=1</link><pubDate>Thu, 30 May 2024 13:18:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:77c2be77-9ed9-4142-97d6-d3f76202c1e1</guid><dc:creator>Vidar Berg</dc:creator><description>[quote userid="76817" url="~/f/nordic-q-a/111644/upgrade-from-s140-to-s340/486683"]Result code 4 (INSUFFICIENT_RESOURCES[/quote]
&lt;p&gt;This suggests that the new bootloader has a different start address in flash.&amp;nbsp;Please ensure all the bootloaders you are using are linked to the same start address. Using different start address will either cause the bootloader to reject the update with the&amp;nbsp;&lt;span&gt;INSUFFICIENT_RESOURCES error, or accept the update and cause the device to become bricked.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Upgrade from s140 to s340</title><link>https://devzone.nordicsemi.com/thread/486686?ContentTypeID=1</link><pubDate>Thu, 30 May 2024 13:17:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b542cb2-97f1-4a1d-852b-53f04c6770f6</guid><dc:creator>Aftab</dc:creator><description>&lt;p&gt;I changed the&amp;nbsp;--bootloader-version 1 to&amp;nbsp;--bootloader-version &lt;strong&gt;2&lt;/strong&gt;, it caused the bootloader to upload successfully but device stops advertisement and cannot be scanned even after power cycle.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Upgrade from s140 to s340</title><link>https://devzone.nordicsemi.com/thread/486683?ContentTypeID=1</link><pubDate>Thu, 30 May 2024 13:14:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a3c07a2-4f47-46d0-9fcc-293f76f6f513</guid><dc:creator>Aftab</dc:creator><description>&lt;p&gt;Sorry, this is the command with which I generate the bootloader file:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfutil pkg generate --bootloader bootloader.hex --bootloader-version 1 --hw-version 52 --sd-req 0xB9 --sd-id 0xCA --key-file private.pem FW_Hotshot_hv_fv_bootloader_only.zip&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;When I try to upload this file, it gives me error:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;DFU failed with error: When writing &amp;#39;EXECUTE&amp;#39; command to Control Point Characteristic of DFU Target: Operation code 4 (EXECUTE) failed on DFU Target. Result code 4 (INSUFFICIENT_RESOURCES).&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Upgrade from s140 to s340</title><link>https://devzone.nordicsemi.com/thread/486680?ContentTypeID=1</link><pubDate>Thu, 30 May 2024 13:03:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b15e525-851f-4167-9723-8e8903252761</guid><dc:creator>Vidar Berg</dc:creator><description>[quote userid="76817" url="~/f/nordic-q-a/111644/upgrade-from-s140-to-s340/486677"]This is the command:[/quote]
&lt;p&gt;This creates a combined sd+bl+app update, not BL only.&amp;nbsp;&lt;/p&gt;
[quote userid="76817" url="~/f/nordic-q-a/111644/upgrade-from-s140-to-s340/486677"]The intermediate bootloader plus s340 softdevice uploads successfully but after power cycle, the device cannot be scanned.[/quote]
&lt;p&gt;The intermidate bootloader was to allow the s340 to be updated in the first place. The S340 SoftDevice, bootloader, and app can be updated after updating to the intermediate bootloader.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Upgrade from s140 to s340</title><link>https://devzone.nordicsemi.com/thread/486677?ContentTypeID=1</link><pubDate>Thu, 30 May 2024 12:54:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2a57b3a-4fb6-461e-98db-7578fad52d53</guid><dc:creator>Aftab</dc:creator><description>&lt;p&gt;This is the command:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfutil pkg generate --bootloader bootloader.hex --bootloader-version 1 --application app.hex --application-version 2 --application-version-string &amp;quot;2.0.0&amp;quot; --hw-version 52 --sd-req 0xB9 --sd-id 0xCA --softdevice s140_nrf52_7.0.1_softdevice.hex --key-file private.pem FW_Hotshot_hv_fv_3_files.zip&lt;/pre&gt;&lt;/p&gt;
[quote userid="4240" url="~/f/nordic-q-a/111644/upgrade-from-s140-to-s340/486667"]The intermediate bootloader does not need to be compatible with the S340 API (the S140 SoftDevice will be present on the DFU target at this point), as the new bootloader for S340 should be updated along with the S340 SoftDevice.[/quote]
&lt;p&gt;The intermediate bootloader plus s340 softdevice uploads successfully but after power cycle, the device cannot be scanned.&lt;/p&gt;
[quote userid="4240" url="~/f/nordic-q-a/111644/upgrade-from-s140-to-s340/486646"]You mean s340 based application + the S340 Softdevice? This will only work if the bootloader currently present on your device has been patched to allow the Softdevice variant to be changed.[/quote]
&lt;p&gt;Exactly what changes are required in this case?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Upgrade from s140 to s340</title><link>https://devzone.nordicsemi.com/thread/486667?ContentTypeID=1</link><pubDate>Thu, 30 May 2024 12:33:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe0a0a5d-52b7-4c60-a219-775334747896</guid><dc:creator>Vidar Berg</dc:creator><description>[quote userid="76817" url="~/f/nordic-q-a/111644/upgrade-from-s140-to-s340/486664"]I tried that and it gives error 3, INVALID PARAMETER error.[/quote]
&lt;p&gt;This should work. Maybe&amp;nbsp;there was an issue with the init command. Can you show the nrfutil command you used to create this update?&amp;nbsp;&lt;/p&gt;
[quote userid="76817" url="~/f/nordic-q-a/111644/upgrade-from-s140-to-s340/486664"]That was the original idea, I previously did many things including&amp;nbsp;&lt;span&gt;re-compiling the bootloader against the s340 API headers (details here:&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/67302/ble-bootloader-example" data-contentid="bed651914c684aacb07c0edf61123ca4" data-contenttypeid="46448885d0e64133bbfbf0cd7b0fd6f7" class="ui-contentpeek internal-link"&gt;BLE Bootloader example&lt;/a&gt;). This helped me device advertise with DfuTarg name. But uploading the s340 based app again gives error 3 INVALID_PARAMETER.&lt;/span&gt;[/quote]
&lt;p&gt;The intermediate bootloader does not need to be compatible with the S340 API (the S140 SoftDevice will be present on the DFU target at this point), as the new bootloader for S340 should be updated along with the S340 SoftDevice.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Upgrade from s140 to s340</title><link>https://devzone.nordicsemi.com/thread/486664?ContentTypeID=1</link><pubDate>Thu, 30 May 2024 12:27:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0c1385e-f019-4d0a-9e05-d59b69e643c9</guid><dc:creator>Aftab</dc:creator><description>[quote userid="4240" url="~/f/nordic-q-a/111644/upgrade-from-s140-to-s340/486646"]So, isn&amp;#39;t it sufficient to only upgrade the bootloader in the intermdiate step?[/quote]
&lt;p&gt;I tried that and it gives error 3, INVALID PARAMETER error.&lt;/p&gt;
[quote userid="4240" url="~/f/nordic-q-a/111644/upgrade-from-s140-to-s340/486646"]Can you attach a debugger to the board to find out if the program may have crashed, or does it continue to advertise?[/quote]
&lt;p&gt;I haven&amp;#39;t attached debugger yet bit it does not advertise any longer.&lt;/p&gt;
[quote userid="4240" url="~/f/nordic-q-a/111644/upgrade-from-s140-to-s340/486646"]You mean s340 based application + the S340 Softdevice? This will only work if the bootloader currently present on your device has been patched to allow the Softdevice variant to be changed.[/quote]
&lt;p&gt;That was the original idea, I previously did many things including&amp;nbsp;&lt;span&gt;re-compiling the bootloader against the s340 API headers (details here:&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/67302/ble-bootloader-example"&gt;BLE Bootloader example&lt;/a&gt;). This helped me device advertise with DfuTarg name. But uploading the s340 based app again gives error 3 INVALID_PARAMETER.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Upgrade from s140 to s340</title><link>https://devzone.nordicsemi.com/thread/486646?ContentTypeID=1</link><pubDate>Thu, 30 May 2024 11:29:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a495eeb0-9f63-4862-b58f-5c130b4255ac</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user=""]Before uplaoding the s340 based app, there is an intermediate step where I upload s140 based app but with modified bootloader which allows the s340 based app to be uploaded. The s140 bootloader by default does not allow to firmware to be replaced by an s340 based app. It i son this step where I&amp;#39;m facing problems.[/quote]
&lt;p&gt;Maybe I&amp;#39;m forgetting some details, but my recollection is that this limitation only applied to the SoftDevice, not the app.&amp;nbsp;The bootloader has no way of knowing what SoftDevice an app upgrade was built for. So, isn&amp;#39;t it sufficient to only upgrade the bootloader in the intermdiate step?&lt;/p&gt;
[quote user=""]I am using the same bootloader project as before and following the same steps. But the first half of upload is complete (bl+sd), the app.hex does not upload. The nRFConnect app gets stuck after bl+sd upload successful and then gives time out error.[/quote]
&lt;p&gt;Can you attach a debugger to the board to find out if the program may have crashed, or does it continue to advertise?&lt;/p&gt;
[quote user=""]SN: Is there a way to directly replace an s140 based app to s340 one?[/quote]
&lt;p&gt;You mean s340 based application + the S340 Softdevice? This will only work if the bootloader currently present on your device has been patched to allow the Softdevice variant to be changed.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>