We use cookies to personalize content, interact with our analytics companies, advertising networks and cooperatives, and demographic companies, provide social media features, and to analyze our traffic. Our social media, advertising and analytics partners may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services. Learn more.
I’m trying to build a circuit that uses an ATMega48 PDIP-style chip and an ATTiny26(datasheet). I’m stuck on loading code onto the ATMega48 using an Arduino Uno.
I’ve been following these instructions. I got all the way to step 4 when I got this error:
>avrdude -P COM3 -b 19200 -c avrisp -p m48 -n
[...]
avrdude: Device signature = 0x1e920a
avrdude: Expected signature for ATMEGA48 is 1E 92 05
Double-check chip, or use -F to override this check.
[...]
I did the easy thing and added the -F option, and everything seemed to work out. Then I added the hexfile (following the format specified in the guide) and got this:
>avrdude -P COM3 -b 19200 -c avrisp -p m328p -u -U flash:
w:"[...]\build2681525234531849420.tmp\Blink.cpp.hex":i -F
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.07s
avrdude: Device signature = 0x1e920a
avrdude: Expected signature for ATMEGA328P is 1E 95 0F
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file "[...]\build2681525234531849420.tmp\Blink.cpp.hex"
avrdude: writing flash (1084 bytes):
Writing | ################################################## | 100% 1.34s
avrdude: 1084 bytes of flash written
avrdude: verifying flash memory against [...]\build2681525234531849420.tmp\Blink.cpp.hex:
avrdude: load data flash data from input file [...]\build2681525234531849420.tmp\Blink.cpp.hex:
avrdude: input file [...]\build2681525234531849420.tmp\Blink.cpp.hex contains 1084 bytes
avrdude: reading on-chip flash data:
Reading | ################################################## | 100% 0.98s
avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x0002
0x61 != 0x01
avrdude: verification error; content mismatch
avrdude done. Thank you.
How do I go about fixing this?
For the record, I’m using the “minimal” configuration specified here:
I’m only guessing, but it is likely a sure bet that @Docdreemin does his own PCBs (as do many users who read the forum). and his question is directed at those who may do their own PCBs and know a bit about coding…
where is it stated that forum questions must relate to Inventables or their products or CNC in general?
Inventables provides this forum to allow the people who have Inventables equipment or software a venue for discussing their products and services.
The forum is a courtesy to their customers. It costs them money to provide this service and with some latitude they would most likely prefer traffic that relates to their business.
my bet,
like me he has >1 fora open at any one time,
they all sort of look alike,
and he posted into the wrong one.
easy enough to do and I would be disappointed if anyone was offended by an accidental peek into the awesome skills, additional to x-carve expertise, our forum brothers and sisters possess.
FTR, never used AVRDude, so can’t help you, but glad to know there are people who play with this stuff here: some day I hope to start embedding Raspberry Pis into things I carve and when I do I will be seeking you out…
it does beg the question a bit, if you will indulge me saying so:
as a member of the community here I would like to share side projects or activities not directly related to x-carve, but there is no obvious place to put that stuff on here.
for instance, I recently published a science fiction book on amazon, and would love to make people here aware I did that, but I have not done so as the lack of appropriate container for that discussion makes me think that would be unwelcome.
A would have to agree, subjects about Arduino, published books, and Mopar that have no relation to Inventables or CnC should be considered Off Topic. When reading the OP I was confused because I had assumed it was someone’s CnC project they needed help with.
I notice a lack of follow up from @Docdreemin .who joined only a day ago.
It is an automatic private area that is reserved for a forum member that has a high level of participation on the forum. You can become a member or lose membership based on your usage of the forum.
I used to use avrdude years ago.
There is a board where you can get loads of help.
Avrfreaks
just search it and you will find it.
I have been on there from time to time and those guys know their stuff.
good luck