<?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>dfu\secure_bootloader\pca10040_s132_ble does not fit in FLASH SDK 17.10 Segger Embedded Studio v5.42a</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/97201/dfu-secure_bootloader-pca10040_s132_ble-does-not-fit-in-flash-sdk-17-10-segger-embedded-studio-v5-42a</link><description>I compiling the example as it is, I have just added the micro-ecc library and updated the dfu_public_key, but I get this error 
 
 
 
 
 SEGGER Embedded Studio for ARM 5.42a is the version recommended in the SDK release note, I have tried more recent</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 01 Mar 2023 14:56:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/97201/dfu-secure_bootloader-pca10040_s132_ble-does-not-fit-in-flash-sdk-17-10-segger-embedded-studio-v5-42a" /><item><title>RE: dfu\secure_bootloader\pca10040_s132_ble does not fit in FLASH SDK 17.10 Segger Embedded Studio v5.42a</title><link>https://devzone.nordicsemi.com/thread/412792?ContentTypeID=1</link><pubDate>Wed, 01 Mar 2023 14:56:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fbe68ddf-996c-4c2b-b506-5bad35e56f1a</guid><dc:creator>RoccoBr</dc:creator><description>&lt;p&gt;thank you very much Vidar, I was absolutely convinced that I did revert that file, but I was definitely wrong!&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: dfu\secure_bootloader\pca10040_s132_ble does not fit in FLASH SDK 17.10 Segger Embedded Studio v5.42a</title><link>https://devzone.nordicsemi.com/thread/412786?ContentTypeID=1</link><pubDate>Wed, 01 Mar 2023 14:34:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df6f8d48-b85b-4fb3-93cd-49e9bab93743</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;I see you have made some modifications to the BLE transport (nrf_dfu_ble.c), which increases the flash footprint of the bootloader.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="diff"&gt;--- /Rocco_nrF5_SDK/components/libraries/bootloader/ble_dfu/nrf_dfu_ble.c
+++ /nRF5_SDK_17.0.2_d674dde/components/libraries/bootloader/ble_dfu/nrf_dfu_ble.c
@@ -40,7 +40,6 @@
 #include &amp;quot;nrf_dfu_ble.h&amp;quot;
 
 #include &amp;lt;stddef.h&amp;gt;
-#include &amp;lt;stdlib.h&amp;gt;
 #include &amp;quot;sdk_common.h&amp;quot;
 #include &amp;quot;nrf_dfu_transport.h&amp;quot;
 #include &amp;quot;nrf_dfu_types.h&amp;quot;
@@ -914,46 +913,6 @@
 }
 #endif
 
-/**@brief get the serial number from the flash.
- *
- * @details serial number is added to the advertising packet 
- * 
- */
-
- char* my_itoa(int i, char b[]){
-    char const digit[] = &amp;quot;0123456789&amp;quot;;
-    char* p = b;
-    if(i&amp;lt;0){
-        *p++ = &amp;#39;-&amp;#39;;
-        i *= -1;
-    }
-    int shifter = i;
-    do{ //Move to where representation ends
-        ++p;
-        shifter = shifter/10;
-    }while(shifter);
-    *p = &amp;#39;\0&amp;#39;;
-    do{ //Move back, inserting digits as u go
-        *--p = digit[i%10];
-        i = i/10;
-    }while(i);
-    return b;
-}
-char bn_name[] = &amp;quot;DFU_CC24800000&amp;quot;;
-
-void array_of_char(int number, char *numberArray)
-{
-   int count = 0;    
-   int n = number;
-
-   while (n != 0){
-       numberArray[count] = n % 10 + &amp;#39;0&amp;#39;;
-       n /= 10;
-       count++;
-   }
-    numberArray[count] = &amp;#39;\0&amp;#39;;
-}
-
 
 /**@brief     Function for initializing GAP.
  *
@@ -964,7 +923,7 @@
 {
     uint32_t                err_code;
     ble_gap_conn_sec_mode_t sec_mode;
-    uint8_t const *       device_name;
+    uint8_t const *         device_name;
     uint32_t                name_len;
 
     BLE_GAP_CONN_SEC_MODE_SET_OPEN(&amp;amp;sec_mode);
@@ -973,29 +932,6 @@
 
     err_code = gap_address_change();
     VERIFY_SUCCESS(err_code);
-
-    
-
-       uint32_t serial;
-       char name_buffer[4];
-        int no_chars=0, indx;
-      memcpy(&amp;amp;serial, (uint32_t*)0x10001080, 4);
-
-
-    serial &amp;amp;= 0xFFFF;
-    //serial = 0xb;
-   
-    
-    //array_of_char(serial, name_buffer);
-    
-    no_chars = sprintf(name_buffer, &amp;quot;%d&amp;quot;, serial);
-    //my_itoa(serial, name_buffer);
-     indx = no_chars-1;
-     strcpy(&amp;amp;bn_name[14-indx-1], name_buffer);
-
-
-     
-    NRF_LOG_DEBUG(&amp;quot;ROCCO name: %s&amp;quot;,bn_name);
 
     if ((m_flags &amp;amp; DFU_BLE_FLAG_USE_ADV_NAME) != 0)
     {
@@ -1007,13 +943,11 @@
 #endif
     {
         NRF_LOG_DEBUG(&amp;quot;Using default advertising name&amp;quot;);
-        //device_name = (uint8_t const *)(NRF_DFU_BLE_ADV_NAME);
-        //name_len    = strlen(NRF_DFU_BLE_ADV_NAME);
-        device_name = (uint8_t const *)(bn_name);
-        name_len    = strlen(bn_name);
-    }
-
-    err_code = sd_ble_gap_device_name_set(&amp;amp;sec_mode, device_name, name_len); 
+        device_name = (uint8_t const *)(NRF_DFU_BLE_ADV_NAME);
+        name_len    = strlen(NRF_DFU_BLE_ADV_NAME);
+    }
+
+    err_code = sd_ble_gap_device_name_set(&amp;amp;sec_mode, device_name, name_len);
     VERIFY_SUCCESS(err_code);
 
     err_code = sd_ble_gap_ppcp_set(&amp;amp;m_gap_conn_params);
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;To fix this, you can either revert the change, or lower the Bootloader start address by 0x1000 to increase the size of the bootloader section in flash.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: dfu\secure_bootloader\pca10040_s132_ble does not fit in FLASH SDK 17.10 Segger Embedded Studio v5.42a</title><link>https://devzone.nordicsemi.com/thread/412769?ContentTypeID=1</link><pubDate>Wed, 01 Mar 2023 13:51:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79a1fbb1-687e-4c9e-8571-283ea7b84f44</guid><dc:creator>RoccoBr</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Rocco_5F00_nrF5_5F00_SDK.zip"&gt;devzone.nordicsemi.com/.../Rocco_5F00_nrF5_5F00_SDK.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: dfu\secure_bootloader\pca10040_s132_ble does not fit in FLASH SDK 17.10 Segger Embedded Studio v5.42a</title><link>https://devzone.nordicsemi.com/thread/412760?ContentTypeID=1</link><pubDate>Wed, 01 Mar 2023 13:41:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06ca40c7-1542-4c11-9278-8bdb35785493</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;It is surprising that you ran out of flash with this project, especially considering you are using the same toolchain as mentioned in the release notes. I&amp;nbsp;was not able to reproduce this here either.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you upload your SDK with the uECC libraries here or in a private ticket to see if it allows me to reproduce the problem?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>