<?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>nrf52833 ble dfu how to start?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/62017/nrf52833-ble-dfu-how-to-start</link><description>Hi , 
 
 I need to start my application using sdk5 16.0 version, which should have custom ble servivnced and dfu feature. 
 After getting some trouble with zephyr os, i decided to test with sdk5. 
 
 But it seems that nrf52833DK is not totally supported</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 05 Jun 2020 10:48:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/62017/nrf52833-ble-dfu-how-to-start" /><item><title>RE: nrf52833 ble dfu how to start?</title><link>https://devzone.nordicsemi.com/thread/253501?ContentTypeID=1</link><pubDate>Fri, 05 Jun 2020 10:48:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:957fb802-b473-47b5-b9c1-f65c18fd62c6</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="Olfox"]1. Now i wonder if i can still run in debug mode to place breakpoint etc ?[/quote]
&lt;p&gt;Yes, but every time you program the application (for instance using &amp;quot;build &amp;amp; run&amp;quot;, the bootloader would prevent it from starting since the validation check will fail. You can either test&amp;amp;debug your application without the bootloader present or disable boot validation when you generate bootloader settings by using &amp;quot;--app-boot-validation&amp;nbsp;NO_VALIDATION&amp;quot;.&lt;/p&gt;
[quote user="Olfox"]2. If code change, should i always follow this procedure to update setting.hex ?[/quote]
&lt;p&gt;Yes, unless you do as suggested above.&lt;/p&gt;
[quote user="Olfox"]3.For production, has there is : softDist.hex, Bootloader.hex, settings.hex, and application.hex how usually customer proceed ? make a king of segger script to flash in order all this .hex?[/quote]
&lt;p&gt;For production it would make more sense to have a single hex file, so I suggest you use mergehex from &lt;a href="https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Command-Line-Tools/Download"&gt;nRF Command Line Tools&lt;/a&gt;&amp;nbsp;when it comes to that.&lt;/p&gt;
[quote user="Olfox"]4. And last question, to perform dfu update, i see there is steps to follow to generate a zip folder that is sent to the device. Is it notpossible to just update the .hex?[/quote]
&lt;p&gt;No, you cannot use just the hex. You need to build a zip file using nrfutil. This converts the hex to a bin, and adds required metadata such as version information, dependencies etc, and signed the update using your private key.&lt;/p&gt;
&lt;p&gt;As you asked about this I wonder if perhaps you have not noticed yet, but you need to adjust the bootloader to use your public key (in &amp;lt;SKD&amp;gt;\examples\dfu\dfu_public_key.c). See &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/lib_bootloader_dfu_keys.html"&gt;Working with keys&lt;/a&gt;&amp;nbsp;and &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/lib_bootloader_dfu_validation.html?cp=7_1_3_5_1_1"&gt;Validation&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52833 ble dfu how to start?</title><link>https://devzone.nordicsemi.com/thread/253468?ContentTypeID=1</link><pubDate>Fri, 05 Jun 2020 09:35:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca884f63-551e-4dd3-983d-74c57cebb8d5</guid><dc:creator>Olfox</dc:creator><description>&lt;p&gt;Woo i think&amp;nbsp; it is working !!!&lt;/p&gt;
&lt;p&gt;So step i did to make it work:&lt;/p&gt;
&lt;p&gt;Build my application in release mode.&lt;/p&gt;
&lt;p&gt;Flash it&amp;nbsp;&lt;/p&gt;
&lt;p&gt;( still not working)&lt;/p&gt;
&lt;p&gt;With windows console, go into the build folder of dfu_butonless example, output folder where my application .hex is. Run this command :&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;C:\nordic\nRF5SDK160098a08e2\examples\ble_peripheral\ble_app_buttonless_dfu\pca10100\s113\ses\Output\Release\Exe&amp;gt;nrfutil settings generate --family NRF52 --application ble_app_buttonless_dfu_pca10100_s113.hex --application-version 3 --bootloader-version 2 --bl-settings-version 2 settings.hex&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I get this result:&lt;/p&gt;
&lt;p&gt;Bootloader DFU Settings:&lt;br /&gt;* File: settings.hex&lt;br /&gt;* Family: nRF52&lt;br /&gt;* Start Address: 0x0007E000&lt;br /&gt;* CRC: 0xD899FCE0&lt;br /&gt;* Settings Version: 0x00000002 (2)&lt;br /&gt;* App Version: 0x00000003 (3)&lt;br /&gt;* Bootloader Version: 0x00000002 (2)&lt;br /&gt;* Bank Layout: 0x00000000&lt;br /&gt;* Current Bank: 0x00000000&lt;br /&gt;* Application Size: 0x0000D65C (54876 bytes)&lt;br /&gt;* Application CRC: 0x8171F9F8&lt;br /&gt;* Bank0 Bank Code: 0x00000001&lt;br /&gt;* Softdevice Size: 0x00000000 (0 bytes)&lt;br /&gt;* Boot Validation CRC: 0x8C0FDA87&lt;br /&gt;* SD Boot Validation Type: 0x00000000 (0)&lt;br /&gt;* App Boot Validation Type: 0x00000001 (1)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Suprising to see&amp;nbsp;&lt;span&gt;Softdevice Size to 0 ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Then, in nrfGo, i add HEX settings.hex freshly generated by nrfUtil command line. Flash it. And bingo, i saw the device rebooting in my port com terminal with dfu butonless application stating. now i see advertising with new name .&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;1. Now i wonder if i can still run in debug mode to place breakpoint etc ?&lt;/p&gt;
&lt;p&gt;2. If code change, should i always follow this procedure to update setting.hex ?&lt;/p&gt;
&lt;p&gt;3.For production, has there is : softDist.hex, Bootloader.hex, settings.hex, and application.hex how usually customer proceed ? make a king of segger script to flash in order all this .hex?&lt;/p&gt;
&lt;p&gt;4. And last question, to perform dfu update, i see there is steps to follow to generate a zip folder that is sent to the device. Is it notpossible to just update the .hex?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I would like to thank you a lot for your support to help me to find the good way, there is documentation a bit everywhere and it is sometimes difficult to have all the steps and tool in good order. ;)&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/101841540_5F00_281402546565368_5F00_7505902219632312320_5F00_n.jpg" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52833 ble dfu how to start?</title><link>https://devzone.nordicsemi.com/thread/253452?ContentTypeID=1</link><pubDate>Fri, 05 Jun 2020 08:47:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a30ee43-50c6-4dd4-b4d7-5157e2fdb394</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes, this is the bootloader running. The bootloader will only start the application if it is present, marked as valid and has a valid CRC. When you program the application directly (instead of updating via DFU), you need to write the information that indicates this, which is in the DFU setting page. You do that by &lt;a href="https://infocenter.nordicsemi.com/topic/ug_nrfutil/UG/nrfutil/nrfutil_settings_generate_display.html"&gt;generating a valid dfu settings page&lt;/a&gt; that you program. With that in place, the bootloader will start the application. As a side note, you would be able to see this from the RTT log if you use a debug bootloader, as in that case it would log that there is no valid application to start.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52833 ble dfu how to start?</title><link>https://devzone.nordicsemi.com/thread/253448?ContentTypeID=1</link><pubDate>Fri, 05 Jun 2020 08:34:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c812247-ef8a-4a18-9161-bcea513d018d</guid><dc:creator>Olfox</dc:creator><description>&lt;p&gt;I thik yes, i&amp;#39;m following the step in the tutorial. With nrfGo, i erase all memories.&lt;/p&gt;
&lt;p&gt;I place hex of soft device. i flash it. then i place the hex of bootloader&amp;nbsp;secure_bootloader_ble_s113_pca10100 with the key i have generated. I flash. Then place my ble_app_buttonless_dfu_pca10100_s113 . i flash.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;But may be i have also to sign with the key my application?&lt;/p&gt;
&lt;p&gt;Because after all this step, i see in mobile app nrfConnect, DfuTarg with dfu services. but i think it is the bootloader that runs only and not the app.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/101721990_5F00_1150101378680389_5F00_9043007943275970560_5F00_n.jpg" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52833 ble dfu how to start?</title><link>https://devzone.nordicsemi.com/thread/253270?ContentTypeID=1</link><pubDate>Thu, 04 Jun 2020 11:47:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a8142a9-5795-4788-be23-93561654d90f</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="Olfox"]So when i&amp;nbsp; debug, i get this error. That strange because .hex of project secure bootloader is well flashed as shown in memory map[/quote]
&lt;p&gt;No, this is expected. The memory map does not show a bootloader. Please refer to the memory layout in the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/lib_bootloader.html"&gt;bootloader documentation&lt;/a&gt;. As you can see, the bootloader is at the end of the flash (though technically you can move it down as much as you want, but would wast any space above it).&lt;/p&gt;
&lt;p&gt;Are you sure you flashed a bootloader? If so, can you show me exactly how you program the device including all steps (perhaps you delete it later when programming the application or similar)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52833 ble dfu how to start?</title><link>https://devzone.nordicsemi.com/thread/253268?ContentTypeID=1</link><pubDate>Thu, 04 Jun 2020 11:42:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58a1db38-dc8d-4db9-b446-60e1e2e3171e</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Ah, of course. I always started from the nRF52840 project because it was closest, and did not think about that&amp;nbsp;uicr_bootloader_start_address was not configured in the other. That is the part that is missing. You can just keep the line as is, but if you want to be accurate, you can also change the flash and RAM sizes, so that it becomes 100% accurate (it does not have any practical implication, though).&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;FLASH RX 0x0 0x80000;RAM RWX 0x20000000 0x20000;uicr_bootloader_start_address RX 0x10001014 0x4&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52833 ble dfu how to start?</title><link>https://devzone.nordicsemi.com/thread/253114?ContentTypeID=1</link><pubDate>Wed, 03 Jun 2020 18:02:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef9b32c2-8416-4348-b720-31add1be9cac</guid><dc:creator>Olfox</dc:creator><description>&lt;p&gt;After searching why bootloader was not in ( even if i thought it was) here is the content of my memory:&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/CXSbAid38k.mp4"&gt;devzone.nordicsemi.com/.../CXSbAid38k.mp4&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;i really have a lake of knowledge on all this memry and boot order settings, where does program start, what do the secure bootloader, when it launch app etc to be able to debug it properly and manage . I&amp;#39;m really afraid of working with dfu and swap partition etc in the futur when i see how it is not so obvious to work with nordic lol.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52833 ble dfu how to start?</title><link>https://devzone.nordicsemi.com/thread/253110?ContentTypeID=1</link><pubDate>Wed, 03 Jun 2020 17:03:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:921f3fe6-ad21-4d88-b6f2-c800c27c64db</guid><dc:creator>Olfox</dc:creator><description>&lt;p&gt;So when i&amp;nbsp; debug, i get this error. That strange because .hex of project secure bootloader is well flashed as shown in memory map&lt;/p&gt;
&lt;p&gt;Debug Window:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;lt;error&amp;gt; app: No bootloader was found&lt;br /&gt;&amp;lt;error&amp;gt; app: ERROR 4 [NRF_ERROR_NO_MEM] at C:\nordic\nRF5SDK160098a08e2\examples\ble_peripheral\ble_app_buttonless_dfu\main.c:854&lt;br /&gt;PC at: 0x00026075&lt;br /&gt;&amp;lt;error&amp;gt; app: End of error report&lt;br /&gt;&amp;lt;error&amp;gt; app: No bootloader was found&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52833 ble dfu how to start?</title><link>https://devzone.nordicsemi.com/thread/253093?ContentTypeID=1</link><pubDate>Wed, 03 Jun 2020 15:46:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee206c24-0dcd-4839-b664-75ae4cf52978</guid><dc:creator>Olfox</dc:creator><description>&lt;p&gt;When i run the app i have the feeling that app is running is the one of the bootloader. When i scan i see DfuTarg and not&amp;nbsp;Nordic_Buttonless . Here is the content of my memory.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1591199182154v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52833 ble dfu how to start?</title><link>https://devzone.nordicsemi.com/thread/253081?ContentTypeID=1</link><pubDate>Wed, 03 Jun 2020 15:04:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d769c368-1a1c-4c8d-9107-56ce524679d1</guid><dc:creator>Olfox</dc:creator><description>&lt;p&gt;Ha ! i have find the problem in my project , it comes from this :&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1591196644673v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know how it is filled , do you know witch option did it please ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52833 ble dfu how to start?</title><link>https://devzone.nordicsemi.com/thread/253076?ContentTypeID=1</link><pubDate>Wed, 03 Jun 2020 14:49:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4bd93c22-e4f4-431c-a1d1-2f2addbdb773</guid><dc:creator>Olfox</dc:creator><description>&lt;p&gt;Yes i also changed this files but it was not working. Have you tried my project ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52833 ble dfu how to start?</title><link>https://devzone.nordicsemi.com/thread/252951?ContentTypeID=1</link><pubDate>Wed, 03 Jun 2020 10:00:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61526617-1434-41bf-be5c-5f1a208ad686</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have uploaded a working project here:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-902be86a1a914c56bdecc9043d174ef8/pca10100_5F00_fixed.zip"&gt;devzone.nordicsemi.com/.../pca10100_5F00_fixed.zip&lt;/a&gt;. I forgot that you need to replace the startup and system files as shown here:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-902be86a1a914c56bdecc9043d174ef8/startup_5F00_system.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;With that, it should work.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="Olfox"]Thanks a lot for all this explaination. My product will not be reachable ( so no button possibility).&amp;nbsp;so if i understand well i just need to configure properly with additional file 0 the softDist, and use&amp;nbsp;&lt;span&gt;ble_app_buttonless in wich i place my custom services. No need of secure boot ( that is already inside&amp;nbsp;ble_app_buttonless&amp;nbsp;)?&lt;/span&gt;[/quote]
&lt;p&gt;Yes, from the application perspective that is enough. But you of course also need to include the bootloader itself, by using the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/ble_sdk_app_dfu_bootloader.html"&gt;Secure BLE bootloader example&lt;/a&gt;. &amp;quot;Secure&amp;quot; here does not imply secure boot but secure in the sense that only signed update images are accepted.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52833 ble dfu how to start?</title><link>https://devzone.nordicsemi.com/thread/252791?ContentTypeID=1</link><pubDate>Tue, 02 Jun 2020 14:34:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3d00a0b-c6d7-465a-8471-6f9c124c4eb5</guid><dc:creator>Olfox</dc:creator><description>&lt;p&gt;Thanks a lot for all this explaination. My product will not be reachable ( so no button possibility).&amp;nbsp;so if i understand well i just need to configure properly with additional file 0 the softDist, and use&amp;nbsp;&lt;span&gt;ble_app_buttonless in wich i place my custom services. No need of secure boot ( that is already inside&amp;nbsp;ble_app_buttonless&amp;nbsp;)?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Theoreticaly, 0x20001198 should be enough, but i see there is also a callstack that required 1.75kB ( 0x700) that i should add too ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Then it should be like this &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;FLASH_PH_START=0x0&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;FLASH_PH_SIZE=0x80000&lt;/p&gt;
&lt;p&gt;RAM_PH_START=0x20000000&lt;/p&gt;
&lt;p&gt;RAM_PH_SIZE=0x20000&lt;/p&gt;
&lt;p&gt;FLASH_START=0x1c000&lt;/p&gt;
&lt;p&gt;FLASH_SIZE=0x64000&lt;/p&gt;
&lt;p&gt;RAM_START=0x20001898&lt;/p&gt;
&lt;p&gt;RAM_SIZE=0x1e768&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This should be the minimum required ?&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Here is my project ( just placed&amp;nbsp;here :&amp;nbsp;C:\nordic\nRF5SDK160098a08e2\examples\ble_peripheral\ble_app_buttonless_dfu\pca10100\s113\ses )&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/pca10100.zip"&gt;devzone.nordicsemi.com/.../pca10100.zip&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52833 ble dfu how to start?</title><link>https://devzone.nordicsemi.com/thread/252779?ContentTypeID=1</link><pubDate>Tue, 02 Jun 2020 14:00:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe9c2cd4-b861-4aab-8081-9a1b74d53ff3</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="Olfox"]Also, should i use secure_bootloader_dfu + ble_app_buttonless application to have a complete dfu solution ? [/quote]
&lt;p&gt;That depends on your requirements. If you want to use for instance a button to enter DFU mode, then you don&amp;#39;t need to do anything in the application. But if you want to be able to enter DFU mode without any physical interaction with the device, then you must include the DFU service (which&amp;nbsp;ble_app_buttonless application is an example of).&lt;/p&gt;
[quote user="Olfox"] have flashed secure_bootloader_dfu i can see it with nrf toolbox. But there is no while(1) loop so i guess it is not a software where to place custom ble services ans application ? I f you can clarify with big pictur point of view it will help a lot :)[/quote]
&lt;p&gt;The bootloader is responsible for updates, including transporting the update over BLE (or other). But it will normally just start the application, which is a separate binary. You should not put your application logic, services etc. in the bootloader.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52833 ble dfu how to start?</title><link>https://devzone.nordicsemi.com/thread/252777?ContentTypeID=1</link><pubDate>Tue, 02 Jun 2020 13:57:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b01a780c-f98b-4169-b6e2-467291b78abe</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;[quote user="Olfox"][/quote]&lt;/p&gt;
&lt;p&gt;I followed all the step already before, thanks it confirm i did right. But i&amp;#39;m always getting to this error, even if i change the memory size and start adress:&lt;/p&gt;
&lt;p&gt;Output/Debug/Exe/ble_app_buttonless_dfu_pca10100_s113.elf section `.init&amp;#39; will not fit in region `UNPLACED_SECTIONS&amp;#39;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You should not get these problems. Can you upload your project so that I can try to see what is missing?&lt;/p&gt;
[quote user="Olfox"]But then How to know the size and where softDist has been flashed ?[/quote]
&lt;p&gt;You can always find the SoftDevice size in the release notes of the SoftDevice. So, under &amp;lt;SDK16&amp;gt;\components\softdevice\s113\doc\ you find&amp;nbsp;s113_nrf52_7.0.1_release-notes.pdf, and there it is specified that the size of the SoftDevice is&amp;nbsp;112.0 kB (0x1C000 bytes). The start address of the application must always be the same as the size of the SoftDevice.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52833 ble dfu how to start?</title><link>https://devzone.nordicsemi.com/thread/252773?ContentTypeID=1</link><pubDate>Tue, 02 Jun 2020 13:43:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e7044ed-d69e-4acc-81ed-d99f9ffc4ee0</guid><dc:creator>Olfox</dc:creator><description>&lt;p&gt;Also, should i use secure_bootloader_dfu + ble_app_buttonless application to have a complete dfu solution ? i&amp;nbsp; have flashed secure_bootloader_dfu i can see it with nrf toolbox. But there is no while(1) loop so i guess it is not a software where to place custom ble services ans application ? I f you can clarify with big pictur point of view it will help a lot :) . thanks a lot !&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52833 ble dfu how to start?</title><link>https://devzone.nordicsemi.com/thread/252767?ContentTypeID=1</link><pubDate>Tue, 02 Jun 2020 13:28:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06e4f501-ea64-40f2-bc43-fb3dfd78dc50</guid><dc:creator>Olfox</dc:creator><description>&lt;p&gt;Hi Einar, thanks for the reply ,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I followed all the step already before, thanks it confirm i did right. But i&amp;#39;m always getting to this error, even if i change the memory size and start adress:&lt;/p&gt;
&lt;p&gt;Output/Debug/Exe/ble_app_buttonless_dfu_pca10100_s113.elf section `.init&amp;#39; will not fit in region `UNPLACED_SECTIONS&amp;#39;&lt;/p&gt;
&lt;p&gt;region `UNPLACED_SECTIONS&amp;#39; overflowed by 96372 bytes&lt;/p&gt;
&lt;p&gt;Output/ble_app_buttonless_dfu_pca10100_s113 Debug/Obj/thumb_crt0.o: in function `memory_set&amp;#39;:&lt;/p&gt;
&lt;p&gt;(.init+0xd8): undefined reference to `__stack_end__&amp;#39;&lt;/p&gt;
&lt;p&gt;(.init+0xdc): undefined reference to `__stack_start__&amp;#39;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have used this reference table to know which adresse should i use :&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/getting-started/posts/adjustment-of-ram-and-flash-memory"&gt;https://devzone.nordicsemi.com/nordic/short-range-guides/b/getting-started/posts/adjustment-of-ram-and-flash-memory&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;nrf52833 has 512kB ( 0x80 000)&amp;nbsp; of flash and 128kB of ram ( 0x20 000) so this parts are ok. But then How to know the size and where softDist has been flashed ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have also used you value, it gives always same errors.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52833 ble dfu how to start?</title><link>https://devzone.nordicsemi.com/thread/252762?ContentTypeID=1</link><pubDate>Tue, 02 Jun 2020 13:14:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1406984-0aa2-4d64-98f4-956fd29a6fb7</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;nRF5 SDK version 16 is probably the best SDK for nRF52833 unless you have a particular reason for using nRF Connect SDK. It is correct that many examples are not adapted to it, but adjusting an existing example takes just a few minutes once you know what is needed.&lt;/p&gt;
&lt;p&gt;For reference, I started off with the BLE bliky example for nRF52840 in SDK 16, for SES (\examples\ble_peripheral\ble_app_blinky\pca10059\s140\ses\ble_app_blinky_pca10059_s140.emProject).&lt;/p&gt;
&lt;p&gt;1. Adjust the linker configuration macros to be correct for the flash and RAM size of the nRF52833, and the reduced size of the S113 SoftDevice:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-902be86a1a914c56bdecc9043d174ef8/linker.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;2. Adjust the preprocessor defines to specify the correct board, IC and SoftDevice:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-902be86a1a914c56bdecc9043d174ef8/preprocessor.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;3. Adjust the include path to include S113 headers instead of S140 headers:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-902be86a1a914c56bdecc9043d174ef8/include.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;4. Make SES load the correct S113 SoftDevice when programming from SES:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-902be86a1a914c56bdecc9043d174ef8/loader.PNG" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>