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: Max number of words that can be written at once in Flash

Part Number: TM4C1294NCPDT

Again, hello to all.

At page 641 of the TM4C1294NCPDT processor's manual says that [ Register 10: Flash Write Buffer n (FWBn), offset 0x100 - 0x17C ] holds the addresses of the registers, 32 the most, that can be programmed in Flash at once. This is done by the FlashProgram(...) routine by the aid of the loop and the 0x7c control. O.K. So the *pui32Data passed parameter can't contain/point addresses of  more than 32 words. Correct???

Also, the loop pointer ui32Count although it is passed as a uint32_t parameter in this function, it can not eventually be larger than 128 bytes long. Correct??? If that is so, then why it is passed as a uint32_t var??? 

Thank you very much, John.

  • No, the function FlashProgram() will do multiple programming steps programming up to 128 bytes in each execution of the while loop that starts in line 209 of flash.c "while(ui32Count)". The limitations are that the starting address and the count must be a word address, an even multiple of 4, and of course that you don't index beyond the end of the flash.