Because of the holidays, TI E2E™ design support forum responses will be delayed from Dec. 25 through Jan. 2. Thank you for your patience.

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.

Flash Programmer: Missing Flash Programming Settings

Hey,

I've been programming the F28035 processor using the Piccolo Kit. After successfully programming the flash and running codes off of it, CCS started giving this errror:

C28xx: Flash Programmer: Missing Flash Programming Settings.
C28xx: Flash Programmer: Error erasing Flash memory.
C28xx: Flash Programmer: Missing Flash operation option. Operation cancelled.
C28xx: Trouble Writing Memory Block at 0x3e80a4 on Page 0 of Length 0x76d
Cannot write to target

of course, nothing have changed. I'm trying to build and load projects that work. This happened before and I started working off of RAM. And it was working fine after a while. How can I correct this little issue?

 

Edit: I added all the error messages

 

Regards,

Kerson.

 

  • I guess you have made an update to your CCS4 because this sounds exactly what I had. Read more: http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/p/83252/287465.aspx#287465 .

  • I update very frequently, at least once every two weeks. And whenever something that's suppose to be working isn't anymore.

    And yes, JHi, it is the exact same problem you had. The flash settings would just disappear for no reason and refuse to return. I got it to work a few minutes after I started this thread, but refrained from posting the method since the windows didn't look the same when I tried to replicate it.

    The delete tip on the last page of the tips and tricks guide sound like the perfect solution (link below).

    http://processors.wiki.ti.com/images/0/09/CCSv4_Tips_%26_Tricks.pdf

    Thanks for directing me to that thread, JHi!

     

  • I am having this exact same error and have followed the instructions on both links and yet I am still getting the same error.

    Displayed in the Console

    C28xx: Flash Programmer: Missing Flash Programming Settings. C28xx: Flash Programmer: Error erasing Flash memory. C28xx: Flash Programmer: Missing Flash operation option. Operation cancelled. C28xx: Trouble Writing Memory Block at 0x3f2000 on Page 0 of Length 0x25c Cannot write to target

    Are there any other recommendations for restoring the flash settings.

    Set up using CCSv4 4.2.1.00004, XDS100v1

    Hardware:  F2803x Control Card release v1.0 (F28035)
                         Docking-Stn USB-EMU


  • Delete the target configuration file from your project (.ccxml) and then re-link the configuration file to the project.

    If that doesn't work, create a new target configuration file and switch between the two. Hope that helps out.

     

     

  • I tried that this morning, but just tried again with no luck...

  • Did you also delete the cache files and targetdb.dat as described in the last page of the Tips and Tricks document?

  • After deleting the .metdata folder and importing my project back into CCS it began working.

    Thanks for the help.

  • I also have similar issue ... updated my ccs4 and now I am getting this error.

    Tried all things discussed above but no luck.

     

    C28xx: Flash Programmer: Unable to read algorithm file (C:\Program Files (x86)\Texas Instruments\ccsv4\DebugServer\bin\win32\..\..\..\C2000\flashAlgorithms\FlashAPIInterface28235V2_10.out). Operation cancelled.

    C28xx: Flash Programmer: Error erasing Flash memory.

    C28xx: Flash Programmer: Unable to read algorithm file (C:\Program Files (x86)\Texas Instruments\ccsv4\DebugServer\bin\win32\..\..\..\C2000\flashAlgorithms\FlashAPIInterface28235V2_10.out). Operation cancelled.

    C28xx: Flash Programmer: Unable to read algorithm file (C:\Program Files (x86)\Texas Instruments\ccsv4\DebugServer\bin\win32\..\..\..\C2000\flashAlgorithms\FlashAPIInterface28235V2_10.out). Operation cancelled.

    C28xx: Flash Programmer: Error encountered when writing to flash memory

    C28xx: Trouble Writing Memory Block at 0x33940d on Page 0 of Length 0x204 

    Cannot write to target

  • My code composer is about a week or so outdated, but this method has been working for me consistently.

    1. Clean project.

    2. Clean Debug Cache - Right Click on the project, Click "Debug..." and then delete every debug session.

    3. Close Code Composer.

    4. Delete the 'Debug' directory in the project folder on your hard disk. While you're deleting this directory, make sure the '.launches' directory is empty.

    Now load composer and you should be fine. In the rare case that this doesn't work: Repeat steps 1 to 4 and follow it with:

    Launch TI Debugger, Connect to Target, and then use the flash tools to erase the flash.

    These steps have been working for me consistently, hope they do the job for you.

    Regards,

    Kerson.

     

  • Didn't work for me, it seems like its not able to find the path for  "FlashAPIInterface28335V2_10.out

  • Hi,

    I got the exact problem on 28027 device.

    After I upgraded CCSv4.1 to  Version: 4.2.3.00004 and restarted it, I got the following messages

    I tried many things but still cannot make it work. Any one knows the solution? Thank you.

     

    C28xx: Flash Programmer: Unable to read algorithm file (C:\Program Files (x86)\Texas Instruments\ccsv4\DebugServer\bin\win32\..\..\..\C2000\flashAlgorithms\FlashAPIInterface2802xV2_00.out). Operation cancelled.
    C28xx: Flash Programmer: Error erasing Flash memory.
    C28xx: Flash Programmer: Unable to read algorithm file (C:\Program Files (x86)\Texas Instruments\ccsv4\DebugServer\bin\win32\..\..\..\C2000\flashAlgorithms\FlashAPIInterface2802xV2_00.out). Operation cancelled.
    C28xx: Flash Programmer: Unable to read algorithm file (C:\Program Files (x86)\Texas Instruments\ccsv4\DebugServer\bin\win32\..\..\..\C2000\flashAlgorithms\FlashAPIInterface2802xV2_00.out). Operation cancelled.
    C28xx: Flash Programmer: Error encountered when writing to flash memory
    C28xx: Trouble Writing Memory Block at 0x3f1d7c on Page 0 of Length 0xc8
    Cannot write to target

  • Keith,

     - Create a new folder name "flashAlgorithms"  in these folder C:\Program Files (x86)\Texas Instruments\ccsv4

    - copy file "FlashAPIInterface2802xV2_00.out" from C:\Program Files (x86)\Texas Instruments\ccsv4\DebugServer\drivers and paste that to the new folder you created C:\Program Files (x86)\Texas Instruments\ccsv4\C2000\flashAlgorithms

     

    These worked for me. Hope it works for you.

     

    Thanks,

    Vaibhav

     

  • Hi Vaibhav,

    Thank you very much. It works now.

    I followed your instructions and it went through smoothly.

    Thanks again.


    Keith

  • Kerson B said:

    My code composer is about a week or so outdated, but this method has been working for me consistently.

    1. Clean project.

    2. Clean Debug Cache - Right Click on the project, Click "Debug..." and then delete every debug session.

    3. Close Code Composer.

    4. Delete the 'Debug' directory in the project folder on your hard disk. While you're deleting this directory, make sure the '.launches' directory is empty.

    Now load composer and you should be fine. In the rare case that this doesn't work: Repeat steps 1 to 4 and follow it with:

    Launch TI Debugger, Connect to Target, and then use the flash tools to erase the flash.

    These steps have been working for me consistently, hope they do the job for you.

    Regards,

    Kerson.

    This trick worked for me (had to erase the flash also)