Go Down

Topic: error burning 328 bootloader with NKC MaxSerial (Read 2114 times) previous topic - next topic


Mar 22, 2009, 11:43 pm Last Edit: Mar 22, 2009, 11:45 pm by JustinHoMi Reason: 1
I have a MaxSerial 2.0 from NKC, which originally had a 168 in it. I just bought a 328 from Sparkfun, and am trying to burn the bootloader. In the past I've had no trouble burning the 168 bootloader with my parallel programmer, but for whatever reason it's not working with the 328. I'm getting the following error:

Code: [Select]
avrdude: verification error, first mismatch at byte 0x7800
0x0c != 0xff

avrdude: verification error; content mismatch

I've tried v13 and 14 of the IDE.

The process I go through to burn is:

1. Connect parallel programmer between PC and arduino
2. Plug power into arduino
3. Select the 328 board in Tools:Board
4. Select Burn Bootloader w/ Parallel Programmer

It pauses for several seconds, then displays the error.

Any ideas?


Mar 23, 2009, 03:49 am Last Edit: Mar 23, 2009, 03:50 am by BroHogan Reason: 1
Humm, it should work. Just so you know it's doable, I used a BoArduino + parallel + PC + IDE REL0013 + Sparkfun 328 and burnt 3 bootloaders with no problem.

So what's different?
Re your process - I always power the chip before I connect to the port - FWIW.
Did you try re-burning a 168 as a test? Good chance your known good setup isn't for some reason. Is the PC (?) your using now the same one that burned the 168s?
I'm not an expert, but that error looks like your just not talking to the chip. Chip plugged in OK?
"Data is not information, information is not knowledge, knowledge is not understanding, understanding is not wisdom."
~ Clifford Stoll


avrdude verifies the content after the upload process. And there was an error.
There are a few possibilities:
1. your atmega is damaged, or at least the flash memory. Reading or Writing failed. Try another chip.
2. your programmer produced the error. Try another ISP programmer
3. problems with your parallel port? Try another PC.
4. wrong hex file? Which version did you use?


Well... I took BroHogan's advice and plugged in power before I plugged in the programmer, and it worked! I did this with IDE 13.


Interesting! I'm glad I noted that seemingly small difference.
So at this point it appears that success with a parallel programmer is dependent upon when power is applied to the target board.  :o
I'll have to try and confirm this. Thanks for getting back.
"Data is not information, information is not knowledge, knowledge is not understanding, understanding is not wisdom."
~ Clifford Stoll


Let me know if you are able to duplicate the problem in the same way as me. I wanted to try again, but if it was just a fluke that it burned without errors, then I didn't want to risk it!


I don't blame you for not wanting to retry it!
I tried it using your process (power after connection) and I was still able to burn the bootloader. Must be a "moon phase" problem.
I do know that if your parallel cable is too long (~3') you can have intermittent problems.  :-X
"Data is not information, information is not knowledge, knowledge is not understanding, understanding is not wisdom."
~ Clifford Stoll


My cable is too SHORT, if anything. Good to know, though... I was planning on making it much longer.


Your limited primarily by the cables native capacitance and tendency for cross-talk. With conventional ribbon cable, you should be under 2ft, but this largely depends on your parallel ports drive capabilities. Adding a buffer of some kind may dramatically increase your cable lengths.

(For those who are curious, assuming a perfect conductor and zero response delay, you're limited to somewhere around 150 meters for clocked communication at 1MHz, although your pp programmer is likely much slower than 1MHz and your cable is far from ideal, and the ATmega & PC have non-zero processing times - you could also measure the latency and correct for the delay in clock-out to data-back, but you know...).
iDuino - MaxSerial - [url=http://spi

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131