Hallo Apfelmusking,
$regfile = "8535def.dat" 'ATmega8535L ??
für den Atmega8535 brauchst du die m8535.dat.

Gruß, Michael