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.

TMS320F2800156-Q1: Fapi_issueProgrammingCommand() buffer formatting

Part Number: TMS320F2800156-Q1

Tool/software:

While working with TMS320F2800156, I faced a problem that made me dig a bit in the Flash API.

 

When looking at the "F280015x Flash API Reference Guide", the "Fapi_issueProgrammingCommand" description states that "...pu16DataBuffer... should be 128-bits aligned".

Meanwhile, in the "flashapi_ex1_programming" example, it seams that "Buffer" is located at address 0x89a6, and the  "280015x_flash_api_lnk.cmd" places "Buffer" in "DataBufferSection"

which is 32-bits aligned (i.e. ALIGN(2) ).

 

I decided to make it ALIGN(2) to match the example, and this also corrects the issue I was facing . Meanwhile, I want to make sure this is the good thing to do. Of course I understand if I would do ALIGN(8) it will make automatically make it 32 and128 bits aligned but I dont want to do this it is required. I only use the Fapi_AutoEccGeneration mode, and program 64 bits each time.