#14 Startup Code Part-2: Replacing the vector-table, embedded software build process
Quantum Leaps, LLC
0:00 / 0:00
#14 Startup Code Part-2: Replacing the vector-table, embedded software build process
73 984 просмотра · 11 лет назад
Quantum Leaps, LLC
73,7 тыс. подписчиков
73 984 просмотра · 11 лет назад
The objective of this lesson is to replace the default vector table from the IAR library with your own.
To achieve this, you first need to understand the embedded software build process. You will look inside the object files (ELF format) to see what "relocatable code" really means. You will also see how the linker resolves the cross-module references and how the rules are different for objects included directly and object libraries.
Finally, you will start writing your own startup code with your own vector table. At the end of the lesson, you see that your vector table is used instead of the default one.
In the next lesson, you will see how to properly initialize your vector table with the stack pointer and addresses of the interrupt handlers.
------
Resources:
Companion web page for this video course:
https://www.state-machine.com/quickstart
GitHub repository for projects for this video course:
https://github.com/QuantumLeaps/moder...
Links used in this lesson:
Article "Library order in static linking"
http://eli.thegreenplace.net/2013/07/...
YouTube playlist of the course:
• Modern Embedded Systems Programming Course