This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Signing update rejected

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.c instead of dfu_init_template.c i signed my update with my pem file key

Parents
  • Hi Fabien,

    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.

    -Bjørn

    Attachments:

    nRF5_SDK_v11_0_0_nrf52_dfu_signing_290316.zip (DFU with signing example)

  • facotl(Fabien Comte): Why aren't you using the linker settings in the dfu_gcc_nrf52.ld linker script?

    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
    }
    
Reply
  • facotl(Fabien Comte): Why aren't you using the linker settings in the dfu_gcc_nrf52.ld linker script?

    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
    }
    
Children
No Data
Related