I am here with a second question.
I've got some code too, but on a different computer and I can't move it here.
So I am doing an application that will fill the whole Flash.
I read that It needs some sort of bootloader, otherwise there could be complications...
...I will set up the fuses as necessary... And
On the x86 the memory model of the bootloader is:
Bootloader - "0x0000"
Flash (i mean the rest of RAM) - after the bootloader
The ATmega8 is like:
Flash - 0x0000
Bootloader - 0xFF - at the end of flash
.ORG 0x0000 ... ... LDI ZL, LOW(FLASH) LDI ZH, HIGH(FLASH) SPM; store program memory to the label FLASH FLASH:; a regular label at the end of bootloader
Would this code work as the flash physically doesn't follow the bootloader?
I think it won't.