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 of Commit flash write

Hi everyone

I am working on LM4f232H4QC controller evaluation board.

I have defined .bootRevRom in an .LD file from 0x00003BF8 to 0x00003BFB

But when i am trying to download the code on the board while debugging with the following code written before main, It is giving me "15: Commit flash write error"

And when I Commented that code, It was working fine............

const UINT8 BootCodeRev[2] __attribute__ ((section(".bootRevRom"))) = {BOOT_REVISION_MAJOR, BOOT_REVISION_MINOR};

Can any one suggest what should be the problem and what should i change in the code above?

Regards,

Gunjan

  • Hi Gunjan,

    Did you check the 'map' file output from the linker to ensure that the memory region was correctly implemented (address, allignment and properties)?  You could also try experimenting with larger .bootRevRom regions to see if that helps identify the problem.

  • Hi Jonathan,

    Thanks for reply.

    I checked the memory region in .map file and it is correctly implemented.

    I make the array larger than previous (BootrevRom[2] to BootRevRom[8]) and assigned larger memory. Then I tried download that code, it was downloading and i was able to see the data is downloaded into that memory location while debuging. Like this I tried with different locations like 0x3000 and 0x3400 but As I increased address e.g. 0x3F00 and more than that, it started giving me the same error.

    plz help in this.

    What could be the reason for this?

    Regards,

    Gunjan

  • It sounds like a tools issue.  Which toolchain are you using?

    I suggest that you generate a plain binary file output from the linker, then use LM Flash Programmer to load the complete image.  If that works then it will confirm that the problem you are seeing is a tools issue.

  • Hi Jonathan,

    Thanks for suggestion.

    I tried with the LM flash programmer and it is working fine.

    Thanks for help.

    Regards,

    Gunjan