CONFIG_DISABLE_FLASH_PATCH purpose

Hi

I see i get a cmake warning with DFU enabled with the following message:

      ----------------------------------------------------------
      --- WARNING: To maintain the integrity of secure boot, ---
      --- enable CONFIG_DISABLE_FLASH_PATCH in production.   ---
      ----------------------------------------------------------

whats the purpose of this? should i just have it always enabled in my conf, or for prod only?

it seems to include https://github.com/NordicPlayground/nRF52-flash-patch/blob/master/example/flash_patch.c 

Parents Reply
  • Well, it is not required to add flash patch code to each of your images. This code flash_patch.c checks whether the flash_patch is disabled in the UICR and then disables it, if not already done. This is persistent until the next full chip erase. So maybe you can try doing something to suppress the warning in your code, but it's totally up to you. And as long as it doesn't interfere with your working, then I guess it's okay? 

    You can see the conditions where you get warnings in the link I had mentioned in the earlier comments:

    -Priyanka

Children
No Data
Related