I am currently trying to install a bootloader on an atmega88PA.
So far, the bootloader works fine, it is installed in boot zone and load in flash my application program.
Problem is that at power on, sometimes to bootloader is called (as it should), sometimes the application is directly called without going through the bootloader.
I configured in such a way that bootloader is always called at power on , or at reset. Fuse BOOTRST has been programmed, and flash size for boot loader set to 1024, start address in the linker set to 0xC00.
I don't understand what could be the explanation of this erratic behavior. Why isn't the booloader code always run at power on ?
Any idea ?