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.

CCS/TMS320F28379D: Fapi_issueProgrammingCommand doubts in minimal flashing size

Part Number: TMS320F28379D


Tool/software: Code Composer Studio

Hi,

I am using the flash api given by TI but there is something missing in the documentation given.

The flash reference guide (www.ti.com/.../spnu629a.pdf) points out that :

Fapi_issueProgrammingCommand. It can program from 1-bit up to 8 16-bit words

( u16DataBufferSizeInWords -> number of 16-bit words in the Data buffer )

But looking in the parameters of the function I see: 

u16DataBufferSizeInWords = number of 16-bit words in the Data buffer

So if the flashed buffer is defined in minimal units of 16bits words, how can I program just 1 bit?

Should I read before the specified address, and after edit one bit flash the 16 bits again? Or there is some special trick which I am mising?

Thanks in advance

  • Bernat,

    Yes, if you don't know the existing value at a location, then a read and edit is needed.  This feature is provided to be able to program the link-pointers, where each single bit has to be updated separately.  

    Please note that flash main array should be programmed in 64-bit (aligned) chunks.  And OTP should be programmed in 128-bit (aligned) chunks except for the link-pointer locations.  This is mentioned in the flash API guide http://www.ti.com/lit/pdf/spnu629.

    Thanks and regards,
    Vamsi