Hi,
Is there any example code available for reading and writing in the internal flash of Tm4C controllers?
If yes then please share the link.
Thanks,
Ali
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,
Is there any example code available for reading and writing in the internal flash of Tm4C controllers?
If yes then please share the link.
Thanks,
Ali
for(i=0; i < CodeSize; i+=FlashBlockSize)
{
FlashProtectSet(BackupAddress+i,FlashReadWrite);
FlashErase(BackupAddress+i);
if(FlashProgram((uint32_t*)(CurrentAddress+i), BackupAddress+i, FlashBlockSize) == 0) { blocks++; }
//FlashProtectSet(BackupAddress+i,FlashReadOnly);
}
Hello Ali,
We have some heavy flash copying in one of our codes here, which we use to manage firmware updates. On the flash part, simple things like the snippet above work. I don't see any other initialization in our code...