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

Is there any way to make hex file like setting.hex file which is automatically write my data in "APP DATA" section when i include the .hex file with my application.hex file

hello all,

i am using nRF52832 SoC in my project and my requirement is to write some configuration into internal flash when i flash the program using segger j link.

for better understanding i explain the steps which i want

1. i have one application.hex, setting.hex, bootloader.hex files

2. i have added setting.hex and bootloader.hex file in additional load file section in segger embedded studio

Now what i required

i want to make one .hex file which is having some configuration about my project ( like setting.hex file which write the setting in internal flash when we flash the program on SoC ) but i don't have any idea, how i make this type of hex file

i need one configuration.hex (which is having configuration about my project) file so i can include this hex file in additional load file section and access the data from my application

Parents Reply
  • hello kenneth

    i tried with same way but did not get the expected result

    i am using segger embedded studio so i write code something like:

    #define SERIAL_NUMBER ( 0x12 )

        const uint32_t vpd_addr
        __attribute__((section(".vpd_address")))
        __attribute__((used)) = SERIAL_NUMBER;

    also define section in flash_placement.xml like this

    <MemorySegment name="$(FLASH_NAME:FLASH)">

    [...]
        <ProgramSection alignment="4" load="yes" name=".vpd_address" start="0x00074000" />
    [...]
     </MemorySegment>

    after this changes i debug the code and view the memory map but my value is not written on 0x74000 address
Children
Related