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.

TM4C1294NCPDT: Writing to internal FLASH of the TM4C device

Part Number: TM4C1294NCPDT

Dear Support:

I am using a TM4C1294NCPDT device which has 1 Mb of FLASH and running my code from there with no issues.  However I would like to use an unused block of FLASH for data storage.  Can I write/read from this same internal FLASH that I am running from?  Please advise.

Thanks,
Tim

  • Yes and no. While you technically cannot read or execute flash while a program or erase operation is on-going in the same bank, on the TM4C1294NCPDT the 1MB flash memory is split into an upper and lower 512KB. You can program into the upper 512KB while executing from the lower 512KB. If you try to execute from the same half of the flash that you are programming or erasing a sector in, the CPU will be stalled from fetching the next instruction until the program (a relatively short operation) or the sector erase (a much longer operation) completes. Unless you must timely service some interrupt, this may or may not be an issue.