Question:

What are causes of the following scenario whereby the use of the CSM is performed on a device, JTAG will connect to the target but the flash can not be erased or programmed?

When attempting to debug, we are able to connect to the target via JTAG using code composer studio v3.3 (this was the latest-and-greatest at the time of the design), using a signum systems JTAGjet emulator, with the target powered up in boot-wait mode (this is necessary because the code is CSM locked).

Once connected, we attempt to program using the on-chip flash programmer plugin, and we are able to unlock the device by entering the CSM password. When we try to program, however, we get an error “Flash API Error #1: Unknown error during Flash operation.” This happens whether we try erase only or erase, program, verify.

We are able to remove this micro and solder on a known good one taken from another product in the lab, and do not get the error, and the product then functions properly. The flash API is FlashAPIInterface2802xV1_00a.out.

-Using v1.29 of C/C++ Header and Peripherals library for 2 of our TMS320F28027 products
-Using v1.00 of C/C++ Header and Peripherals library for a different TMS320F28027 product

-Code security is enabled in all three products.

Answer:

Please check whether you have the latest version of flash plugin. I would suggest you use Check update advisor (help->update advisor) option available in CCS3.3v.

Check update advisor (help->update advisor)

Look under "chip support packages"

and install the latest 2802x chip support package.

Once you update. Restart your CCS3.3v. This should probably fix your issue.

The Flash API revision (or) Flash algorithm revision number can be found out by checking the following path for different versions of CCS used.

CCSv3 - <InstallDir>\plugins\Flash28xx\Algorithms\2802x\

CCSv4 - <installDir>\ccsv4\c2000\flashAlgorithms\

CCSv5 - <installDir>\ccsv5\ccs_base\c2000\flashAlgorithms\