Part Number: TMS320F28384S
Other Parts Discussed in Thread: C2000WARE
Hello,
I am developing a bootloader on CM core.
The bootloader must run in RAM, so I have copied in RAM the .text and .const sections of all the necessary object modules.
I have also omitted the pre-processor symbol _FLASH in the project, to make vectorTableRAM[] used instead of vectorTableFlash[].
.vftable : > CMBANK0_SECTOR0, ALIGN(16) /* Application placed vector table in Flash*/
.vtable : > S0RAM /* Application placed vector table in RAM*/
I have enabled the .hex output file generation and I have seen that .vtable section is added to the .hex file, even if it resides in RAM.
:020000042000DA
:2008000000C1FF1F01002000290D0120270D0120250D0120250D0120250D01200000000033
:20082000000000000000000000000000250D0120250D012000000000250D0120250D01206C
:20084000250D0120250D0120250D0120250D0120250D0120250D0120250D0120250D012000
:20086000250D0120250D0120250D0120250D0120250D0120250D0120250D0120250D0120E0
:20088000250D0120250D0120250D0120250D0120250D0120250D0120250D0120250D0120C0
:2008A000250D0120250D0120250D0120250D0120250D0120250D0120250D0120250D0120A0
:2008C000250D0120250D0120250D0120250D0120250D0120250D0120250D0120250D012080
:2008E000250D0120250D0120250D0120250D0120250D0120250D0120250D0120250D012060
:20090000250D0120250D0120250D0120250D0120250D0120250D0120250D0120250D01203F
:20092000250D0120250D0120250D0120250D0120250D0120250D0120250D0120250D01201F
I use the .hex file for firmware update and so I expect that it contains only FLASH addresses.
Why .vtable RAM section is added to the output file?
Is there a way to avoid this?
Should I leave the _FLASH pre-processor symbol and then copy the .vftable in RAM as I already do with the other .text and .const sections?
Thank you,
Carlo