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.

Flash API Error #13

Other Parts Discussed in Thread: TMS320F28062, CONTROLSUITE

hi,

i'm trying to use the Flash2806 API V302 to program the flash for firmware update.

After executing Status = Flash_Erase((SECTORB|SECTORC),&FlashStatus); (or any other sector) the call returned with ERROR_CODE 13. the same when i call any function of the flash api.

when i execute Version = Flash_APIVersion(); i get the correct api version 3.02

according to the documentation, the ERROR_CODE #13 is 'Incorrect PARTID' :

// Incorrect PARTID
// For example the F2806 API was used on a F2808 device.
#define STATUS_FAIL_INCORRECT_PARTID         13

but the TMS320F28062 micro and Flash2806 API V302 should be compatible.

Someone knows what may be the cause of this error?

thanks,

Adi.

  • Adi,

    I think you've got a simple case of part number confusion here.  Easy to fix.  You are using the F28062 device, which is fairly new and a member of what we'll call the F2806x devices.  There is an older family of devices, the F280x, that had a device called the F2806.  I think you are using the APIs for the F2806 device.

    The F2806x APIs are located in ControlSuite.  You will find them on your PC here, assuming you have ControlSuite installed:

    C:\TI\controlSUITE\libs\utilities\flash_api\2806x\v100

    Give it a try.  It should work.  I'll point out that the safety checking in the APIs worked.  It caught that you are using the wrong APIs.  That's good.

    Regards,

    David