I have a static Bitmap image file that I would like to build into the firmware image at build time. I would like to store this data on a flash partition that is NOT "NVMS_FIRMWARE_PART".
How do I include some binary data to be added to a flash partition at build time?
Thank you for your online forum question.We are working on this and will get back to you as soon as possible.Best regards,AA_Renesas
Hi Nathan,As far as I understand, here are two options to achieve your requirement:1. Create a custom section in sections.ld.h file. You can then use an attribute to define the specific placement of the bitmap image file. Please check the following tutorial on creating custom partitionshttp://lpccs-docs.dialog-semiconductor.com/da1468x_adapters_concept/nvms_storage.html#creating-custom-partition-tables
Please also note that the modification of the linker script is up to you to modify according to your requirements.2. Use the Command Line Implementation (CLI) of the SmartSnippets Toolbox in order to write the bitmap file to a specific place in the flash memory. You can find documentation on (CLI) in chapter 35 (see command -cmd write -file)https://s3.eu-west-2.amazonaws.com/lpccs-docs.dialog-semiconductor.com/UM-B-083/cli/command_line_if.html of the SmartSnippets Toolbox user manual.Best regards,AA_Renesas
I would like to revisit this now.
I already have my partition table set up. That part is working.
To restate my question:
I have a block of binary data that I need to be included at the same partition table location in each firmware build.
You mention the sections.ld.h. Do you have any examples of how that file would need to be modified to include a block of data in the firmware image at a specific flash location?
We don't have such an example that shows how to modify the linker script file. As mentioned by AA_Renesas, the modification of the linker script is up to you. The SDK is supported with the default sections.ld.h header file.
Can you point me to any documentation about this, from anywhere? Is this specific to the SDK or is it a eclipse/gcc thing? If it's a gcc thing, can you point me in the direction of some sort of explanation for how this works?
Ping. Happy Tuesday.
Ping. And a case of the Mondays.
There is no documentation on how the linker script files can be modified. And we strongly recommend not modifying the .ld files.
YOu could take a look here : https://users.informatik.haw-hamburg.de/~krabat/FH-Labor/gnupro/5_GNUPro_Utilities/c_Using_LD/ldLinker_scripts.html
but it's up to you how to modify it.