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

[nRF51822] How to merge software device and application code to one hex file

Hi sir In order to simplify the flow of programming hex file to nRF51, we want to merge Softdevice hex file with application hex file. Then, generate a new hex file. Could "mergehex" tool make it? If yes, please make a instance how to work it. Thanks.

Parents
  • But how do you make sure the softdevice code is protected for the application? if you merge the softdevice with application code then the application can read softdevice ram data, right?

    I assume it is not possible to place the combined hex in application space because the peripherals will be blocked for the softdevice as well. And placing the application code in region 0 will generate some really bad security issues. It is now possible for the application code to read/write the softdevice ram etc.

    So why would nordic approve this?

    We are busy with our own softdevice, but reading this makes me a bit concerned about the purpose of code region protection when the application can be merged with softdevice.

Reply
  • But how do you make sure the softdevice code is protected for the application? if you merge the softdevice with application code then the application can read softdevice ram data, right?

    I assume it is not possible to place the combined hex in application space because the peripherals will be blocked for the softdevice as well. And placing the application code in region 0 will generate some really bad security issues. It is now possible for the application code to read/write the softdevice ram etc.

    So why would nordic approve this?

    We are busy with our own softdevice, but reading this makes me a bit concerned about the purpose of code region protection when the application can be merged with softdevice.

Children
No Data
Related