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.

RTOS/TM4C1292NCPDT: TFTP download and flash write issue

Part Number: TM4C1292NCPDT

Tool/software: TI-RTOS

Hi,

i want to keep three images in my controller as follows

Boot code (bare metal code) for just taking decision on which firmware needs to boot based on EPROM stored values - flash Start Address - 0x0000

image 1 - flash start address - 0x04000

image 2 - flash start address - 0x84000

In image 1, i have used tftp client to download image 2 and store it in the flash location at 0x84000. 

Now i have problem with writing to the flash. from TFTP server application in windows PC, i can confirm that firmware image 2 is getting transferred to the board. but its not writing or i may be missing the sequence of writing to the flash from tftp packets.

after the download image 2,  boot code is transfer the control to image 2 but its not executing. if i program the image 2 through LM flash programmer utility in 0x84000, then its running properly.

i have used following snipet code for writing the flash memory for firmware image 2.

i have attached my project file here. please suggest where i am doing mistake.

i am using the following version

rtos - tirtos_tivac_2_16_01_14

CCS - 6.2

ndk - ndk_2_25_00_09

drivers - tidrivers_tivac_2_16_01_13

tivaware - TivaWare_C_Series-2.1.4.178

Regards

Balatftp.zip