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.

TMS320F280025: Question about u16DataBufferSizeInWords

Part Number: TMS320F280025
Other Parts Discussed in Thread: C2000WARE

Hello Team,

Routine: C2000Ware_3_03_00_00\driverlib\f28002x\examples\flash\flashapi_ex1_programming.c

The comment of the routine writes that the parameter u16DataBufferSizeInWords can only pass in 4 or 8 pieces of 16bit data. Is this due to memory alignment?
If I specify memory alignment in the CMD file, can I change the passed parameters? (The memory alignment specified by the default cmd file is 8)

Best regards

  • Hi Green Deng,

    You should always program either 64-bits or 128-bits aligned on 64-bit memory boundary or 128-bit memory boundary respectively.

    Two reasons for this:

    1) An 8-bit ECC gets calculated for each 64-bits of data aligned on a 64-bit boundary.

    2) The flash technology used in this device does not allow more than 2 program operations (4 is ok if you want to program ECC separately) per 128-bit aligned flash word.

    Thanks and regards,

    Vamsi