Tool/software: TI C/C++ Compiler
Hello all,
the interrupt vector table is not placed in the hex code when I run the build via the shell and not via the Code Composer Studio.
I tried to place some data in the "intvecs" section to find the problem but this is also not working. The map file shows the section at the expected location but in the hex file the section is not present.
Here some example code:
c-file:
#pragma DATA_SECTION (data, ".intvecs")
volatile const uint8_t data[3]={98, 54, 65};
linker-file:
--retain="*(.intvecs)"
MEMORY
{
VECTORS : org = 0x00000000 len = 0x0000001F
...
}
SECTIONS
{
.intvecs : {} > VECTORS /* INTERRUPT VECTORS */
Build, Link and Hex Conversion:
.../armcl.exe main.c --include_path=".../ti-cgt-arm_16.9.1.LTS/include"
.../armcl.exe --run_linker --rom_model linker_ctrl_file.cmd --entry_point=main --output_file=main.out --map_file=main.map main.obj .../libc.a
.../armhex.exe --issue_remarks --motorola=3 --outfile=main.s37 "main.out" --map=hex_main.map
What is required to keep the section in the hex file? I tried already different compiler, linker and hex conversion options but was not able to get the section in the hex file. In the SDK the same hex conversion options are used and it works.
Thanks and regards
Matthias