preload files to 9160?

Hello,

I'm working on an application that will use the nrf9160/nrf52.  I will need to make https REST calls where I will populate the http header with username/password credentials.  It's a huge security hole for me to hardcode those credentials AND we want to make it per-device specific (there will be many devices manufactured using the nrf91/nrf52 SoC.  So it would be ideal to preload some configuration file or something of the like which will represent the credentials to be accessed by the application that will be flashed after.  Also the production device will have no outside USB connection and the flash will be programmed using "pads".  Is there a way to send down something in some format to somewhere PRIOR to flashing the application?

Thanks

/Loren

Parents
  • Hi Loren

    If you have a debugger connected you could write a script that flashes some configuration data into a fixed location in flash. 

    As long as you make sure that the application and other modules don't use this area of the flash for storing anything (code or data), you can then read out this information from the application at a later time. 

    To access the flash through the debugger you can use the nrfjprog command line utility (or the pynrfjprog version, for Python). 

    Best regards
    Torbjørn

Reply
  • Hi Loren

    If you have a debugger connected you could write a script that flashes some configuration data into a fixed location in flash. 

    As long as you make sure that the application and other modules don't use this area of the flash for storing anything (code or data), you can then read out this information from the application at a later time. 

    To access the flash through the debugger you can use the nrfjprog command line utility (or the pynrfjprog version, for Python). 

    Best regards
    Torbjørn

Children
Related