Hi,
I am using TMS470 part (TMS470r1b1m). On compiling my project successfully, it generates a hex file and a map file. From map file I verified that the vector table is located at location 0. The first vector is rest vector. The value of the reset vector from hex file is 0xEA02267B. This should be the address to the starting point. So I compared it to the address of main and _iar_program_start from the map file. These values doe not match.
From map file:
Entry Address Size Type Object
----- ------- ---- ---- ------
.iar.init_table$$Base 0x00089c54 -- Gb - Linker created -
.iar.init_table$$Limit 0x00089c74 -- Gb - Linker created -
?main 0x00089a58 Code Gb cmain.o [6]
__cmain 0x00089a58 Code Gb cmain.o [6]
__low_level_init 0x00088cd8 0x1a4 Code Gb tms470r1b1m_low_level_init_flash.o [1]
__vector 0x00000000 Code Gb cstartup.o [1]
_call_main 0x00089a6c Code Gb cmain.o [6]
_exit 0x00089adc Code Gb cexit.o [6]
_main 0x00089a74 Code Gb cmain.o [6]
__iar_program_start 0x000899f4 Code Gb cstartup.o [1]
Any idea why these values dont match with that of reset vector value in hex file. I suppose there is a offset added to that value. How to determine what this offset is?
Pinakin