This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to generate encrypted firmware image (BEM)?

Other Parts Discussed in Thread: BLE-STACK

I would like to use the BEM (instead of BIM) for over-the-air download of encrypted firmware, because we have clients who want to protect their firmware from running on other similar products.

However the OAD Guide PDF only talks about the BIM. I can see references to the BEM in the source code, and also found the BEM IAR project (which has linker issues that I have to fix). Is this a supported feature? I also found linker scripts for generating encrypted firmware Image-A and Image-B, but the post-build command seems to be the same as non-encrypted version, so where does the encryption of the image occur? I also found a Bootloader-Encrypter.exe tool in the BLE-STACK, but it seems to require a serial port (??).

Basically, where can I find more documentation about encrypted OAD? :-)

  • Hi,

    I also meet the problem now and don't know how to resolve it. Have you dealed with it ? Could you give me some suggestions?

    best regards,

    Guohui

  • Hi,

    One possible solution is:

    . Use the normal OAD BIM

    . In Central device, encrypt the sending data ( every 16bytes block data) with your own key with an AES function

    . In Peripheral device, decrypt the receiving data in the device with your known key

    I haven't tried this yet but that is one I will do if I need encrypt data in OAD.

    Good luck,

     

    Jack