why my int doesn't work in BLS?

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

Hi,

I just found out that the interrupt routines don't work in my bootloader code.

In the begining of the code I wrote:

MCUCR = _BV(IVCE);
MCUCR = _BV(IVSEL);

And then I enabled the intterrupt and the global intterrupt enable, but it seems this routine was never been executed when the event happen, did I miss anything here?

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

OK, I got it, the start address in makefile was wrong, it was 0x1F000, but it should be 0x1E000