Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 20. Getting Started with the GNU... > Using a User-Defined Vector Table

Using a User-Defined Vector Table

You can replace the CS3 vector table with your own vector table implementation. In the CMSIS software package from ARM (you can download it from www.onarm.com), you can find examples of the CMSIS vector table in assembly targeted for Sourcery G++. This can be modified to be used with LPC11xx.
The following assembler code, “startup_LPC11xx.s,” provides the CMSIS version of the vector table for LPC11xx:
B9780123854773100205/u20-02a-9780123854773.jpg is missing
B9780123854773100205/u20-02b-9780123854773.jpg is missing
B9780123854773100205/u20-02c-9780123854773.jpg is missing
B9780123854773100205/u20-02d-9780123854773.jpg is missing
Based on the previous blinky example, the user-defined vector table can be included in the compilation stage:
arm-none-eabi-gcc -g -O3 -mcpu=cortex-m0 -mthumb blinky.c lpc11xx\system_LPC11xx.c startup_LPC11xx.s -I cmsis -I lpc11xx -T LPC1114.ld -o blinky.o

  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial