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 during flash programming!

Hi,

I am using Concerto F28M35H52C1 and working on a project for a long time. After adding a few line code to project, I got an error message

 "Cortex_M3_0: Error during flash programming (Flash algorithm returned error code).Operation cancelled.", 

CCS v5 built project succesfully, but when I tried to load program, unfortunately  loading failed.

This problem looks like that it is about memory, because the project has a lot codes. Unfortunately I didnt find a way to fix it.

How can I fix it?

Thanks.

  • Is there a reason you are using CCSv5? It is quite old now and you will likely have a better experience with the latest CCSv6. 

    Other than the project source code, did anything else change between the time when things were working and when they stopped? (ie) were there any updates done to CCS? The reason I ask is because of this related thread where a clean uninstall and reinstall of CCS fixed a similar error.

  • Hi AartiG,

    Thanks for the reply.

    I installed CCSv6.1.1 and tried load, but I got error messages again.

    "Cortex_M3_0: Error during flash programming (Flash algorithm returned error code).Operation cancelled.",
    "Cortex_M3_0: File Loader: Memory write failed: Unknown error"

    Loading was working properly, when I added a few line codes into project, there is a problem occured. However, when I delete this codes, the problems disappear.

    Thanks
  • Hi,

    I want to mention that I converted to .hex file to .ehx file and tried to load .ehx file via rs-232.
    .ehx file is loaded succesfully.

    Also, if I erase all sectors of flash in On-Chip Flash menu, I can load .out file on first try, but next tries are failing.

    I need to erase all sectors of flash and load bootloader for each loading .out file.

    Thanks
  • Ihsan KIRKALI said:
    Loading was working properly, when I added a few line codes into project, there is a problem occured.

    Is the extra code that you added perhaps being allocated to memory that cannot be written to on this device? Without knowing more about the details of the project it is difficult to say exactly what is triggering this.

    Is this a custom board or TI board you are working with? 

    There may also be some details when running from Flash on Concerto devices that I may be overlooking. You could try posting to the C2000 forums as well to see if the experts there have any additional thoughts that may be device-specific.

  • İhsan,

    If you try to program a sector which is programmed before, you must erase the sector before program it again.

  • Hi,

    The problem is solved. I didnt erase a sector which is programmed, and it cause an problem. When I analyzed sectors on memory browser, I found the problem. Then, I changed selected sectors in On-Chip Flash menu.

    Thanks