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.

CCS/TMS320F28027: Can't change any code in F2802x LunchPad Demo code

Part Number: TMS320F28027
Other Parts Discussed in Thread: CONTROLSUITE

Tool/software: Code Composer Studio

Hello everyone,

I'm Leo, 

I have a problem about  debug F2802x LunchPad Demo code, I use CCS V6 to open the  C2kLaunchPadDemo project, and folder path is default for controlSUITE as below:

C:\ti\controlSUITE\development_kits\C2000_LaunchPad\f2802x_examples\C2kLaunchPadDemo

I use default code function to compile & debug is ok, but when I change any code(such as mask some sub function), compile is ok but debug will appear a error :

C28xx: Flash Programmer: Error encountered when writing to flash memory
C28xx: File Loader: Memory write failed: Unknown error
C28xx: GEL: File: C:\ti\controlSUITE\development_kits\C2000_LaunchPad\f2802x_examples\C2kLaunchPadDemo\Flash\Example_F2802xLaunchPad_demo.out: Load failed.

How do I fix this problem? Thanks!

Leo

   

  • Leo,

    Can you try to load any other program to the device? It is odd to me that you are able to load and run one example and not another.

    What specific changes did you make to the Demo program?

    -Mark
  • Dear Mark,

    Thanks for your reply,

    I try to load other demo project is ok, I can modify code and load program into the device normally.

    But I found a different setting:

    Iepwm_real-time_interrupts project  is active - RAM,

    C2kLaunchPadDemo is active - Flash,

     if I change Iepwm_real-time_interrupts project  to active - Flash, load program will fail...

    So does this mean that flash of C2000 LaunchPad can not be changed?

    Thanks & looking forward to your reply

    Leo 

  • Leo,

    Unless you have previously programmed the Flash and then set the passwords to secure the device, you should have full access to program the Flash.

    Take a look at the CSM section of the System Control and Interrupts User Guide. Investigate if the password locations are programmed and your device is secured. If you unintentionally programmed the passwords and do not remember them, there really is nothing you can do, but get another device.
  • Dear Mark,

    Thanks for your reply,

    I'm sure that my device is without code security.

    I also found the solution for my problem, I select a wrong connection setting in my project properties.

    Thanks four your help!

    Leo

     

  • Leo,

    I am glad that you figured it out on your own. IF you have any more questions, don't hesitate to create a new post.