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.

TMS320F280039: Random data after the ending of the code memory

Part Number: TMS320F280039

Hi Champs,

I ask this for our customer.

In customer's .cmd file, they set flash memory as follows:

Customer is viewing the flash data from the MemoryBrowser of CCS, their program ends at 0x00099C50.

But there is random data starting from the line 0x000A0000

So, after a piece of 0xFF, there is still a piece of random data, will this part of data work? And will it affect the operation of customer code? Will the program end before reaching the full FF segment? Thanks!

Regards,

Julia

  • Julia,

    0xA0000 is the start of Flash bank 2. Two questions:

    - Does the customer's linker command file include the definition of this bank?

    - In the Code Composer Flash plugin settings (Debug Configurations > Target > Flash Settings), is the Erase setting set to "Entire Flash" or "Necessary Sectors Only"?

    It appears this Flash bank was previously programmed but not erased.

    To answer the question itself, if this region of Flash memory is not part of the application linker map, then it should have no effect on code operation. In general though, you should erase the whole Flash before programming new code, unless there is a specific need to preserve certain sectors through the code programming operation.

    Best regards,
    Ibukun