New answers tagged

0

You wrote: void(* resetFunc) (void) = 0; This seems to me like an approach worth trying, except that the function address is wrong. At address zero of the flash you have the start of the user's code. The bootloader, if you do use one, lives at the end of the flash. The start address of the bootloader depends on its size, and is configured by setting some ...


2

On ATmega328p and similar ATmega MCUs with bootloader support, the application is not allowed to write to flash. Only code running in bootloader area of the flash memory is allowed to write to flash. Bootloader area is at the end of the flash and the beginning is set with the BOOTSZ fuses. The write to flash page is done in two steps. First step is deleting ...


Top 50 recent answers are included