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.

TMS320F28335 - Flash programmer error

Other Parts Discussed in Thread: TMS320F28335, CONTROLSUITE

Hi, 

I am new to the TI microcontroller, and just bought the TMS320F28335 daughter card last week. I am trying to run the example code "cpu_timer"  from the controlSUITE with the docking station and CCS v4.2.3.00004. At the beginning, it was running OK. I was able to download the code and debug it. However, yesterday it stops working properly.

When I tried to "Debug the target project" it gave me the following error:

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

C28xx: Flash Programmer: Warning: The configured device (TMS320F28335), does not match the detected device (). Flash Programming operations could be affected. Please consider modifying your target configuration file.

C28xx: GEL Output: 

ADC Calibration not complete, check if device is unlocked and recalibrate.C28xx: GEL Output: 

ADC Calibration not complete, check if device is unlocked and recalibrate.C28xx: File Loader: Data verification failed at address 0x00008000 Please verify target memory and memory map.

Error found during data verification.

Ensure the linker command file matches the memory map.

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

I checked the target configuration, it was set to the following:

Texas Instruments XDS100v2 USB Emulator

Experimenter's Kit - Delfino F28335

And also checked the "f28335.gel", they both seems correct. After reading some post, I navigate to the "On-Chip Flash" and tried to unlock the Flash memory. The program froze for about 15 minutes, and then gave me the following error:

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

 

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

And when I tried to "Erase Flash", the program froze again for about 15 minutes, and the gave me the following error message:

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

C28xx: Flash Programmer: Error erasing flash memory. Device is locked or not connected. Operation cancelled

C28xx: Error: (Error -1044 @ 0x0) The emulator reported an error. Confirm emulator configuration and connections, reset the emulator, and retry the operation. (Release 5.0.333.0) 

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

After some more reading, it suggested my device has been permanently locked. The memory from 0x33FFF8 to 0x33FFFF were all zeros, even though I never changed the code security password. Is there anyway that I could make the device back to the default stage?

Thanks,

 

  • Zhen,

    It sounds as if the device is locked by the security module. If that is the case there is no way to get it back to its default state. Can you help me understand what was going on before your first error? It sounds like you were not trying to program the device, yet CCS gave you a flash programmer warning. Do you have any idea why it gave you that error? Had you accessed the flash programmer in CCS previously?

    Regards,
    Dave Foley

     

  • Hi, David

    Before the first error, I was trying to run the sample code "cpu_timer" from control suit, and then that error comes up. I recalled earlier that time, I tried to run another example "timed_led_blink", when it was downloading the code to the MCU, it stops in the middle and the CCS froze. After about 10 minutes, I decided to restart the program and the control card. Is that the cause of the problem?

  • Zhen,

    I'm not sure if that contributed to the error or not. Please clarify your statement: when you say it froze during download, was the code being downloaded into the RAM of the device, or was it being programmed into the flash?

    Regards,
    Dave Foley

     

  • Hi, David

    I am not 100 percent sure, but I believe it has something to do with the flash. I could not reproduce the same scenario, because the chip won't work anymore.

    And in any cases, is there any chance that I could ask for a replacement daughter card, since I only brought it two weeks ago, and used less than a week.

    Thanks,

    Zhen

  • Just a suggestion for TI:

    Please provide code that will allow people to erase sector A of flash by forcing the PC to a specific address.  Also provide instruction on how to ensure that they never erase the sector that holds that code (until they're done with development, of course).

    I've written something that resides in sector H and can be ran if I force (using emulator) the PC to address 0x300000.  I also make sure that my ".launch" does not erase sector H.  This code, since it resides in secure-flash, can run even if the device is locked.  Therefore, it allows me a way to recover the chip if I (or a CCS bug) accidentally locked the chip.

    This is very simple code, I'm sure TI can write one and provide it  royalty free to their customers.

    Cheers!

    -quark

  • Zhen,

    Sounds reasonable to me but I don't really handle that, sorry. I suggest you contact whoever you bought it from and explain.

    Regards,
    Dave Foley

     

  • Quark,

    Thanks for the feedback. We'll take it into consideration.

    Regards,
    Dave Foley

     

  • Hi,my friend ,I have just encounter the same problem like yours .And I am very worried now , I am eager to know have you solved that problem?And what should I do now? I look forward to your reply. Thank you!