Hi everybody,
I want to ask something about contents of a .out file that ccs generate. I am using the tms320f28377d and burning the flash via sci. When I convert the .out file to .hex format How could I find that which part of the hex format is .pinit or .cinit etc.
There are many sections defined in cmd file and every section has its own adress. For example .cinit is in FLASHB while .econst is in FLASHF. And while it is being written to the DSP every section goes to its own place.
I mean how could the ccs says that this part goes to FLASHB and that part goes to FLASHF?
I am triyng to send the hex file via SCI myself without using any tool like c2prog or serialflashprogrammer. I converted the out file to hex format and I use the flash api library to delete the flash of the device successfully. I moved all the code to RAM therefore when I delete the flash the code is not affected.
But I am stuck wtih something. How can I divide the .hex file into .cinit , .text , .ebss .... sections to send them into different memory locations? I mean, I will write the corresponding .cinit section to FLASHB adress and .pinit section to FLASHC using f021 flash api library.
What is the content of the hex file and is there a way to convert these sections seperately ?
I hope I could express myself clearly.
Thank You.
Have a nice day.