We have a working motor control program and a corresponding assembled PCB. Our boards have been built with TMS320F28054 device as the motor controller. When we run the program under the debugger, the program works well. But when we load the program to the Flash memory, the program does not execute properly any more. The motor moves - not under the control of the firmware, but of its own accord! So, something is executing, but not the full version of the program. We are using CCS as the development environment and for loading the firmware to the device.
The problem is that the same chip and program were working correctly before with the program loaded to the flash using the method described above. But we now have 7 boards that have gradually gone bad, one after the other. Today we discovered the behavior of the the TMS320F28054MPNT as a potential problem. We have also checked the supply of power to the chip on our boards and it all seems as before and good.
The device is running FOC protocol modelled after Ti recommendation and using Ti provided libraries for initialization.
Could it be that we have to use more care in programming the device and loading the flash? Is there a history of reported defects of the chips or their flash components?
The chips we have purchased are from a batch with the following information on them: G4A-24C8LCW G4.
All tips are highly appreciated.