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.

TMS570LS0714: Can I use Uniflash and .cmd file to write some data on flash area(bank0) or FEE section(bank 7) when programming?

Part Number: TMS570LS0714
Other Parts Discussed in Thread: UNIFLASH

Dear All

We have a requirement which is when I use Uniflash to program my application, meanwhile I'd like to write a flag(which indicates there is an application already) onto flash or fee(fee is better).

I find this link:

so I guess there is a way to do this.

Please help me , many thanks.

Leo

  • Hello Leo,

    If you use bootloader to program the application image, it is better to program the flags in the bootloader. If the flag is part of your application located in a defined sector, you can program it with the application together using uniflash.
  • Dear Wang

    Yes, the flag is part of my application ,so how to do this?any example code?

  • Hello Liu,

    I am sorry I don't have example. You can define a small region and locate your data into the region. You can this way (not tested):

    In you *.asm file:

    .sect ".leoFlag"
    .arm
    FLAG0 .word 0x5a5a5a5a
    FLAG1 .word 0xBEEFDEAD

    In cmd file:
    MEMORY{
    ...
    flash_flag (rx) : .... len=0x10

    }

    sections{
    ....
    .leoFlag : {} > flash_flag
    }