Author Topic: Change ATmega128  (Read 3851 times)

Offline sandokan

  • Jr. Member
  • **
  • Posts: 14
  • BHP: 0
Change ATmega128
« on: May 30, 2018, 12:26:56 pm »
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.

Offline MWfire

  • Hero Member
  • *****
  • Posts: 714
  • BHP: 35
Re: Change ATmega128
« Reply #1 on: May 30, 2018, 01:09:29 pm »
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.

Offline sandokan

  • Jr. Member
  • **
  • Posts: 14
  • BHP: 0
Re: Change ATmega128
« Reply #2 on: May 30, 2018, 01:15:35 pm »
The only connection with the board is ISP, maybe some advice

Offline MWfire

  • Hero Member
  • *****
  • Posts: 714
  • BHP: 35
Re: Change ATmega128
« Reply #3 on: May 30, 2018, 02:46:45 pm »
yes, you need to put first firmware over ISP. Also set fuses.

Offline sandokan

  • Jr. Member
  • **
  • Posts: 14
  • BHP: 0
Re: Change ATmega128
« Reply #4 on: May 30, 2018, 02:53:36 pm »
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

Offline sandokan

  • Jr. Member
  • **
  • Posts: 14
  • BHP: 0
Re: Change ATmega128
« Reply #5 on: May 30, 2018, 06:03:01 pm »
connect to vemstune, the serial number is 0

Offline MWfire

  • Hero Member
  • *****
  • Posts: 714
  • BHP: 35
Re: Change ATmega128
« Reply #6 on: May 30, 2018, 07:56:24 pm »
what is number on board?

Offline silivri

  • New Users
  • *
  • Posts: 1
  • BHP: 0
Re: Change ATmega128
« Reply #7 on: April 12, 2020, 04:06:48 am »
hii all,
i have a same problem the serial number is 0 and safe mode active.
some body can help me??

Offline jrussell

  • VEMS USA
  • Administrator
  • Full Member
  • *****
  • Posts: 203
  • BHP: 15
    • VEMS USA
Re: Change ATmega128
« Reply #8 on: April 15, 2020, 08: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 info@vems.hu 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.
VEMS USA - Located in beautiful Burlington, Vermont
1988 RX7 Turbo