nRF5 SDK is not maintained anymore
More Info: Consider nRF Connect SDK for new designs

DFU with a compressed LZ4 file

Hello! 

I am working on a FOTA solution for the nRF52DK, I have followed this example: https://devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/software/posts/ncs-dfu

The FOTA works using the nRF Device Manager application and a binary image file.

For the project, it is planned to compress the binary image file with lz4 and in the bootloader of the MCU include a decompressor.

However, in nRF Device Manager it says invalid file when trying to flash the compressed image.

Does anyone have a recommendation to solve this? Other plans work as well, in general what is needed is for a lz4 compressed file to be flashed onto the MCU.

Parents Reply
  • Hi again, I looked into the manager.start function in Firmware Upgrade Manager which looks as follows:

    The line in the for loop calls for fromBytes() function, which I belive is the issue, this looks as follows:

    As you can see, many function in here for example getHash() will return error.

    How should I go by changing this function in order to not ruin the image information being sent through DFU?

Children
Related