MembersPage/CocorToyota (2006-06-05 16:42:44)

I have v3.3 new board (serialNr=...) with some problems:

Stuck in bootloader.

(no communication with MegaTune and no LCD characters, just 2 lines of squares).

In BrayTerm i have <0> and the board don't respond to any command.

After i enter in Boot mode (loopback the rs232 board)the board respond and everithng is ok : say 'S' report back AVREFI1, say 'v', report "20".

After that i try to update the firmware .i update with psituner and afterthat with perl (perl bin/prog.pl vems.hex :COMn Etwf) 3 diferent files of vems.hex and NOTHING. WHat is my Problem Now? The boot need to be updated?(it is posible to lose some information when i connect and disconnect rapidly the board Please help

  1. opened terminal program, set baud rate to 9600
  2. typed Man
  3. typed Manmcbffmcb, changed to 19200baud etc etc
then you will find the help from smart people alot more forthcoming and alot more helpfull.

After i upload 1.0.36 file vems.hex with perl command(perl bin/prog.pl vems.hex w) in command window i have:

total serious errors during write: 0

VERIFYING...

error at page 0

255,128,0,0

137,239,205,79error at page256

0,0,0,128

0.63.52.141verified<0 101632>

total serious errors at verify: 2

FAILURE we say E


I edit the .bat file (that becomes: )

Problem at verifying :

Verify flash

Error at page: 0

Error at page: 0

too many errors, bailig out

'''A: I think its more reasonable that you have a bad serialport/cable, USB adapter? //Emil Larsson

Read all document befor you tke a conclusion; i write the flash with rs232;in terminal the board respond to any command but ONLY IN BOOT MODE (and in boot mode i can enter only by loopback the board serial plug)

A bad serial adapter/cable (or broken ground in the cable) often seem to work for a few characters, but than fails in the middle of a bigger block.

Enter BOOT mode in 19200,8n1 and get answer for the following commands (all verified OK):

(I use avrdude.conf stk200 entry, but bsd cable works as well)

What i did:

I change the pins of isp proggrammer(i use stk 200 programmer with 74ls244)and it work but the signature of chip is FFFFF and in avrdude i use -F. I read the boot,reprogramm the boot with avrdude and the same probblem.

After that i write the flash and on verify i have some erors.I tried after with avr isp , ponyprog and, erors on writing.

After all i did a stupid thig, i set all fuses and lock bits in ponyprog. I think now is necesary to buy another atmega128 .

it is possible now to write the signature and the fuse and lock bits??? Or the chip was dameged on first try.

I found the chip and is not too expexsive about 9 euro.