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: downloading large image with ethernet boot loader

Part Number: TM4C1294NCPDT
Other Parts Discussed in Thread: UNIFLASH

Hello:

I'm having an issue downloading a large (>500k) image with the ethernet boot loader.  I'll get around 490 TFTP packets downloaded before the target system freezes. I attempted this multiple times and it always failed at the same packet count.   Looking at the FLASH with UniFlash shows that the first sector of FLASH has been corrupted.  I have set APP_START_ADDRESS,  VTABLE_START_ADDRESS and FLASH_PAGE_SIZE to 0x4000 in the bl_config.h file.  I've also defined FLASH_RSVD_SPACE.  With FLASH_RSVD_SPACE defined and a cursory glance at the code the boot loader image in FLASH shouldn't be written over.

I started a more in depth examination of the loader code and then had a thought.  Based upon the packet count, it seems like the boot loader might be trying to download the total image before burning it to FLASH.  As a quicky test, I changed the boot loader stack size to 32k and tried a new download.  The download failed at a lower packet count.  Increase the stack size again and got a lower packet count.

So, my question is:  "Was this how the boot loader was designed to work?  Downloading the whole image into SRAM?".  Or is there some bug that's not letting the system reuse existing buffers. Thanks for any answers to this issue.