im porting a tiny version of optiboot bootloader from small avr like m8/m328 to m128/m1284. the issue is its taking avrdude almost 2 minutes to download at a high address unlike at zero which takes only a few milliseconds. for example this 3 word test program loaded at 0x00000 programs instantly:
:020000020000FC :06000000BD9AC598FDCF7A :00000001FF
however the same program loaded at 0x1fe00 takes forever:
:020000021000EC :06FE0000BD9AC598FDCF7C :00000001FF
apparently its checking or programming all the 0xff before the code or something. im using v5.11.1 and the command line is " avrdude -p m128 -c usbasp -U flash:w:t.hex". can anyone more familiar with averdude shed some light on this? is there a command line or .conf remedy? i read the avrdude docs several times and didnt see a fix. this delay is killing me.