<?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>Signing update rejected</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/11486/signing-update-rejected</link><description>When i try to do an update with Nrfutils Under android i get a REMOTE_DFU_OPERATION_FAILED since i added signing. 
 I created my pem file key with nrfutil.exe keys
i copied Qx and Qy in my dfu_init_template_signing.c
i modified Makefile to use dfu_init_template_signing</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 12 Jul 2016 09:35:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/11486/signing-update-rejected" /><item><title>RE: Signing update rejected</title><link>https://devzone.nordicsemi.com/thread/43378?ContentTypeID=1</link><pubDate>Tue, 12 Jul 2016 09:35:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f5e32e8-14d8-4e93-bc78-b834f2e2d7aa</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Yes, as you pointed out , the SecuritySVCHandler is not defined for __GNUC. You&amp;#39;ll have to port it and modify SVC_Handler to branch to the Security_SVC_Handler if the SVC number is equal to 8.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Signing update rejected</title><link>https://devzone.nordicsemi.com/thread/43381?ContentTypeID=1</link><pubDate>Fri, 08 Jul 2016 13:13:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4aeb7664-9cdd-4e0a-ba61-3ae6ef92601d</guid><dc:creator>Fabien Comte</dc:creator><description>&lt;p&gt;Hello, are you using normal mapping ? Did you fixed it ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Signing update rejected</title><link>https://devzone.nordicsemi.com/thread/43377?ContentTypeID=1</link><pubDate>Sun, 03 Jul 2016 08:31:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e876cd06-2f8a-4ed3-834c-26b1850434c7</guid><dc:creator>Fabien Comte</dc:creator><description>&lt;p&gt;Security_SVC_Handler is not defined for GCC, so how it knows nrf_sec position ? Is GCC supported ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Signing update rejected</title><link>https://devzone.nordicsemi.com/thread/43376?ContentTypeID=1</link><pubDate>Fri, 01 Jul 2016 14:11:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6df09683-0cdb-44ce-9585-35488630d0f5</guid><dc:creator>Fabien Comte</dc:creator><description>&lt;p&gt;Hello,
I reserved a bigger size for bootloader (i have another device to init). I guess that your ld is for bootloader.
Can I make my mapping compatible with sec ? if yes how please ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Signing update rejected</title><link>https://devzone.nordicsemi.com/thread/43375?ContentTypeID=1</link><pubDate>Thu, 30 Jun 2016 13:09:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21db41c5-20d9-479f-884b-7492c79dd1cf</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;facotl(Fabien Comte): Why aren&amp;#39;t you using the linker settings in the dfu_gcc_nrf52.ld linker script?&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;FLASH (rx) : ORIGIN = 0x7A000, LENGTH = 0x4000

  /** RAM Region for bootloader. This setting is suitable when used with s132. */
  RAM (rwx) :  ORIGIN = 0x20002C00, LENGTH = 0x5380

  /** Location of non initialized RAM. Non initialized RAM is used for exchanging bond information
   *  from application to bootloader when using buttonluss DFU OTA. 
   */
  NOINIT (rwx) :  ORIGIN = 0x20007F80, LENGTH = 0x80

  /** Location of bootloader setting in flash. */
  BOOTLOADER_SETTINGS (rw) : ORIGIN = 0x0007F000, LENGTH = 0x1000

  /** Location in UICR where bootloader start address is stored. */
  UICR_BOOTLOADER (r) : ORIGIN = 0x10001014, LENGTH = 0x04
  
  /** Location of mbr params page in flash. */
  MBR_PARAMS_PAGE (rw) : ORIGIN = 0x0007E000, LENGTH = 0x1000
  
  /** Location in UICR where mbr params page address is stored. */
  UICR_MBR_PARAM_PAGE(r) : ORIGIN = 0x10001018, LENGTH = 0x04
}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Signing update rejected</title><link>https://devzone.nordicsemi.com/thread/43380?ContentTypeID=1</link><pubDate>Fri, 24 Jun 2016 12:00:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32fcbfd2-4803-40b5-981e-c8554874ff73</guid><dc:creator>Fabien Comte</dc:creator><description>&lt;p&gt;Did you set somewhere in code the address of nrf_sec ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Signing update rejected</title><link>https://devzone.nordicsemi.com/thread/43374?ContentTypeID=1</link><pubDate>Fri, 24 Jun 2016 11:57:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b44cd4b2-8672-48d4-96a8-1171b289fd75</guid><dc:creator>Fabien Comte</dc:creator><description>&lt;p&gt;I have already modified theses ones in dfu_types.h&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define BOOTLOADER_REGION_START             0x00075800                  
#define BOOTLOADER_SETTINGS_ADDRESS         0x0007C800                 
#define BOOTLOADER_MBR_PARAMS_PAGE_ADDRESS  0x0007B800
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Signing update rejected</title><link>https://devzone.nordicsemi.com/thread/43373?ContentTypeID=1</link><pubDate>Fri, 24 Jun 2016 11:49:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7bfe3a9e-f070-4ecd-9885-02df46536fdc</guid><dc:creator>Fabien Comte</dc:creator><description>&lt;p&gt;Hello,
I try to re open this question :-)&lt;/p&gt;
&lt;p&gt;I just thinked, NRFSEC_SETTINGS and NRFSEC_MODULE are specifics. Is there somewhere to set them in code ?&lt;/p&gt;
&lt;p&gt;This is my linker configuration (in ld file)&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;      FLASH (rx) : ORIGIN = 0x00075800, LENGTH = 0x6000 /* 24 Ko bootloader */
	/* modify BOOTLOADER_REGION_START in dfu_types.h to use the previous origin*/
	
	SOFT_DEVICE (rw) : ORIGIN = 0x00000000, LENGTH = 0x1C000
	
   /** slot 1 */
	SLOT_1 (rw) : ORIGIN = 0x0001C000, LENGTH = 0x2C400
	
  /** slot 2 */
	SLOT_2 (rw) : ORIGIN = 0x00048400, LENGTH = 0x2C400
	
  	/** Location of application data */
	APPLICATION_DATA (rw) : ORIGIN = 0x00074800, LENGTH = 0x1000
  
  /** Flash start address for the bootloader. This setting will also be stored in UICR to allow the
   *  MBR to init the bootloader when starting the system. This value must correspond to 
   *  BOOTLOADER_REGION_START found in dfu_types.h. The system is prevented from starting up if 
   *  those values do not match. The check is performed in main.c, see
   *  APP_ERROR_CHECK_BOOL(*((uint32_t *)NRF_UICR_BOOT_START_ADDRESS) == BOOTLOADER_REGION_START);
   */
  BOOTLOADER (rx) : ORIGIN = 0x00075800, LENGTH = 0x6000 /* 24 Ko bootloader */
	/* modify BOOTLOADER_REGION_START in dfu_types.h to use the previous origin*/
	
	/** Location of mbr params page in flash. */
  MBR_PARAMS_PAGE (rw) : ORIGIN = 0x0007B800, LENGTH = 0x1000
  
  /** Location of bootloader setting in flash. */
  BOOTLOADER_SETTINGS (rw) : ORIGIN = 0x0007C800, LENGTH = 0x1000
  
  /** Update signing module */
  NRFSEC_SETTINGS (rw) : ORIGIN = 0x0007D800, LENGTH = 0x400
  NRFSEC_MODULE (rw) : ORIGIN = 0x0007DC00, LENGTH = 0x2400

  /** RAM Region for bootloader. This setting is suitable when used with s132. */ /* see in app_ram_base.h APP_RAM_BASE_CENTRAL_LINKS_3_PERIPH_LINKS_1_SEC_COUNT_3_MID_BW */
  RAM (rwx) :  ORIGIN = 0x20002F50, LENGTH = 0xD030

  /** Location of non initialized RAM. Non initialized RAM is used for exchanging bond information
   *  from application to bootloader when using buttonluss DFU OTA. 
   */
  NOINIT (rwx) :  ORIGIN = 0x2000FF80, LENGTH = 0x80

  /** Location in UICR where bootloader start address is stored. */
  UICR_BOOTLOADER (r) : ORIGIN = 0x10001014, LENGTH = 0x04
    
  /** Location in UICR where mbr params page address is stored. */
  UICR_MBR_PARAM_PAGE(r) : ORIGIN = 0x10001018, LENGTH = 0x04
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Signing update rejected</title><link>https://devzone.nordicsemi.com/thread/43379?ContentTypeID=1</link><pubDate>Tue, 07 Jun 2016 10:18:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:972d7c97-8f7f-4a8e-9c36-1283635bef41</guid><dc:creator>Fibar_TeamA</dc:creator><description>&lt;p&gt;Hi Bjørn,&lt;/p&gt;
&lt;p&gt;I have a problem with this example.
When I try send a DFU package (ble_app_hrs_s132_with_dfu_signed.zip) from MCP 3.10.0.14 every time I catch BLE_ERROR_INVALID_CONN_HANDLE on dfu_transport_ble.c&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;       case BLE_DFU_BYTES_RECEIVED_SEND:
        err_code = ble_dfu_bytes_rcvd_report(p_dfu, m_num_of_firmware_bytes_rcvd);
        APP_ERROR_CHECK(err_code);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;It&amp;#39;s looks like SD can&amp;#39;t Notify application but i have no idea why. Conn_handle isn&amp;#39;t empty.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Name : conn_handle
Hex:0x70d0
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The same problem with update from android nrf MCP.&lt;/p&gt;
&lt;p&gt;Chip: nrf52832-QFAAB0&lt;/p&gt;
&lt;p&gt;SD: s132_nrf52_2.0.0_softdevice.exe&lt;/p&gt;
&lt;p&gt;GCC: 4.9 2015q3&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Signing update rejected</title><link>https://devzone.nordicsemi.com/thread/43372?ContentTypeID=1</link><pubDate>Mon, 09 May 2016 07:26:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c61eb98-4dd4-4c97-9e5b-a01407845636</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Are you able to identify where the reset, i.e. the device enters app_error_fault_handler?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Signing update rejected</title><link>https://devzone.nordicsemi.com/thread/43371?ContentTypeID=1</link><pubDate>Thu, 05 May 2016 19:27:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b469fed4-aca5-4763-987b-bc8c72d345dc</guid><dc:creator>Fabien Comte</dc:creator><description>&lt;p&gt;Hello, i finally found time to test and it was not a success. nRF52 reset few seconds after the DFU started...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Signing update rejected</title><link>https://devzone.nordicsemi.com/thread/43370?ContentTypeID=1</link><pubDate>Fri, 29 Apr 2016 07:37:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82f27083-39a1-41cc-a0e5-4db7824e3389</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;No problem. Keep me posted if you run into any problems.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Signing update rejected</title><link>https://devzone.nordicsemi.com/thread/43369?ContentTypeID=1</link><pubDate>Fri, 29 Apr 2016 07:27:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ce5ae61-5018-4e9a-9a58-373fa0e0ac35</guid><dc:creator>Fabien Comte</dc:creator><description>&lt;p&gt;Thank you for your response, i will try asap&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Signing update rejected</title><link>https://devzone.nordicsemi.com/thread/43368?ContentTypeID=1</link><pubDate>Mon, 11 Apr 2016 06:00:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78cf16c4-d81c-412c-bdcd-3b49fdc50e4a</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Yes, it is based in SDK v11.0.0. I suggest you read the Experimental DFU Signing pdf, found in &lt;em&gt;examples/dfu/experimental&lt;/em&gt;. Just extract the zip as a regular SDK release and you should be able to compile and flash the example.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Signing update rejected</title><link>https://devzone.nordicsemi.com/thread/43367?ContentTypeID=1</link><pubDate>Sun, 10 Apr 2016 13:59:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6a87515-2c22-4805-950f-16e7f93f3138</guid><dc:creator>Fabien Comte</dc:creator><description>&lt;p&gt;Hello, how can i use it ? There is a lot of files Inside, is that 11 final based ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Signing update rejected</title><link>https://devzone.nordicsemi.com/thread/43366?ContentTypeID=1</link><pubDate>Sun, 10 Apr 2016 13:55:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6034fc14-b9d1-468d-849d-e06b6852f4eb</guid><dc:creator>Fabien Comte</dc:creator><description>&lt;p&gt;Thank you, i will try asap&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Signing update rejected</title><link>https://devzone.nordicsemi.com/thread/43365?ContentTypeID=1</link><pubDate>Wed, 30 Mar 2016 09:04:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a53356f-d96d-4c8e-a0c6-4b731e5db9f7</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi Fabien,&lt;/p&gt;
&lt;p&gt;I have attached a modified version of the nRF5 SDK v11.0.0,  where I have ported the DFU with signing example from nRF52 SDK v0.9.2.&lt;/p&gt;
&lt;p&gt;-Bjørn&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Attachments:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nRF5_5F00_SDK_5F00_v11_5F00_0_5F00_0_5F00_nrf52_5F00_dfu_5F00_signing_5F00_290316.zip"&gt;nRF5_SDK_v11_0_0_nrf52_dfu_signing_290316.zip&lt;/a&gt; (DFU with signing example)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Signing update rejected</title><link>https://devzone.nordicsemi.com/thread/43364?ContentTypeID=1</link><pubDate>Tue, 09 Feb 2016 13:20:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c1ef4cc0-9d81-4caa-b0eb-c0251bf8c2c6</guid><dc:creator>Fabien Comte</dc:creator><description>&lt;p&gt;Hello,
It&amp;#39;s on nRF52.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Signing update rejected</title><link>https://devzone.nordicsemi.com/thread/43363?ContentTypeID=1</link><pubDate>Wed, 27 Jan 2016 12:02:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5114ceff-f488-459b-bd72-52ac59bb0035</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;There is no experimental folder under examples/dfu containing bootloader_signing and the nrf_sec_module as far as I know in SDK v11. Are you trying to port it from SDK v10? Are you using it on the nRF51 or nRF52?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Signing update rejected</title><link>https://devzone.nordicsemi.com/thread/43362?ContentTypeID=1</link><pubDate>Wed, 27 Jan 2016 11:43:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cac8f663-ab27-41ae-972c-767656ba50b2</guid><dc:creator>Fabien Comte</dc:creator><description>&lt;p&gt;But bootloader with signing is available in SDK 11...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Signing update rejected</title><link>https://devzone.nordicsemi.com/thread/43361?ContentTypeID=1</link><pubDate>Wed, 27 Jan 2016 08:04:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4cfa0b6a-6d1d-4402-87ef-62f5dd147554</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;DFU with signing is experimental and is currently only released as a part of SDK v10 for nRF51.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Signing update rejected</title><link>https://devzone.nordicsemi.com/thread/43360?ContentTypeID=1</link><pubDate>Tue, 26 Jan 2016 19:45:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a8b4b0c-bc1f-4bed-a8b7-0812840f405a</guid><dc:creator>Fabien Comte</dc:creator><description>&lt;p&gt;I posted here for nrf_sec
&lt;a href="https://devzone.nordicsemi.com/question/66024/where-is-nrf_sec-in-sdk-11/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;
Thank you for your help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Signing update rejected</title><link>https://devzone.nordicsemi.com/thread/43359?ContentTypeID=1</link><pubDate>Tue, 26 Jan 2016 19:39:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90c227dd-262e-47dc-ae7e-75f96ed83651</guid><dc:creator>Wojtek</dc:creator><description>&lt;p&gt;No. It is still possible to dump your rom (unless you set readback protect). There is no encryption of the updated app. Signing only secures your device against somebody who could connect to it with mobile MCP and upload blinky or some hello world app :) Somewhere near that nrf_sec should be some nice PDF document describing whole signing process and advantages it gives.&lt;/p&gt;
&lt;p&gt;Did you also check ZIP version?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Signing update rejected</title><link>https://devzone.nordicsemi.com/thread/43358?ContentTypeID=1</link><pubDate>Tue, 26 Jan 2016 19:39:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43b48317-3542-49a8-a069-638b894416ce</guid><dc:creator>Fabien Comte</dc:creator><description>&lt;p&gt;Not found in SDK 11 last alpha&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Signing update rejected</title><link>https://devzone.nordicsemi.com/thread/43357?ContentTypeID=1</link><pubDate>Tue, 26 Jan 2016 19:37:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2af8c2b1-797b-4454-8be1-11d35fcb7c71</guid><dc:creator>Fabien Comte</dc:creator><description>&lt;p&gt;Do you know if signing DFU also protect (encryption) against unsollicited hacker copie ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>