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.

LAUNCHXL-CC1350: Locate the code in intern flash and write data in unused flash pages

Part Number: LAUNCHXL-CC1350
Other Parts Discussed in Thread: CC1350

Hello,

I am working on CC1350 LaunchPad. I am trying to write/read data in/from intern flash. I want to know how to locate the code of my application and stack projects. So, I can write in unused flash sectors (pages). The map files and the linkInfo.xml files of the 2 projects can help me to do that ? Could you please give me documentation to understand these long files ?

Thank you !

Best regards,

  • Hi,

    there is a demo project attached to this e2e post that shows how to write to an internal flash page. It is based on TI-RTOS 2.16, but should be enough to understand the whole concept.

  • Hello Richard,

    Thank you for your reply. It's a good example to update data in flash. But, in my project, I need to know in which pages of flash is written my compiled code. So, I can write data in unused flash pages. How can I know this ? Thank you Richard !

    Best regards,
  • Hi,

    instead of the XML file, I recommend looking at the *.map file that is also produced by the linker (enabled by default in CCS). The linker map file presents the memory allocation in a more reader-friendly format. Have a look at the segment allocation map. Example snippet:

      000014f0    000014f0    00006464   00006464    r-x .text
    0001ffa8    0001ffa8    00000058   00000058    r--
      0001ffa8    0001ffa8    00000058   00000058    r-- .ccfg

    The .text section contains the application code while the .ccfg section contains the custom configuration data. The above line tells you that application code starts at 0x14f0 and is 0x6464 bytes long. The CCFG area starts at 0x1ffa8 and is 0x58 bytes long.

  • Thank you Richard. That helped me to resolve my problem.