Because of the Thanksgiving holiday in the U.S., TI E2E™ design support forum responses may be delayed the week of November 23.

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.

Retrieving unused area of the flash

Hello,

i am using I am using 123GH6PGE DK , TivaWare_C_Series-1.1 ,CCS 5.4 and tirtos_1_21_00_09

1-If i want to use the free area of the flash for my data storage i know that i can determine the range where to load my program by CCS's CMD file and i can retrieve the unused data from the map file ,but what should i do to retrieve this amount of Free(Unused) area dynamically.

2-When i try to write to the code area on flash (after erasing it) i don't get any error indication and it lets me program over the code data

  • Hello Ahmed

    1. I would suggest updating TIVAWare to 2.1.0 release

    2. CCS CMD file to restrict the size and then use this information is by far the simplest and most effective.

    3. I am not sure what the last part meant? After erasing the flash and writing a new data in flash will not give an error!!

    Regards

    Amit

  • Hello Amit,

    First thank you for your reply then, i know what ccs CMD functions but what i ask about is there any API could return the free amount of the  flash? i.e (how can i request the free amount of flash?) .

    and about the last part :i 'd like to interpret if i wrote over the code section of the flash  by mistake is there any error indication to that overwriting ?

  • Hello Ahmed

    There is no TIVAWare API to do so. The unused locations which would read 0xFFFF.FFFF could be valid data for the program.

    If you write to the code section using FlashProgram and if the written data matches the existing data then it is not possible to find that out. Neither is it possible to know if the written data is such that the resulting data matches the written data due to a bit flip from 1 to 0. Only if the written data is such that it tries to change a 0 to 1 will it give a Programming Error

    Regards

    Amit