Platino Soldering station writing hex code

Equipment, circuits, projects, procedures

Platino Soldering station writing hex code

Postby ULfholt » Thu Jun 30, 2016 5:29 pm

I have nearly finished the project, but need to burn the hex code to a Atemega 328P chip. I have tried the following way:

Insert a new chip on an Arduino Uno.
Connect a USBTiny to the Arduino and connect the wire.
Run following command: avrdude -c usbtiny -p m328p -U flash:w:Platino_soldering_station.hex:i -U efuse:w:0xff:m -U hfuse:w:0xd9:m -U lfuse:w:0xe2:m

This seems to work well, but gives me the following error:

Reading | ################################################## | 100% 0.01s

avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x0000
0xff != 0x07
avrdude: verification error; content mismatch

avrdude: safemode: efuse changed! Was ff, and is now 7
Would you like this fuse to be changed back? [y/n]

Can someone please tell me what I am doing wrong and how to fix this?

Best regards

Ulf
ULfholt
 
Posts: 3
Joined: Thu Jun 16, 2016 7:54 am

Re: Platino Soldering station writing hex code

Postby ULfholt » Fri Jul 01, 2016 8:16 am

Just an addon:

As far as I can see, only the 3 lowest bits in efuse are valid. The 5 upper bits are undefined/not used, so WHY would we want to set efuse to 0XFF? This will off course set the 3 lowest bits to 1, but so would the standard value, which is 0X7

Ulf
ULfholt
 
Posts: 3
Joined: Thu Jun 16, 2016 7:54 am


Return to Test & Measurement

Who is online

Users browsing this forum: No registered users and 1 guest