Hey, I tried some things today.
I have another board using a atmega328p. I'm 100% sure this one is powered/decoupled properly.
I wrote a simple bootloader application. I moved that application to 0x3C00 + fuses to start bootloader at $3C00 and BOOTRST set.
This application turns on a led and loop. It works.
I then added a led blinking fuction in interrupt. Works at 0x000 no problem.
When I move it to 0x3C00 and added;
MCUCR = (1 << IVCE); /* enable change of interrupt vectors */
MCUCR = (1 << IVSEL); /* move interrupts to bootloader flash section */
This function stop working.
Is there someting else to do?
Thanks!
I have another board using a atmega328p. I'm 100% sure this one is powered/decoupled properly.
I wrote a simple bootloader application. I moved that application to 0x3C00 + fuses to start bootloader at $3C00 and BOOTRST set.
This application turns on a led and loop. It works.
I then added a led blinking fuction in interrupt. Works at 0x000 no problem.
When I move it to 0x3C00 and added;
MCUCR = (1 << IVCE); /* enable change of interrupt vectors */
MCUCR = (1 << IVSEL); /* move interrupts to bootloader flash section */
This function stop working.
Is there someting else to do?
Thanks!