<?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 toolbox dfu max file size</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/14517/nrf-toolbox-dfu-max-file-size</link><description>Hi
I have a problem when bootloading with nrf toolbox. It seems like when i flash files over 0x10000 in size the program overwrites itself. When i flash files with smaller size it works.
I compile my program with gcc and use nrfutil to make a .zip file</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 16 Jun 2016 14:13:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/14517/nrf-toolbox-dfu-max-file-size" /><item><title>RE: nrf toolbox dfu max file size</title><link>https://devzone.nordicsemi.com/thread/55426?ContentTypeID=1</link><pubDate>Thu, 16 Jun 2016 14:13:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:640d6081-2f14-40d7-a4e2-5871ee6b6e83</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Oh, thanks Andreas. I think the configuration in the components\drivers_nrf\pstorage\config should be updated to uint32_t as well. I will report this internally.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf toolbox dfu max file size</title><link>https://devzone.nordicsemi.com/thread/55425?ContentTypeID=1</link><pubDate>Thu, 16 Jun 2016 13:42:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d818b8a-a3e3-4a91-bca4-bb01bbf17cad</guid><dc:creator>Andreas_Wickstr&amp;#246;m</dc:creator><description>&lt;p&gt;hi
Seems like i have uses wrong file then. I made a copy from this filepath
components\drivers_nrf\pstorage\config&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf toolbox dfu max file size</title><link>https://devzone.nordicsemi.com/thread/55424?ContentTypeID=1</link><pubDate>Thu, 16 Jun 2016 13:37:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07c0b43b-271c-4953-b6e9-a1322ecd400c</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Strange, I just have a look at the SDKv11 .zip file &lt;a href="http://developer.nordicsemi.com/nRF51_SDK/nRF5_SDK_v11.x.x/"&gt;here&lt;/a&gt;, and the definition of pstorage_size_t was uint32_t in the pstorage_platform in \examples\dfu\bootloader\config .&lt;/p&gt;
&lt;p&gt;Could you double check ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf toolbox dfu max file size</title><link>https://devzone.nordicsemi.com/thread/55423?ContentTypeID=1</link><pubDate>Thu, 16 Jun 2016 13:23:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b7ba1d1-48f8-4eec-8f95-769486071a98</guid><dc:creator>Andreas_Wickstr&amp;#246;m</dc:creator><description>&lt;p&gt;I use the latest SDK and it was defined as uint16_t there.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf toolbox dfu max file size</title><link>https://devzone.nordicsemi.com/thread/55422?ContentTypeID=1</link><pubDate>Thu, 16 Jun 2016 12:41:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3da95795-edeb-4ed3-b671-81b1bccea466</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Andreas: Which SDK version are you using ? I thought typedef uint32_t pstorage_size_t; has always been uint32_t ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf toolbox dfu max file size</title><link>https://devzone.nordicsemi.com/thread/55421?ContentTypeID=1</link><pubDate>Thu, 16 Jun 2016 09:57:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49d2d9fb-a1ba-43f7-b59f-dab0f963dd78</guid><dc:creator>Andreas_Wickstr&amp;#246;m</dc:creator><description>&lt;p&gt;I seem to have solved the problem with the dfu. Atleast I think.
It seems that we have a type error in the dfu.
i changed the
typedef uint32_t pstorage_size_t;&lt;/p&gt;
&lt;p&gt;to uint32_t from uint16_t. It seemed like the it wraped around and that was why i got some wiered errors when i flashed my file.
The nrf toolbox can then handle ihex 16 files&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf toolbox dfu max file size</title><link>https://devzone.nordicsemi.com/thread/55420?ContentTypeID=1</link><pubDate>Wed, 15 Jun 2016 15:53:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4198848a-b54d-41b2-bf5a-1c50ed0ab003</guid><dc:creator>Andreas_Wickstr&amp;#246;m</dc:creator><description>&lt;p&gt;Yes i have read some more about it now but i cant find a solution for it. I might have to write some own program that converts from ihex16 to ihex32.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf toolbox dfu max file size</title><link>https://devzone.nordicsemi.com/thread/55419?ContentTypeID=1</link><pubDate>Wed, 15 Jun 2016 15:31:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8329d433-3b81-4d5e-9983-87674ae55df4</guid><dc:creator>John</dc:creator><description>&lt;p&gt;Its been a while since I used GCC, but if you say its not using extended mode does that mean it won&amp;#39;t generate the extended linear address record in the hex file then that is your problem. Without those you can&amp;#39;t address above 64K in the hex file. Wikipedia has a good page on the Intel hex format.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf toolbox dfu max file size</title><link>https://devzone.nordicsemi.com/thread/55418?ContentTypeID=1</link><pubDate>Wed, 15 Jun 2016 15:24:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2653c2df-0c11-40e7-9882-bd7899cdc4c0</guid><dc:creator>Andreas_Wickstr&amp;#246;m</dc:creator><description>&lt;p&gt;Yes I also think that it has with some 64K boundary to to. Could it be something with how the program is generated in GCC if it uses extended adress range or not. In my case it does not use extended mode. I dont know how to change it. Maybe i should see if i can generate a program that uses exteded adressing in the hex file?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf toolbox dfu max file size</title><link>https://devzone.nordicsemi.com/thread/55417?ContentTypeID=1</link><pubDate>Wed, 15 Jun 2016 15:21:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33f51265-df03-4b76-a27b-a8846093c139</guid><dc:creator>John</dc:creator><description>&lt;p&gt;I don&amp;#39;t have any idea what your problem may be, but I can&amp;#39;t help but think that the fact that you are crossing the 64K boundary has to be significant. Just guessing though.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>