Mapping a binary file to a flash partition

Hi there,

I have multiple flash partitions defined in pm_static.yml.

I want one specific partition to contain a binary data file so that when I flash the image with J-Link, the bootloader, the application firmware, and the binary file are flashed together.

The binary file doesn't occupy the entire flash partition. The rest of the partition content doesn't matter.

Thanks in advance!

- Laci

Parents
  • Hello,

    Sorry for the delayed response. It's summer vacation here in Norway, and we have a limited number of staff working, which is why it took me some time to get back to you.

    I am not 100% sure, as I haven't tried this before, but I think this can be achievable. Define the partition for the binary in the `pm_static.yml` file and keep your binary file in the root of your application. Edit your main `CMakeLists.txt` file to include the binary file in the custom partition. In the CMake configuration, you need to define the binary file to be included and then add the binary to the build system.

    Kind regards,

    Abhijith

Reply
  • Hello,

    Sorry for the delayed response. It's summer vacation here in Norway, and we have a limited number of staff working, which is why it took me some time to get back to you.

    I am not 100% sure, as I haven't tried this before, but I think this can be achievable. Define the partition for the binary in the `pm_static.yml` file and keep your binary file in the root of your application. Edit your main `CMakeLists.txt` file to include the binary file in the custom partition. In the CMake configuration, you need to define the binary file to be included and then add the binary to the build system.

    Kind regards,

    Abhijith

Children
No Data
Related