VEMS Community Forum

VEMS => Modifications and Repairs => Topic started by: sandokan on May 30, 2018, 08:26:56 am

Title: Change ATmega128
Post by: sandokan on May 30, 2018, 08:26:56 am
I changed the processor atmega128 with the board,and can not download from the server bootloader.
I used avrdude and command avrdude -c usbasp -p m128 -U lfuse:w:0x2f:m -U hfuse:w:0xc4:m -U efuse:w:0xff:m -U lock:w:0x3f:m.
Title: Re: Change ATmega128
Post by: MWfire on May 30, 2018, 09:09:29 am
First you need to put hex of some nhex fireware, upgrade to 1.1.94(bootloader), then upgrade nhex to uhex and then you are done.
Title: Re: Change ATmega128
Post by: sandokan on May 30, 2018, 09:15:35 am
The only connection with the board is ISP, maybe some advice
Title: Re: Change ATmega128
Post by: MWfire on May 30, 2018, 10:46:45 am
yes, you need to put first firmware over ISP. Also set fuses.
Title: Re: Change ATmega128
Post by: sandokan on May 30, 2018, 10:53:36 am
fuse I set up(avrdude -c usbasp -p m128 -U lfuse:w:0x2f:m -U hfuse:w:0xc4:m -U efuse:w:0xff:m -U lock:w:0x3f:m)
where to download the firmware, and which is the command to avrdude
Title: Re: Change ATmega128
Post by: sandokan on May 30, 2018, 02:03:01 pm
connect to vemstune, the serial number is 0
Title: Re: Change ATmega128
Post by: MWfire on May 30, 2018, 03:56:24 pm
what is number on board?
Title: Re: Change ATmega128
Post by: silivri on April 12, 2020, 12:06:48 am
hii all,
i have a same problem the serial number is 0 and safe mode active.
some body can help me??
Title: Re: Change ATmega128
Post by: jrussell on April 15, 2020, 04:58:35 pm
hii all,
i have a same problem the serial number is 0 and safe mode active.
some body can help me??

If you changed the ATmega128 or your ECU is reading serial nr 0 otherwise, the bootloader is missing and you need to contact [email protected] with as much information as you have about the problem to get a new bootloader. You'll have to upload the bootloader with an ISP programmer. Or they may offer to sell you a new ECU in exchange for the old one for a reduced price.