<?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>Error when building BT mesh DFU OTA Target on Dongle 52840 (struct.error: ushort format requires 0 &amp;lt;= number &amp;lt;= 0xffff)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/104488/error-when-building-bt-mesh-dfu-ota-target-on-dongle-52840-struct-error-ushort-format-requires-0-number-0xffff</link><description>Dear fellow developers, 
 I&amp;#39;m working on a project were we&amp;#39;re building a sample network containing hundreds of nRF 52840 dongles connected together using BT mesh. 
 The very first step is over, we managed to build the project for dongle and to verify</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 18 Oct 2023 21:47:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/104488/error-when-building-bt-mesh-dfu-ota-target-on-dongle-52840-struct-error-ushort-format-requires-0-number-0xffff" /><item><title>RE: Error when building BT mesh DFU OTA Target on Dongle 52840 (struct.error: ushort format requires 0 &lt;= number &lt;= 0xffff)</title><link>https://devzone.nordicsemi.com/thread/451145?ContentTypeID=1</link><pubDate>Wed, 18 Oct 2023 21:47:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba0c5228-447f-4eb0-ae20-0b2a2660cd14</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;Thanks for your concern. I&amp;#39;ll close the ticket, but the information will still be available for others (and us) to see.&lt;/p&gt;
&lt;p&gt;It can be re-opened at a later point in time.&lt;/p&gt;
&lt;p&gt;Br, &lt;br /&gt;Joakim&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error when building BT mesh DFU OTA Target on Dongle 52840 (struct.error: ushort format requires 0 &lt;= number &lt;= 0xffff)</title><link>https://devzone.nordicsemi.com/thread/451143?ContentTypeID=1</link><pubDate>Wed, 18 Oct 2023 20:52:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c084332d-5746-4e3c-8569-c12d0bbd663b</guid><dc:creator>alebldn</dc:creator><description>&lt;p&gt;Hei Joakim, hyggelig &amp;aring; m&amp;oslash;te deg.&lt;/p&gt;
&lt;p&gt;About the timing, yes, I&amp;#39;m sorry too because right now I&amp;#39;m actually sort of a herald trying to promote Nordic as the manufacturing company to switch to in the near future to the firm I&amp;#39;m working for. And they see that I&amp;#39;m posting here as well.&lt;/p&gt;
&lt;p&gt;About closing the ticket: please don&amp;#39;t. I would like to keep this post updated so to help other people that will face the very same problems that I&amp;#39;m facing right now in working with the 52840 Dongle and this specific protocol (DFU over BT Mesh) and that, hopefully, might be of help for you guys too.&lt;/p&gt;
&lt;p&gt;God natt,&lt;/p&gt;
&lt;p&gt;Alessandro&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error when building BT mesh DFU OTA Target on Dongle 52840 (struct.error: ushort format requires 0 &lt;= number &lt;= 0xffff)</title><link>https://devzone.nordicsemi.com/thread/451140?ContentTypeID=1</link><pubDate>Wed, 18 Oct 2023 20:22:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4da2c24-ac3a-44dc-8226-deb147146ffc</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Sorry I wasn&amp;#39;t able to assist in time.&lt;/p&gt;
&lt;p&gt;But glad to hear you was able to work it out.&lt;/p&gt;
&lt;p&gt;Closing the ticket. Feel free to open a new ticket if you have any questions in the future.&lt;/p&gt;
&lt;p&gt;Br, &lt;br /&gt;Joakim&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error when building BT mesh DFU OTA Target on Dongle 52840 (struct.error: ushort format requires 0 &lt;= number &lt;= 0xffff)</title><link>https://devzone.nordicsemi.com/thread/451045?ContentTypeID=1</link><pubDate>Wed, 18 Oct 2023 11:26:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:02b7dbe3-841a-4bc4-bc21-a6887c8e4434</guid><dc:creator>alebldn</dc:creator><description>&lt;p&gt;Solved this problem as well.&lt;/p&gt;
&lt;p&gt;Turns out, the way i edited the partition was incorrect as the legacy_bootloader_storage partition requires more space than what was previously allocated. You can verify this buy simply blinking a light at startup for 5/10 times: it will keep blinking on and on as the chip reboots itself (probably) due to an internal ROM space error.&lt;/p&gt;
&lt;p&gt;The new code included in pm_static_nrf52840dongle_nrf52840.yml is:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrf5_mbr:
  address: 0x0
  size: 0x1000
  placement:
    after: start
mcuboot:
  address: 0x1000
  size: 0xf000
  placement:
    after: [nrf5_mbr]
mcuboot_primary:
  address: 0x10000
  size: 0x60000
  span: [mcuboot_pad, mcuboot_primary_app]
mcuboot_pad:
  address: 0x10000
  size: 0x1000
  placement:
    after: [mcuboot]
mcuboot_primary_app:
  address: 0x11000
  size: 0x5F000
  span: [app]
mcuboot_secondary:
  address: 0x70000
  size: 0x60000
  placement:
    after: [mcuboot_primary]
settings_storage:
  address: 0xd0000
  size: 0x18000
  placement:
    after: [mcuboot_secondary]
legacy_bootloader_storage:
  address: 0xe8000
  size: 0x18000  
  placement:
    after: [settings_storage]
sram_primary:
  address: 0x20000000
  end_address: 0x20040000
  size: 0x40000
  region: sram_primary&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Now the application fully loads and shows up in the nRF mesh app.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error when building BT mesh DFU OTA Target on Dongle 52840 (struct.error: ushort format requires 0 &lt;= number &lt;= 0xffff)</title><link>https://devzone.nordicsemi.com/thread/449769?ContentTypeID=1</link><pubDate>Wed, 11 Oct 2023 10:37:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0eacc233-afc2-424c-b99a-4541ebc42e5d</guid><dc:creator>alebldn</dc:creator><description>&lt;p&gt;Apparently, the mcuboot_pad partition is not just padding, but it does contain the header. &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f611.svg" title="Expressionless"&gt;&amp;#x1f611;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Observing the call to imgtool.py the header size is 0x10000, exactly the same as the padding partition. Setting the partition to 0x8000 and the mcuboot_primary_app to 0x68000 solves the problem.&lt;/p&gt;
&lt;p&gt;The merged.hex file is now generated and it is possible to flash it to the dongle through the Programmer app. Once this is done, though, the dongle does not show up in unprovisioned proxy nodes in the nRF Mesh app.&lt;/p&gt;
&lt;p&gt;Any suggestions?&lt;/p&gt;
&lt;p&gt;(Still, the question about statically partition the app is open, if anyone has any idea)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>