Frustration

142 views
Skip to first unread message

Peter Fielden-Weston

unread,
Aug 11, 2017, 4:51:52 PM8/11/17
to RC2014-Z80
Hi All,

I've just spent two days trying to program a couple of ATMega328p MCUs for Grants video & keyboard project. Two days fighting avrdude, Arduino IDE, ATMel Studio 7 and datasheets, and manuals and tinterwebbie. To nearly get them programmed.

10 minutes ago, I plugged in my TL688. And, with a quick search, programmed both MCUs in 5 minutes. INCLUDING changing the fuse bits.

I'm happy now.

I think.

Peter

Daniel Quadros

unread,
Aug 11, 2017, 5:20:00 PM8/11/17
to RC2014-Z80
Sorry to hear that. I have programed a lot of ATmega and ATtiny chips using avrdude and a USBTinyISP programmer without problems. avrdude command line syntax is a little strange, and figuring out the fuse values can take some time (but sites like http://www.engbedded.com/fusecalc/ help a lot). I have also used an Arduino and some odd home built programmers and they have worked fine. Never tried to use my TL866, as I have the TL866CS that lacks the ICSP port (it seems this can easily be fixed).

DQ
https://dqsoft.blogspot.com

Peter Fielden-Weston

unread,
Aug 11, 2017, 5:22:41 PM8/11/17
to RC2014-Z80
Daniel,

I have the TL866CS, without the icsp port. As I was programming the DIP 328p, I just stuck it in the 40pin zif socket, and it all worked.

Peter

Daniel Quadros

unread,
Aug 11, 2017, 5:52:38 PM8/11/17
to RC2014-Z80
Got to try that. It looks like this will do a "high voltage" (12V) programming that can fix wrong fuse programming.

DQ
http://dqsoft.blogspot.com

Steve Baines

unread,
Aug 18, 2017, 6:07:13 AM8/18/17
to RC2014-Z80
FWIW, here are the avrdude commands that I used to successfully program my ATMEGA328Ps for this same project:

I used the 8 bit connection.
I used an USBAsp interface dongle to do the programming.
The AVRdude commands that I used to flash the firmware and then set the fusebits were:

For the video chip:
> avrdude -c usbasp -P usb -p m328p -u -U flash:w:SBCVideo.hex
> avrdude -c usbasp -P usb -p m328p -u -U lfuse:w:0xf7:m -U hfuse:w:0xd9:m -U efuse:w:0xff:m

For the interface chip:
> avrdude -c usbasp -P usb -p m328p -u -U flash:w:SBCInterface_328.hex
> avrdude -c usbasp -P usb -p m328p -u -U lfuse:w:0xff:m -U hfuse:w:0xd9:m -U efuse:w:0xff:m

The fuse values are on http://searle.hostei.com/grant/MonitorKeyboard/index.html,
from where the hex files were downloaded.


Hope that helps somebody.  

   Cheers - Steve
Reply all
Reply to author
Forward
0 new messages