прошу, зашить фузы BLB12=0,ВLВ11=0 ,а он их оставляет в 3. Может надо как то через -l ?
И еще вопрос может ли ИАР генерить автоматически версию программы типа как переменную __checksum, чтобы потом была возможность до неё достучаться в проге. Как вообще народ с этим делом справляется?
avreal/WIN32 - AVR controllers LPT programmer by Redchuk Alexandr
v1.23rev2 (May 15 2003 19:51:51)
ReAl@real.kiev.ua
bug-reports, suggestions and so on mail to
avreal@real.kiev.ua
Command:
+mega128 -p1 -as -e -o14745600Hz -fBLEV=0,BODEN=0,SUT=3,CKSEL=F,JTAGEN=1,CKOPT=0,BLB 1=0,BRST=0,M103C=1,WDTON=0,EESV=1,BSIZ=0 -% -w -V -v -c boot.a90
% Fuse added: BLEV=0
% Fuse added: BODEN=0
% Fuse added: SUT=3
% Fuse added: CKSEL=F
% Fuse added: JTAGEN=1
% Fuse added: CKOPT=0
% Fuse added: BLB1=0
% Fuse added: BRST=0
% Fuse added: M103C=1
% Fuse added: WDTON=0
% Fuse added: EESV=1
% Fuse added: BSIZ=0
% LPT base port 0x378
% assume that LPT data writes not faster then 1uS
% Atmel adapter for STK200 found
% STK mode
% osc = 14745kHz -› setup=1, hold=1+1
% Reset
% PgmOn reply 0xFFFE5300
% Synchronised after 1 try
% GetID reply 0x0030001E
% GetID reply 0x00300097
% GetID reply 0x00300002
% Read ID: 0x1E9702
Device connected, MEGA128 detected
% ReadOsccal command 0x38000000
% ReadOsccal reply 0x003800B3
% ReadOsccal command 0x38000100
% ReadOsccal reply 0x003800B5
% ReadOsccal command 0x38000200
% ReadOsccal reply 0x003800AA
% ReadOsccal command 0x38000300
% ReadOsccal reply 0x003800AA
% Erase reply 0x00AC8000
Device erased
% Reset
% PgmOn reply 0xFFFE5300
% Synchronised after 1 try
% GetID reply 0x0030001E
% GetID reply 0x00300097
% GetID reply 0x00300002
% Read ID: 0x1E9702
Device connected, MEGA128 detected
% ReadFuses command 0x50000000
% ReadFuses reply 0x0050003F
% ReadFuses command 0x58000000
% ReadFuses reply 0x005800FF
% ReadFuses command 0x58080000
% ReadFuses reply 0x005808C8
% ReadFuses command 0x50080000
% ReadFuses reply 0x005008FE
Fuses
OSCCAL = B3, B5, AA, AA
BLEV = 0
BODEN = 0
SUT = 3
CKSEL = F
BLB1 = 3
BLB0 = 3
OCDEN = 1
JTAGEN = 1
CKOPT = 0
EESV = 1
BSIZ = 0
BRST = 0
M103C = 1
WDTON = 0
Programming CODE memory
........ done
Verifying CODE memory
........ done
passed
Programming fuses
% WriteFuses command 0xACA0003F
% WriteFuses reply 0x00ACA000
% WriteFuses command 0xACA800E8
% WriteFuses reply 0x3FACA800
% WriteFuses command 0xACA400FE
% WriteFuses reply 0xE8ACA400
% WriteFuses command 0xACE000CF
% WriteFuses reply 0xFEACE000
Verifying fuses
% ReadFuses command 0x50000000
% ReadFuses reply 0xCF50003F
% ReadFuses command 0x58000000
% ReadFuses reply 0x005800CF
% ReadFuses command 0x58080000
% ReadFuses reply 0x005808C8
% ReadFuses command 0x50080000
% ReadFuses reply 0x005008FE
passed
Reset pin released