<?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>NRF_DFU_RES_CODE_INVALID_PARAMETER</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/102454/nrf_dfu_res_code_invalid_parameter</link><description>Hi, 
 i`m doing a single bank update. So far works well. But now the app grown am little and now i, running in failure NRF_DFU_RES_CODE_INVALID_PARAMETER. 
 If i debug into the sdk NRF_DFU_RES_CODE_INVALID_PARAMETER will be set in function on_data_obj_write_request</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 02 Aug 2023 09:47:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/102454/nrf_dfu_res_code_invalid_parameter" /><item><title>RE: NRF_DFU_RES_CODE_INVALID_PARAMETER</title><link>https://devzone.nordicsemi.com/thread/439452?ContentTypeID=1</link><pubDate>Wed, 02 Aug 2023 09:47:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fdb6f0d1-5281-4a77-b4e3-6eac6e17b313</guid><dc:creator>Oliver71</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;the bug was on may side. Thanks for support&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF_DFU_RES_CODE_INVALID_PARAMETER</title><link>https://devzone.nordicsemi.com/thread/439338?ContentTypeID=1</link><pubDate>Tue, 01 Aug 2023 16:51:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba24b408-6fb3-4d46-875d-3507cac91d18</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Are you using S140 for nRF52833?&lt;/p&gt;
[quote user=""]i`m doing a single bank update. So far works well. But now the app grown am little and now i, running in failure NRF_DFU_RES_CODE_INVALID_PARAMETER.[/quote]
&lt;p&gt;&lt;span&gt;Can you try to debug the bootloader project and see why it returns NRF_DFU_RES_CODE_INVALID_PARAMETER? According to&amp;nbsp;&lt;/span&gt;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v16.0.0%2Flib_dfu_transport.html&amp;amp;anchor=lib_dfu_transport_op_create" rel="noopener noreferrer" target="_blank"&gt;this&lt;/a&gt;&lt;span&gt;&amp;nbsp;it is because: &amp;quot;&lt;/span&gt;&lt;span&gt;&lt;em&gt;The specified size for a data object is not page aligned, and it is not the last object.&lt;/em&gt;&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Try to set the&amp;nbsp;&lt;span&gt;bootloader start at&amp;nbsp;&lt;/span&gt;&lt;span&gt;0x78000 if you are using nRF52833.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;br /&gt;Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF_DFU_RES_CODE_INVALID_PARAMETER</title><link>https://devzone.nordicsemi.com/thread/439279?ContentTypeID=1</link><pubDate>Tue, 01 Aug 2023 13:06:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6990b432-2699-4d65-ba47-5e21f6cd4c3e</guid><dc:creator>Oliver71</dc:creator><description>&lt;p&gt;Update:&lt;br /&gt;&lt;br /&gt;seem some settings for single bank wrong or missing.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Flash area for app is 0x27000 to 0x6D000 (bootloader start at 0x6D000)&lt;br /&gt;During update process i can write app till address 0x4A000,&lt;br /&gt;0x27000 + 0x23000 = 0x4A000&lt;br /&gt;0x27000 + 0x23000 + 0x23000 = 0x6D000&lt;br /&gt;&lt;br /&gt;So i guess some settings for single bank missing or wrong&lt;br /&gt;&lt;br /&gt;For bootloader followein settings are done:&lt;/p&gt;
&lt;p&gt;#ifndef NRF_DFU_FORCE_DUAL_BANK_APP_UPDATES&lt;br /&gt;#define NRF_DFU_FORCE_DUAL_BANK_APP_UPDATES 0&lt;br /&gt;#endif&lt;/p&gt;
&lt;p&gt;// &amp;lt;o&amp;gt; NRF_DFU_HW_VERSION - Device hardware version.&lt;br /&gt;// &amp;lt;i&amp;gt; This is used to determine if given update is targeting the device.&lt;br /&gt;// &amp;lt;i&amp;gt; It is checked against the hw_version value in the init packet&lt;/p&gt;
&lt;p&gt;#ifndef NRF_DFU_HW_VERSION&lt;br /&gt;#define NRF_DFU_HW_VERSION 52&lt;br /&gt;#endif&lt;/p&gt;
&lt;p&gt;// &amp;lt;q&amp;gt; NRF_DFU_REQUIRE_SIGNED_APP_UPDATE - Require a valid signature to update the application or SoftDevice.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;#ifndef NRF_DFU_REQUIRE_SIGNED_APP_UPDATE&lt;br /&gt;#define NRF_DFU_REQUIRE_SIGNED_APP_UPDATE 1&lt;br /&gt;#endif&lt;/p&gt;
&lt;p&gt;// &amp;lt;q&amp;gt; NRF_DFU_SINGLE_BANK_APP_UPDATES - Place the application and the SoftDevice directly where they are supposed to be.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;// &amp;lt;i&amp;gt; Note that this creates security concerns when signing and version checks&lt;br /&gt;// &amp;lt;i&amp;gt; are enabled. An attacker will be able to delete (but not replace)&lt;br /&gt;// &amp;lt;i&amp;gt; the current app or SoftDevice without knowing the signature key.&lt;/p&gt;
&lt;p&gt;#ifndef NRF_DFU_SINGLE_BANK_APP_UPDATES&lt;br /&gt;#define NRF_DFU_SINGLE_BANK_APP_UPDATES 1&lt;br /&gt;#endif&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>