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 ?
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:
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.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.