Other Parts Discussed in Thread: TMS320F28379D, , C2000WARE
Dear All,
We are implementing firmware update functionality over TMS320F28377S and TMS320F28379D.
Main application linked to K,L,M sector. For firmware update we copied hex file of Main application to HMI and HMI send file over serial to controller. Controller store receive hex data on B,C,D sector and reset controller.
On reset, bootloader code copies hex data from B,C,D sector to K,L,M sector and jump to start address of K sector.
Hex file has non - empty address space from 0xB8000 to 0xBD7A8 (Sector K,L,M). Hex file has empty address space from 0xBD7A8 to 0xBDFFA(Sector M)
For testing we first execute Main application code in debug mode.
While writing hex file to B,C,D sector, for hex file address 0xBD966 and above which is for empty address space, the 0x000 data not get written to memory and it remain to 0xFFFF. We observed same in Memory window. API did not gave any error.
While writing 8 word for hex file address 0xBDEA8 which is for empty address space, API return 509 error.
Then we generate hex file without empty address space by changing the length field in hex.cmd file and tried above exercise.
We did not came across any error and firmware update works well with Bootloader code.
We observed this behavior with both mentioned controller.
Our queries:
1) What might be the possible reason for 0x000 data not get written to memory and it remain to 0xFFFF and error 509 for flash write belongs to empty address space.
2) We removed empty address space from hex file using length filed of hex.cmd file. How we can remove empty address space from hex file using compiler or other option.
Regards....
Yogesh