x
Menu

Embedded Systems Programming

Other,

Updated On 02 Feb, 19

Overview

Getting Started - Counting - Flow of Control - Variables and Pointers - Blinking the LED - Preprocessor and volatile - Bit-wise operators in C - Arrays and Pointer Arithmetic - Functions and the Stack - Modules, Recursion, AAPCS - Stack Overflow and Other Pitfalls of Functions - stdint.h and mixing types - structures and CMSIS - startup code part - interrupts

Includes

Lecture 15: startup code part-2

4.1 ( 11 )


Lecture Details

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.

---
Links used in this lesson
Article "Library order in static linking"
httpeli.thegreenplace.net20130709library-order-in-static-linking

Course web-page
httpwww.state-machine.comquickstart

YouTube playlist of the course
httpwww.youtube.complaylist?list=PLPW8O6W-1chwyTzI3BHwBLbGQoPFxPAPM

Ratings

0


0 Ratings
55%
30%
10%
3%
2%
Comments
comment person image

Sam

Excellent course helped me understand topic that i couldn't while attendinfg my college.

Reply
comment person image

Dembe

Great course. Thank you very much.

Reply
Send