Tiny412 - Supress vector table

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi!

 

Im writing a boot loader for a Tiny412

I dont use interrupt here so I want Atmel Studio 7 to skip creating code for the vector table. (...To reduce code size...)

But I want to keep the initialization part (...Stack and RAM...)

How do I do that?

 

/Conny

This topic has a solution.

Can

Last Edited: Mon. Nov 25, 2019 - 03:13 PM
This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Read chapter 7 of this appnote: http://ww1.microchip.com/downloa...

It explains how to setup the "compact vector table", an option these chips have; the information is also useful in case you don't want any vector table.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

-nostartfiles
.
don't worry about setting SP as that happens automatically but you do need to set R1 to 0x00 for C.