Hi,
I have been stuck on this problem for too long now. I have a board that I made following the F28335 Design Guidelines Document as well as the schematics found in the TMS320F28335 Reference Schematic. The problem I am encountering happens when I try to load a program onto the chip. The error is as follows:
C28xx: Writing Flash @ Address 0x003386A2 of Length 0x00000016 (page 0)
C28xx: Erasing Flash Sector A
C28xx: Flash operation timed out waiting for the algorithm to complete. Operation cancelled.
C28xx: Error Writing Flash @ Address 0x0033869E of Length 0x00000016
C28xx: GEL: File: C:\ti\controlSUITE\device_support\f2833x\v132\DSP2833x_examples_ccsv4\timed_led_blink\Debug\Example_2833xLEDBlink.out: Load failed.
Background
- I am using the LEDBlink sample project provided by TI.
- I excluded "28335_RAM_lnk.cmd" from build and added "F28335.cmd" to the project
- I have tried using CCS 6.0 & CCS 5.5 and I observe the same problem. The compiler I am using is TI v6.2.5
- I am using the XDS100v2.0 Debugger
Debugging
- Before attempting to load the program onto the chip in my custom board I tried loading to the chip on the eZDSP F28335 and it works without problems.
- Next I checked that the connections on my custom board are correct in the schematic. I have pullups on the EMU0 & EMU1 lines of 4K ohms going to the +3.3V line, and I have a pull down of 2.2K ohms on the TRST line. TCLK & TCLK_RET are tied together. All the JTAG lines are going to their respective pins on the chip and I did a connectivity test on the physical board to ensure this. XTPD is going to +3.3V.
- I checked device manager on my computer to ensure that the XDS100 emulator was installed correctly and I see that TI XDS100 Channel A is present along with TI XSD100 Channel B is present.
- I have run a connection test on the JTAG and it passes on all sections.
- I have tried to lower the clock configuration from 30MHz to 10MHz in Flash setting and this did not help.
- I have checked my supply lines and I am feeding the uC 1.8V & 3.3V as specified.
- I have read through troubleshooting C2000 debugger connection issues (http://processors.wiki.ti.com/index.php/Troubleshooting_C2000_Debugger_Connection_Issues) but nothing seems amiss.
I am not sure what exactly this error means so that I can better debug the problems. Does anyone have any ideas what else I might be able to do?