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.

Error encountered when writing to flash memory

Other Parts Discussed in Thread: UNIFLASH

Hi Folks,

I am using CCS v6.1.1.00022 and using a F2802x C2000 LaunchPadXL as a pass through emulator - basically I have desoldered the uC from the LaunchPad PCB and connected the JTAG leads from the LaunchPad to my own PCB which now holds the uC.

According to the connection  test, JTAG is working fine. I can launch the target config, connect to the device, manually erase all the flash sectors and load the symbols without issue. However, when I come to load the program I receive the following output in the console (in verbose mode):

C28xx: Writing Flash @ Address 0x003f6a9e of Length 0x000000b5 (page 0)
C28xx: Erasing Flash Sector A
C28xx: Erasing Flash Sector B
C28xx: Erasing Flash Sector C
C28xx: Erasing Flash Sector D
C28xx: Writing Flash @ Address 0x003f7ff6 of Length 0x00000002 (page 0)
C28xx: Writing Flash @ Address 0x003f68e8 of Length 0x000001b6 (page 0)
C28xx: Writing Flash @ Address 0x003f6000 of Length 0x000008e8 (page 0)
C28xx: Flash Programmer: Error encountered when writing to flash memory
C28xx: File Loader: Memory write failed: Unknown error
C28xx: GEL: File: projectDir\Debug\projectName.out: Load failed.

And the following error message in a message box:

File: projectDir\Debug\projectName.out: Load failed.

Where projectDir and projectName match my file system and .out file as expected.

I have checked the gel file is specified correctly (using the one from the device support files) and changed the uC on the PCB with a new one - to no effect :(

What could cause this error?

Thanks, T

  • At this stage we have checked all pin's signals on our PCB (only a very small development board, about the same size as the LaunchPad itself) and they match what is expected. The JTAG signals look fine on a scope. Using the UniFlash tool gives the exact same results. the log output from this tool though is *very* verbose and quite hard to follow so I am currently parsing that, but I have seen nothing majorly untoward.
  • I went ahead and checked the wiring out from the launchpad to tour own board was OK, by instead wiringit into another launchpad, that had the isolators removed. This works! I guess this means that the problem is indeed with our own board rather than some s/w or setting. I'm at a loss as to what it could be but it's not a CCS problem so I'll close this and start a new thread in the C2000 forum.
  • Toby,

    Thanks for posting the update, and yes, hardware questions will be best addressed in the C2000 forum.
  • Turns out we had incorrectly specced the current consumption and our 3v3 regulator wasn't up to the task during flash write cycles :|
    Didn't read the hardware design guidelines closely enough, LOL!