Hi All,
Is there any example code for writing the data into flash in Tiva controllers. Kindly share.
Regards,
Aravind
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.
Hi All,
Is there any example code for writing the data into flash in Tiva controllers. Kindly share.
Regards,
Aravind
Hello Aravind,
To write the data into flash there is no example explicitly to do that. The reason being that most of the code examples are meant to run from Flash and the debugger does that. However of you still want to write to the flash, then you have to do the following steps
1. Write the Address to write to into the FLASH_FMA register
2. Write the Data to write to the address into the FLASH_FMD register
3. Then start the actual write by writting to the FLASH_FMC register 0xA4420001 where 0xA442 is the Key and 0x1 is the Write bit. To check the completion poll the FLASH_FMC.WRITE bit. if it is 0 then the operation has completed.
More information about this is in the Internal memory section of the Data Sheet
Regards
Amit
Thanks for answering my query Amit. Let me check this first and in case of any query will get back to you.
Regards,
Aravind
I would like to join the conversation Amit.
I am interested in rewriting the Flash with a new software. Thus, I would like running version to load a new version from an SD card, in bin/hex format.
Questions:
1. Is that possible to do on the tm4c123gh6pge?
2. Is there any example that you are aware of showing how to write the hex/bin into micro-controller?
Thank you in advance.
Elad