Hi,
I'm programming a mixed c and asm project. Interrupts are handled purely in assemby with a directly coded interrupt vectort table, IVP pointer setup ... all works fine.
Since I'm also using c for the main program and house keeping, the rts55x.lib is automatic included. This generates the rts55x.lib : vectors.obj (space set a side for an additional interrupt vector table) which I will not use. Is there a way I can prevent this object from being created or excluded from linking ?
Cheers
The linker command file is responsible for pulling in that section. It will only do so if your linker command file has the option "-u _Reset", which causes _Reset to be an undefined symbol requiring a definition, which means that the linker must find a definition somewhere. In order to make sure your vectors are pulled in and not the RTS library's version, you must either:
Thanks,
I made a .global label _Reset (can be anywhere in the code, I think) and no vector.obj is included.
It seems like _Reset MUST be defined in my code to avoid the rts lib version.
No need for any -u declarations.