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: Fashapi issue with write operation

Part Number: TMS320F2800156-Q1
Other Parts Discussed in Thread: C2000WARE

Tool/software:

Hi

We are using F280015x for product development.

We want to do the flash write operation. However, theres is something wrong with the FlashAPI.

The data needed to be written is allocated in the RAM where the address begains with odd number, such like 0x9001. (The data address, not the Flash sector address, the Flash address is Bzero_Sector117_start   0x0009D400U)

The strange thing is that , it will write the data with the start address of 0x9000 to the Flash sector.

Any suggestion for this issue?

Here below is the flash write function:

the Address is 0x9d400, the pBuffer's address is 0x8d77, the uLength is 1.

#pragma CODE_SECTION(Flash_Write, ".TI.ramfunc")
void Flash_Write(uint32_t Address, uint16_t* pBuffer, uint16_t uLength)
{
    uint32 u32Index = 0;
    uint16_t i = 0;
    uint16_t uRetryCnt = 0;
    Fapi_StatusType  oReturnCheck = Fapi_Status_Success;
    Fapi_FlashStatusType  oFlashStatus;
//    Fapi_FlashStatusWordType  oFlashStatusWord;

    //
    // Program data using "DataOnly" option and ECC using "EccOnly" option.
    //
    // When DataOnly option is used, Flash API will program only the data
    // portion in Flash at the address specified.
    //

Regards

Arrow