<?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>Migrating from Keil to SES - Error with DFU INIT service</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/87050/migrating-from-keil-to-ses---error-with-dfu-init-service</link><description>Hello Guys,, 
 I am trying to migrate my project form keil to segger embedded studio. My product is based on sdk 12.2.0, using softdevice s130 on nrf51822. I searched for all the posts that helped in migrating to SES and able to successfully build my</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 04 May 2020 08:54:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/87050/migrating-from-keil-to-ses---error-with-dfu-init-service" /><item><title>RE: Migrating from Keil to SES - Error with DFU INIT service</title><link>https://devzone.nordicsemi.com/thread/363388?ContentTypeID=1</link><pubDate>Mon, 04 May 2020 08:54:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86ea3223-75d4-424f-a8a0-4f3beaad4e7b</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hmm, I didnt think that the placement of the line in the flash_placement.xml should have anything to say as the sections is absolutely placed. However, it could be that absolutely placed sections should be placed at the end of the Flash Memory Segment or in a separate memory segment.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Bjørn&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating from Keil to SES - Error with DFU INIT service</title><link>https://devzone.nordicsemi.com/thread/363387?ContentTypeID=1</link><pubDate>Thu, 30 Apr 2020 12:20:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e876841-19b2-4b83-9500-1c63b2d63bc5</guid><dc:creator>KrishNa</dc:creator><description>&lt;p&gt;One quick question Bjorn.&lt;/p&gt;
&lt;p&gt;Does placement of the line&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;lt;ProgramSection alignment=&amp;quot;4&amp;quot; keep=&amp;quot;Yes&amp;quot; load=&amp;quot;No&amp;quot; name=&amp;quot;.bootloaderSettings&amp;quot; address_symbol=&amp;quot;__start_bootloader_settings&amp;quot; end_symbol=&amp;quot;__stop_bootloader_settings&amp;quot; start = &amp;quot;0x0003FC00&amp;quot; size=&amp;quot;0x400&amp;quot; /&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;in the flash placement file has any significane?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Because when i place that statement at line 13 below the .data, it is not compiling, giving me the syntax error but when placing the same statement at line 15 below the .fs data run, it compiled fine and everything worked.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Krish&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating from Keil to SES - Error with DFU INIT service</title><link>https://devzone.nordicsemi.com/thread/363386?ContentTypeID=1</link><pubDate>Thu, 30 Apr 2020 08:28:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89d6d258-f8d1-4de5-a501-49712653834a</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Great! Happy to hear that the application is now working as it should &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;-Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating from Keil to SES - Error with DFU INIT service</title><link>https://devzone.nordicsemi.com/thread/363385?ContentTypeID=1</link><pubDate>Thu, 30 Apr 2020 08:20:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0750beac-e33d-496f-9838-ef493510eddd</guid><dc:creator>KrishNa</dc:creator><description>&lt;p&gt;Hi Bjorn,&lt;/p&gt;
&lt;p&gt;Instead of creating new memory segment for bootloader settings, i have copied this statement&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;lt;ProgramSection alignment=&amp;quot;4&amp;quot; keep=&amp;quot;Yes&amp;quot; load=&amp;quot;No&amp;quot; name=&amp;quot;.bootloaderSettings&amp;quot; address_symbol=&amp;quot;__start_bootloader_settings&amp;quot; end_symbol=&amp;quot;__stop_bootloader_settings&amp;quot; start = &amp;quot;0x0003FC00&amp;quot; size=&amp;quot;0x400&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt;into existing flash memory segment and removing the other bootloader settings in the flash segment as you suggested above worked.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Now i am able to flash the program successfully.&lt;/p&gt;
&lt;p&gt;Attaching the modified flash placement for your reference.&lt;/p&gt;
&lt;p&gt;Thanks for your continued support in resolving this issue. Really appreciate your time and effort.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/4571.flash_5F00_placement.xml"&gt;devzone.nordicsemi.com/.../4571.flash_5F00_placement.xml&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best,&lt;/p&gt;
&lt;p&gt;Krish&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating from Keil to SES - Error with DFU INIT service</title><link>https://devzone.nordicsemi.com/thread/363384?ContentTypeID=1</link><pubDate>Thu, 30 Apr 2020 07:50:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96d00bdb-0d79-419b-91b9-c242eaddf44b</guid><dc:creator>KrishNa</dc:creator><description>&lt;p&gt;I have already tried that Bjorn. But it gives me the same error as the above.&lt;/p&gt;
&lt;p&gt;Removing that doesn&amp;#39;t make any difference.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating from Keil to SES - Error with DFU INIT service</title><link>https://devzone.nordicsemi.com/thread/363383?ContentTypeID=1</link><pubDate>Thu, 30 Apr 2020 06:41:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:50dfa1d9-209b-4515-b011-67752c5fcf1a</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;You have two .bootloader sections one in the first memory segment and one in the last. Can you try to remove the&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;lt;ProgramSection alignment=&amp;quot;4&amp;quot; load=&amp;quot;Yes&amp;quot; name=&amp;quot;.bootloaderSettings&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt;in the first memory segment, i.e.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="xml"&gt;&amp;lt;Root name=&amp;quot;Flash Section Placement&amp;quot;&amp;gt;
  &amp;lt;MemorySegment name=&amp;quot;$(FLASH_NAME:FLASH)&amp;quot;&amp;gt;
    &amp;lt;ProgramSection alignment=&amp;quot;0x100&amp;quot; load=&amp;quot;Yes&amp;quot; name=&amp;quot;.vectors&amp;quot; start=&amp;quot;$(FLASH_START:)&amp;quot; /&amp;gt;
    &amp;lt;ProgramSection alignment=&amp;quot;4&amp;quot; load=&amp;quot;Yes&amp;quot; name=&amp;quot;.init&amp;quot; /&amp;gt;
    &amp;lt;ProgramSection alignment=&amp;quot;4&amp;quot; load=&amp;quot;Yes&amp;quot; name=&amp;quot;.init_rodata&amp;quot; /&amp;gt;
    &amp;lt;ProgramSection alignment=&amp;quot;4&amp;quot; load=&amp;quot;Yes&amp;quot; name=&amp;quot;.text&amp;quot; /&amp;gt;
    &amp;lt;ProgramSection alignment=&amp;quot;4&amp;quot; load=&amp;quot;Yes&amp;quot; name=&amp;quot;.dtors&amp;quot; /&amp;gt;
    &amp;lt;ProgramSection alignment=&amp;quot;4&amp;quot; load=&amp;quot;Yes&amp;quot; name=&amp;quot;.ctors&amp;quot; /&amp;gt;
    &amp;lt;ProgramSection alignment=&amp;quot;4&amp;quot; load=&amp;quot;Yes&amp;quot; name=&amp;quot;.rodata&amp;quot; /&amp;gt;
    &amp;lt;ProgramSection alignment=&amp;quot;4&amp;quot; load=&amp;quot;Yes&amp;quot; name=&amp;quot;.ARM.exidx&amp;quot; address_symbol=&amp;quot;__exidx_start&amp;quot; end_symbol=&amp;quot;__exidx_end&amp;quot; /&amp;gt;
    &amp;lt;ProgramSection alignment=&amp;quot;4&amp;quot; load=&amp;quot;Yes&amp;quot; runin=&amp;quot;.fast_run&amp;quot; name=&amp;quot;.fast&amp;quot; /&amp;gt; 
    &amp;lt;ProgramSection alignment=&amp;quot;4&amp;quot; load=&amp;quot;Yes&amp;quot; runin=&amp;quot;.data_run&amp;quot; name=&amp;quot;.data&amp;quot; /&amp;gt;
    &amp;lt;ProgramSection alignment=&amp;quot;4&amp;quot; load=&amp;quot;Yes&amp;quot; runin=&amp;quot;.tdata_run&amp;quot; name=&amp;quot;.tdata&amp;quot; /&amp;gt;
    &amp;lt;ProgramSection alignment=&amp;quot;4&amp;quot; keep=&amp;quot;Yes&amp;quot; load=&amp;quot;Yes&amp;quot; runin=&amp;quot;.fs_data_run&amp;quot; name=&amp;quot;.fs_data&amp;quot; /&amp;gt;
  &amp;lt;/MemorySegment&amp;gt;
  &amp;lt;MemorySegment name=&amp;quot;$(RAM_NAME:RAM);SRAM&amp;quot;&amp;gt;
    &amp;lt;ProgramSection alignment=&amp;quot;0x100&amp;quot; load=&amp;quot;No&amp;quot; name=&amp;quot;.vectors_ram&amp;quot; start=&amp;quot;$(RAM_START:$(SRAM_START:))&amp;quot; /&amp;gt;
    &amp;lt;ProgramSection alignment=&amp;quot;4&amp;quot; load=&amp;quot;No&amp;quot; name=&amp;quot;.fast_run&amp;quot; /&amp;gt;
    &amp;lt;ProgramSection alignment=&amp;quot;4&amp;quot; load=&amp;quot;No&amp;quot; name=&amp;quot;.data_run&amp;quot; /&amp;gt;
    &amp;lt;ProgramSection alignment=&amp;quot;4&amp;quot; load=&amp;quot;No&amp;quot; name=&amp;quot;.tdata_run&amp;quot; /&amp;gt;
    &amp;lt;ProgramSection alignment=&amp;quot;4&amp;quot; load=&amp;quot;No&amp;quot; keep=&amp;quot;Yes&amp;quot; name=&amp;quot;.fs_data_run&amp;quot; address_symbol=&amp;quot;__start_fs_data&amp;quot; end_symbol=&amp;quot;__stop_fs_data&amp;quot; /&amp;gt;
    &amp;lt;ProgramSection alignment=&amp;quot;4&amp;quot; load=&amp;quot;No&amp;quot; name=&amp;quot;.bss&amp;quot; /&amp;gt;
    &amp;lt;ProgramSection alignment=&amp;quot;4&amp;quot; load=&amp;quot;No&amp;quot; name=&amp;quot;.tbss&amp;quot; /&amp;gt;
    &amp;lt;ProgramSection alignment=&amp;quot;4&amp;quot; load=&amp;quot;No&amp;quot; name=&amp;quot;.non_init&amp;quot; /&amp;gt;
    &amp;lt;ProgramSection alignment=&amp;quot;4&amp;quot; size=&amp;quot;__HEAPSIZE__&amp;quot; load=&amp;quot;No&amp;quot; name=&amp;quot;.heap&amp;quot; /&amp;gt;
    &amp;lt;ProgramSection alignment=&amp;quot;8&amp;quot; size=&amp;quot;__STACKSIZE__&amp;quot; load=&amp;quot;No&amp;quot; place_from_segment_end=&amp;quot;Yes&amp;quot; name=&amp;quot;.stack&amp;quot; /&amp;gt;
    &amp;lt;ProgramSection alignment=&amp;quot;8&amp;quot; size=&amp;quot;__STACKSIZE_PROCESS__&amp;quot; load=&amp;quot;No&amp;quot; name=&amp;quot;.stack_process&amp;quot; /&amp;gt;
  &amp;lt;/MemorySegment&amp;gt;
  &amp;lt;MemorySegment name=&amp;quot;$(FLASH2_NAME:FLASH2)&amp;quot;&amp;gt;
    &amp;lt;ProgramSection alignment=&amp;quot;4&amp;quot; load=&amp;quot;Yes&amp;quot; name=&amp;quot;.text2&amp;quot; /&amp;gt;
    &amp;lt;ProgramSection alignment=&amp;quot;4&amp;quot; load=&amp;quot;Yes&amp;quot; name=&amp;quot;.rodata2&amp;quot; /&amp;gt;
    &amp;lt;ProgramSection alignment=&amp;quot;4&amp;quot; load=&amp;quot;Yes&amp;quot; runin=&amp;quot;.data2_run&amp;quot; name=&amp;quot;.data2&amp;quot; /&amp;gt;
  &amp;lt;/MemorySegment&amp;gt;
  &amp;lt;MemorySegment name=&amp;quot;$(RAM2_NAME:RAM2)&amp;quot;&amp;gt;
    &amp;lt;ProgramSection alignment=&amp;quot;4&amp;quot; load=&amp;quot;No&amp;quot; name=&amp;quot;.data2_run&amp;quot; /&amp;gt;
    &amp;lt;ProgramSection alignment=&amp;quot;4&amp;quot; load=&amp;quot;No&amp;quot; name=&amp;quot;.bss2&amp;quot; /&amp;gt;
  &amp;lt;/MemorySegment&amp;gt;
  &amp;lt;MemorySegment name=&amp;quot;bootloaderSettings&amp;quot; start=&amp;quot;0x0003FC00&amp;quot; size=&amp;quot;0x400&amp;quot;&amp;gt;
    &amp;lt;ProgramSection alignment=&amp;quot;4&amp;quot; keep=&amp;quot;Yes&amp;quot; load=&amp;quot;No&amp;quot; name=&amp;quot;.bootloaderSettings&amp;quot; address_symbol=&amp;quot;__start_bootloader_settings&amp;quot; end_symbol=&amp;quot;__stop_bootloader_settings&amp;quot; start = &amp;quot;0x0003FC00&amp;quot; size=&amp;quot;0x400&amp;quot; /&amp;gt;
  &amp;lt;/MemorySegment&amp;gt;
&amp;lt;/Root&amp;gt;
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating from Keil to SES - Error with DFU INIT service</title><link>https://devzone.nordicsemi.com/thread/363382?ContentTypeID=1</link><pubDate>Wed, 29 Apr 2020 14:02:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d460d535-5517-41d9-acda-89bcbbc6fdb1</guid><dc:creator>KrishNa</dc:creator><description>&lt;p&gt;Awaiting your response &lt;a href="https://devzone.nordicsemi.com/members/bjorn"&gt;Bjorn&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best,&lt;/p&gt;
&lt;p&gt;Krish&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating from Keil to SES - Error with DFU INIT service</title><link>https://devzone.nordicsemi.com/thread/363381?ContentTypeID=1</link><pubDate>Tue, 28 Apr 2020 09:36:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe51a2ec-5e8c-46c0-9736-698d85a72c40</guid><dc:creator>KrishNa</dc:creator><description>&lt;p&gt;Awaiting your response &lt;a href="https://devzone.nordicsemi.com/members/bjorn"&gt;Bjorn&lt;/a&gt;. We are having tight schedule to fix this ASAP.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I really appreciate your help in resolving this issue at the earliest.&lt;/p&gt;
&lt;p&gt;Thanks in Advance.&lt;/p&gt;
&lt;p&gt;Best,&lt;/p&gt;
&lt;p&gt;Krish&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating from Keil to SES - Error with DFU INIT service</title><link>https://devzone.nordicsemi.com/thread/363380?ContentTypeID=1</link><pubDate>Mon, 27 Apr 2020 09:24:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:91bba36d-5ceb-4927-9199-557b08d1d84d</guid><dc:creator>KrishNa</dc:creator><description>&lt;p&gt;Any insights&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/bjorn"&gt;Bjorn&lt;/a&gt;?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best,&lt;/p&gt;
&lt;p&gt;Krish&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating from Keil to SES - Error with DFU INIT service</title><link>https://devzone.nordicsemi.com/thread/363379?ContentTypeID=1</link><pubDate>Fri, 24 Apr 2020 14:14:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08cd6300-d653-4d4e-9d5e-71b26d21b26e</guid><dc:creator>KrishNa</dc:creator><description>&lt;p&gt;Hi Bjorn,&lt;/p&gt;
&lt;p&gt;I have added the recommended lines to the flash placement file and it is giving me the syntax error while linking .elf files.&lt;/p&gt;
&lt;p&gt;Attaching the screenshot for your reference.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/3051.3.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;Also attaching the modified flash placement file for your reference.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/7485.flash_5F00_placement.xml"&gt;devzone.nordicsemi.com/.../7485.flash_5F00_placement.xml&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best,&lt;/p&gt;
&lt;p&gt;Krish&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating from Keil to SES - Error with DFU INIT service</title><link>https://devzone.nordicsemi.com/thread/363378?ContentTypeID=1</link><pubDate>Fri, 24 Apr 2020 13:39:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a192401-3b29-47b3-a20a-0a0a03d3f0ae</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Yes, looking at the .map file you sent I see that the bootloader settings are place at&amp;nbsp;0x3ef84&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;.bootloaderSettings
                0x000000000003ef84      0x400
                0x000000000003ef84                __bootloaderSettings_start__ = .
 *(.bootloaderSettings .bootloaderSettings.*)
 .bootloaderSettings
                0x000000000003ef84      0x400 Output/SpineFit Strack Internal/Obj/nrf_dfu_settings.o
                0x000000000003ef84                m_dfu_settings_buffer
                0x000000000003f384                __bootloaderSettings_end__ = (__bootloaderSettings_start__ + SIZEOF (.bootloaderSettings))
                0x0000000000000400                __bootloaderSettings_size__ = SIZEOF (.bootloaderSettings)
                0x000000000003f384                __bootloaderSettings_load_end__ = __bootloaderSettings_end__
                0x0000000000000001                . = ASSERT (((__bootloaderSettings_start__ == __bootloaderSettings_end__) || ((__bootloaderSettings_end__ - __FLASH_segment_start__) &amp;lt;= __FLASH_segment_size__)), error: .bootloaderSettings is too large to fit in FLASH memory segment)
                0x000000000003f384                __data_load_start__ = ALIGN (__bootloaderSettings_end__, 0x4)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The&amp;nbsp;m_dfu_settings_buffer is placed in a section called .bootloaderSettings.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;uint8_t m_dfu_settings_buffer[CODE_PAGE_SIZE] __attribute__ ((section(&amp;quot;.bootloaderSettings&amp;quot;)))
                                              __attribute__((used));&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I cant see any bootloaderSettings in your flash_placement.xml file you attached to your question, so need to add this snippet to your projects&amp;nbsp;&lt;span&gt;flash_placement.xml file&amp;nbsp;&lt;/span&gt; &amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;MemorySegment name=&amp;quot;bootloaderSettings&amp;quot; start=&amp;quot;0x0003FC00&amp;quot; size=&amp;quot;0x400&amp;quot;&amp;gt;
    &amp;lt;ProgramSection alignment=&amp;quot;4&amp;quot; keep=&amp;quot;Yes&amp;quot; load=&amp;quot;No&amp;quot; name=&amp;quot;.bootloaderSettings&amp;quot; address_symbol=&amp;quot;__start_bootloader_settings&amp;quot; end_symbol=&amp;quot;__stop_bootloader_settings&amp;quot; start = &amp;quot;0x0003FC00&amp;quot; size=&amp;quot;0x400&amp;quot; /&amp;gt;
&amp;lt;/MemorySegment&amp;gt;&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating from Keil to SES - Error with DFU INIT service</title><link>https://devzone.nordicsemi.com/thread/363377?ContentTypeID=1</link><pubDate>Fri, 24 Apr 2020 09:49:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:301d4249-3738-4862-a82a-7ca09a68d496</guid><dc:creator>KrishNa</dc:creator><description>&lt;p&gt;Thanks for the quick reply &lt;a href="https://devzone.nordicsemi.com/members/bjorn"&gt;Bjorn&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t think the pointer is at 0x0003FC00. Attaching the screenshot of the debug trace for your reference.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/1830.1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best,&lt;/p&gt;
&lt;p&gt;Krish&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating from Keil to SES - Error with DFU INIT service</title><link>https://devzone.nordicsemi.com/thread/363376?ContentTypeID=1</link><pubDate>Fri, 24 Apr 2020 07:56:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:371e9a16-5225-44a2-88e2-9eafc687d38f</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;HI Krish,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Ok, so then it has to be the&amp;nbsp;nrf_dfu_settings_write() call at the end to&amp;nbsp;nrf_dfu_settings_init(), which is called at the end of&amp;nbsp;ble_dfu_init() that is the cause. As the error code implies, the address passed to nrf_dfu_flash_erase&amp;nbsp;is not aligned to a page boundary.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/**@brief Function for erasing data from flash (with or without the SoftDevice enabled).
 *
 * @param[in]  p_dest    The address of the first byte to be deleted.
 * @param[in]  num_pages The number of flash pages to be deleted.
 * @param[in]  callback  Pointer to the callback function.
 *
 * @retval  FS_SUCCESS              If the operation was successful.
 * @retval  FS_ERR_UNALIGNED_ADDR   If @p p_dest is not aligned to a page boundary.
 * @retval  FS_ERR_INVALID_ADDR     If @p p_dest does not point to the start of a flash page or the operation would
 *                                  go beyond the flash memory boundary.
 * @retval  FS_ERR_NOT_INITIALIZED  If the fstorage module is not initialized.
 * @retval  FS_ERR_INVALID_CFG      If the initialization of the fstorage module is invalid.
 * @retval  FS_ERR_NULL_ARG         If @p p_dest is NULL.
 * @retval  FS_ERR_INVALID_ARG      If @p num_pages is zero.
 * @retval  FS_ERR_QUEUE_FULL       If the internal operation queue of the fstorage module is full.
 */
fs_ret_t nrf_dfu_flash_erase(uint32_t const * p_dest, uint32_t num_pages, dfu_flash_callback_t callback);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Can you set a breakpoint at&amp;nbsp;nrf_dfu_flash_erase in&amp;nbsp;nrf_dfu_settings_write() in nrf_dfu_settings.c? What is the pointer to to the m_dfu_settings_buffer? It should be&amp;nbsp;0x0003FC00.&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating from Keil to SES - Error with DFU INIT service</title><link>https://devzone.nordicsemi.com/thread/363375?ContentTypeID=1</link><pubDate>Fri, 24 Apr 2020 07:43:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32db7ff1-6858-4086-b66d-ee416e5f2e9c</guid><dc:creator>KrishNa</dc:creator><description>&lt;p&gt;Thanks for the reply Bjorn.&lt;/p&gt;
&lt;p&gt;I am trying to debug and find the return value of the function ble_dfu_init() function. But unfortunately, the function is not returning. it is returning&amp;nbsp;FS_ERR_UNALIGNED_ADDR error for fs_erase function.&lt;/p&gt;
&lt;p&gt;No, fds_init() function is now returning success response.&lt;/p&gt;
&lt;p&gt;I have checked my code and dfu_init function is only called after ble_stack_init() and peer_manager_init() functions. So i dont see any issues with it.&lt;/p&gt;
&lt;p&gt;Best,&lt;br /&gt;Krish&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating from Keil to SES - Error with DFU INIT service</title><link>https://devzone.nordicsemi.com/thread/363374?ContentTypeID=1</link><pubDate>Thu, 23 Apr 2020 14:30:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4fc51aa9-758c-4538-a31d-e095cf70c4bb</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Thanks! Ok, now I think that i understand more. If you are using the bootloader from SDK v12.2.0, then the&amp;nbsp;FLASH Origion + the FLASH length == Bootloader start address&lt;/p&gt;
&lt;p&gt;In the default bootloader from SDK v12.2.0 starts at&amp;nbsp;0x7A000, so the length of the flash for the application should be set to 0x3AC00- 0x1B000 = 0x1FC00&lt;/p&gt;
&lt;p&gt;So the issue is that the ble_dfu_init function return a non-zero error code? If yes, which error code is it?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Are you still seeing the&amp;nbsp;&lt;span&gt;FDS_ERR_NO_PAGES&amp;nbsp;being returned by fds_init when initializing the Peer Manager module?( call tree&amp;nbsp;peer_manager_init() -&amp;gt;&amp;nbsp;pm_init() -&amp;gt;pds_init()-fds_init()?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;In the SDK v12.2.0 buttonless dfu example&amp;nbsp;peer_manager_init() is called before&amp;nbsp;the services are initialized. So please make sure that you call your dfu_init() function after&amp;nbsp;ble_stack_init() and&amp;nbsp;peer_manager_init().&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Bjørn&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating from Keil to SES - Error with DFU INIT service</title><link>https://devzone.nordicsemi.com/thread/363373?ContentTypeID=1</link><pubDate>Wed, 22 Apr 2020 10:17:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2443486-0e5f-4a92-bde1-afc165129f2f</guid><dc:creator>KrishNa</dc:creator><description>&lt;p&gt;Thanks for the reply Bjorn.&lt;/p&gt;
&lt;p&gt;please find the code snippet of dfu init function below&lt;/p&gt;
&lt;p&gt;/**@brief Function for initializing the DFU Service.&lt;br /&gt; */&lt;br /&gt;static void dfu_init(void) &lt;br /&gt;{&lt;br /&gt; uint32_t err_code;&lt;br /&gt; ble_dfu_init_t dfus_init;&lt;/p&gt;
&lt;p&gt;// Initialize the Device Firmware Update Service.&lt;br /&gt; memset(&amp;amp;dfus_init, 0, sizeof(dfus_init));&lt;/p&gt;
&lt;p&gt;dfus_init.evt_handler = ble_dfu_evt_handler;&lt;br /&gt; dfus_init.ctrl_point_security_req_write_perm = SEC_SIGNED;&lt;br /&gt; dfus_init.ctrl_point_security_req_cccd_write_perm = SEC_SIGNED;&lt;/p&gt;
&lt;p&gt;err_code = ble_dfu_init(&amp;amp;m_dfus, &amp;amp;dfus_init);&lt;br /&gt; APP_ERROR_CHECK(err_code);&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;I am using the bootloader from SDK v12.2. i have merged dfu init functions into the application. During production, i have merged bootloader.hex, softdevice.hex and application. hex together.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best,&lt;/p&gt;
&lt;p&gt;Krish&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating from Keil to SES - Error with DFU INIT service</title><link>https://devzone.nordicsemi.com/thread/363372?ContentTypeID=1</link><pubDate>Wed, 22 Apr 2020 09:43:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9953dcaf-f692-446e-88b4-47f5e243a3c9</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Can you post a snippet of the DFU Init function?&lt;/p&gt;
&lt;p&gt;I see in the .map file that the FLASH origin is 0x1B000 and that the length is 0x25000, which means that the entire flash region above the SoftDevice is used for the application. Are you not using the bootloader from SKD v12? Or have you merged it into the application?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating from Keil to SES - Error with DFU INIT service</title><link>https://devzone.nordicsemi.com/thread/363371?ContentTypeID=1</link><pubDate>Wed, 22 Apr 2020 09:22:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fce5f96c-9247-4e47-905a-31355c1cf455</guid><dc:creator>KrishNa</dc:creator><description>&lt;p&gt;Hello &lt;a href="https://devzone.nordicsemi.com/members/bjorn"&gt;Bjorn&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;Any luck with the memory map file?&lt;/p&gt;
&lt;p&gt;I have been trying myself to resolve and found one scenario. On disabling the dfu_init() function, i am able to flash the code to the device and everything works fine.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So, something with dfu service is causing this error. We can not ignore this service as our device has to support DFU OTA update.&lt;/p&gt;
&lt;p&gt;Waiting for your reply.&lt;/p&gt;
&lt;p&gt;Best,&lt;/p&gt;
&lt;p&gt;Krish&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating from Keil to SES - Error with DFU INIT service</title><link>https://devzone.nordicsemi.com/thread/363370?ContentTypeID=1</link><pubDate>Tue, 21 Apr 2020 10:48:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b93df494-fa19-4c03-807e-ecabf803da3a</guid><dc:creator>KrishNa</dc:creator><description>&lt;p&gt;Hello &lt;a href="https://devzone.nordicsemi.com/members/bjorn"&gt;Bjorn&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;Any insight from the memory map file?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best,&lt;/p&gt;
&lt;p&gt;Krish&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating from Keil to SES - Error with DFU INIT service</title><link>https://devzone.nordicsemi.com/thread/363369?ContentTypeID=1</link><pubDate>Mon, 20 Apr 2020 09:24:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23f21001-2e58-41bf-9875-57876d4a740d</guid><dc:creator>KrishNa</dc:creator><description>&lt;p&gt;Thanks for the reply &lt;a href="https://devzone.nordicsemi.com/members/bjorn"&gt;Bjorn&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Please find the attached map file of my project.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/my_5F00_file.map"&gt;devzone.nordicsemi.com/.../my_5F00_file.map&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The section placement macros are&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;FLASH_START=0x1B000 &lt;br /&gt;RAM_START=0x20001FF8&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best,&lt;/p&gt;
&lt;p&gt;Krish&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating from Keil to SES - Error with DFU INIT service</title><link>https://devzone.nordicsemi.com/thread/363368?ContentTypeID=1</link><pubDate>Mon, 20 Apr 2020 08:53:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2f5465b-a274-4b57-9b77-0a1b45f66ee0</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;[quote user="krishna2203"][/quote]&lt;/p&gt;
&lt;p&gt;Ok, i got it. It it is the case, then what will be the solution, my application uses bootloader to support DFU. please suggest what i can do to resolve this?&lt;/p&gt;
&lt;p&gt;But does compiling the application in SES adds to the storage?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;That depends on the compiler settings used.&amp;nbsp; Can you upload the .map file for your application as well as post the&amp;nbsp;Code &amp;gt; Linker &amp;gt; Section Placement Macros you are using in your project?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating from Keil to SES - Error with DFU INIT service</title><link>https://devzone.nordicsemi.com/thread/363367?ContentTypeID=1</link><pubDate>Sat, 18 Apr 2020 14:15:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b00e798a-d1d0-48a2-a752-56d8387f7480</guid><dc:creator>KrishNa</dc:creator><description>&lt;p&gt;Ok, i got it. It it is the case, then what will be the solution, my application uses bootloader to support DFU. please suggest what i can do to resolve this?&lt;/p&gt;
&lt;p&gt;But does compiling the application in SES adds to the storage?&lt;/p&gt;
&lt;p&gt;because the same code is working fine on my board when compiled in keil and flashed on to the device.&lt;/p&gt;
&lt;p&gt;Thanks in advance.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best,&lt;/p&gt;
&lt;p&gt;Krish&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating from Keil to SES - Error with DFU INIT service</title><link>https://devzone.nordicsemi.com/thread/363366?ContentTypeID=1</link><pubDate>Fri, 17 Apr 2020 14:30:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b52803da-134c-4d43-a1b5-a2230f129d83</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;/**@brief   Function for initializing the module.
 *
 * This function initializes the module and installs the file system (unless it is installed
 * already).
 *
 * This function is asynchronous. Completion is reported through an event. Make sure to call
 * @ref fds_register before calling @ref fds_init so that you receive the completion event.
 *
 * @retval  FDS_SUCCESS         If the operation was queued successfully.
 * @retval  FDS_ERR_NO_PAGES    If there is no space available in flash memory to install the
 *                              file system.
 */
ret_code_t fds_init(void);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;See function brief above: FDS_ERR_NO_PAGES -&amp;nbsp; If there is no space available in flash memory to install the file system.&lt;/p&gt;
&lt;p&gt;How large is your application? There needs to be atleast two empty flash pages at the end of flash (if no bootloader is used) or two empty flash pages below the bootloader if a bootloader is present.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating from Keil to SES - Error with DFU INIT service</title><link>https://devzone.nordicsemi.com/thread/363365?ContentTypeID=1</link><pubDate>Fri, 17 Apr 2020 13:18:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84270026-a697-4509-b3c9-33ab0b69c73d</guid><dc:creator>KrishNa</dc:creator><description>&lt;p&gt;Thanks for the quick reply Bjorn.&lt;/p&gt;
&lt;p&gt;I made all the changes you have mentioned and debugged. This time it is giving&amp;nbsp;FDS_ERR_NO_PAGES in the pages_init function.&lt;/p&gt;
&lt;p&gt;i am attaching the screenshot of the debug trace for your reference.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/3681.1.png" /&gt;&lt;/p&gt;
&lt;p&gt;Waiting for your quick reply.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best,&lt;/p&gt;
&lt;p&gt;Krish&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migrating from Keil to SES - Error with DFU INIT service</title><link>https://devzone.nordicsemi.com/thread/363364?ContentTypeID=1</link><pubDate>Fri, 17 Apr 2020 11:31:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58fa971c-d215-4ea6-b311-20a37180f0fc</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Thanks for the screenshots.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In the disassembly I can see that the&amp;nbsp;&lt;span&gt;FS_SECTION_VARS_START_ADDR, which is loaded into r3 is 0x20005010 (&amp;nbsp; __fs_data_run_start__) and that&amp;nbsp;&lt;/span&gt;&lt;span&gt;FS_SECTION_VARS_END_ADDR is 0x20005430 ( __fs_data_run_load_end__). The config variable is 0x0001b0c0, which&amp;nbsp;is flash and not RAM.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The&amp;nbsp;fs_dfu_config variable of type&amp;nbsp;fs_config_t should be a static and should&amp;nbsp;be placed in&amp;nbsp;RAM, not flash.&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;&amp;nbsp;You need change&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&amp;lt;ProgramSection alignment=&amp;quot;4&amp;quot; load=&amp;quot;Yes&amp;quot; name=&amp;quot;.fs_data&amp;quot; /&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;under FLASH&amp;nbsp;MemorySegment to the following to ensure that in runs in RAM&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;lt;ProgramSection alignment=&amp;quot;4&amp;quot; keep=&amp;quot;Yes&amp;quot; load=&amp;quot;Yes&amp;quot; name=&amp;quot;.fs_data&amp;quot;&amp;nbsp; inputsections=&amp;quot;*(.fs_data*)&amp;quot; runin=&amp;quot;.fs_data_run&amp;quot;/&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I also see that you have two sections with name&amp;nbsp;fs_data_run in&amp;nbsp;the RAM memory Segments&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; &amp;lt;ProgramSection alignment=&amp;quot;4&amp;quot; size=&amp;quot;__STACKSIZE__&amp;quot; load=&amp;quot;No&amp;quot; name=&amp;quot;.fs_data_run&amp;quot; address_symbol=&amp;quot;__start_fs_data&amp;quot; end_symbol=&amp;quot;__stop_fs_data&amp;quot; /&amp;gt;&lt;br /&gt; &amp;lt;ProgramSection alignment=&amp;quot;4&amp;quot; keep=&amp;quot;Yes&amp;quot; load=&amp;quot;No&amp;quot; name=&amp;quot;.fs_data_run&amp;quot; address_symbol=&amp;quot;__start_fs_data&amp;quot; end_symbol=&amp;quot;__stop_fs_data&amp;quot; /&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Can you try to remove the first one?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Bjørn&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>