I believe what happened is that hansibull originally had a hack in place to work around the no efuse issue by defining a separate AVRDUDE tool for ATmega8:
But later a cleaner solution was found that consists of adding a dummy efuse definition to avrdude.conf:
but he forgot to add an extended_fuses property to boards.txt for the ATmega8.
Hi guys. Thank you for your prompt responses. Here are my findings:
I have added 8.bootloader.extended_fuses= with no luck. Problem persists.
However, as Pert suggested I’ve used Arduino as ISP configuration and it works flawless!!
As a side note, let me comment that there is in fact a problem between USBtiny programmer and latest AVRdude 6.3 version. I even have problems uploading a simple blink program by using USBtiny programmer and either ATmega8 or Atmega328p!! What I had to do (based on a suggestion from someone on the matrix) is configure an IDE with an old AVRdude (version 5.10). And this is how I do it whenever I need to upload programs with USBtiny and Arduino IDE.
So I've commented out the “8.bootloader.extended_fuses=” and re did the test…
Still works with “Arduino as ISP” setup! So I’m concluding that it is something between USBtiny and AVRdude 6.3.
It is unfortunately that I am not able to use my USBtiny programmer but I’m happy that I will be able to use MiniCore with Arduino as ISP set up. Maybe it is time for me to buy another programmer;-)
Sorry to send you two on a wild goose chase with my guess as to the problem. Looks like my first hunch was better. It does look like the blank extended_fuses property in boards.txt does result in less confusing AVRDUDE output so it still might be worth considering adding that to MiniCore
I'm a big fan of the USBasp and it sounds like kprims had success using one with MiniCore and ATmega8. Some people swear by the USBtinyISP but I have a few of them and just don't get consistent success. I never have problems with my USBasp or Arduino as ISP and (with the latest AVRDUDE) my AVRISP mkII works fine too. I also think the USBtinyISP have some limitations regarding programming chips with more flash.
On the contrary, thank you for your suggestions Pert and kprims for posting your findings!! I have fun doing these tests; it is a learning process for me. I agree with you in including "8.bootloader.extended_fuses=" in MiniCore Board.txt.
I learned a lot from this and other sites and hope all these findings will help others as well!!
hansibull:
Hi!
Last year I accidentally ordered an ATmega328 instead of an ATmega328p. I thought there wouldn't be a problem using the ATmega328 in Arduino IDE, but I was completely wrong. All Atmel microcontrollers have a device signature, and in this case ATmega328 and ATmega328p doesn't share the same signature. This means that the ATmega328 isn't officially supported (the same goes for the ATmega168).
I started searching for 3rd party cores that would add support for this, but I couldn't find any. That's why I decided to create one myself!
This core is supposed to be working perfectly, but lets be honest; that ain't gonna happened right after the release. I'm able to squash a few bugs here and there, but I sure need your help in order to make this a bug free core.
Why use other chips that the ATmega328P?
You might not need 32kB flash and 2kB ram for your project
Some chips are dirt cheap and can be bought for under a dollar at Ebay or AliExpress
when i open with atmega328 & atmega168 & atmega88 i dont recieve this error , but for atmega8 i recieve this error. how can i fix it?
p.s: when i use blink app for mega8 , its work properly and wont recieve any error.
please download error.txt file bellow for the following instruction of error and see it. tnx
when i open with atmega328 & atmega168 & atmega88 i dont recieve this error , but for atmega8 i recieve this error. how can i fix it?
p.s: when i use blink app for mega8 , its work properly and wont recieve any error.
please download error.txt file bellow for the following instruction of error and see it. tnx
You get the error because the ATmega8 doesn't got pin change interrupts (PCINT), which the original SoftwareSerial library requires. However, I've just pushed a commit to MiniCore where I've added a modified version of SoftwareSerial, where you can use the "regular" interrupt pins (INT0 and INT1, Digital pin 2 and 3) for the RX and TX pins. Just do a manual install of the core (remove the old one first), and you're good to go
hansibull:
You get the error because the ATmega8 doesn't got pin change interrupts (PCINT), which the original SoftwareSerial library requires. However, I've just pushed a commit to MiniCore where I've added a modified version of SoftwareSerial, where you can use the "regular" interrupt pins (INT0 and INT1, Digital pin 2 and 3) for the RX and TX pins. Just do a manual install of the core (remove the old one first), and you're good to go
Hi, thanks for the answer. I did not understand what to do. . . Please explain more
hansibull:
That means that you're still using the SoftwareSerial library that comes with the IDE. Remember, you want to use the custom one.
BTW you should post the new error too. It's important because you need to know which directory the IDE is getting the library from
hey bro i know about this problem! i want a solution to solve it! but i dont know how to use custom one code. if you may please guide me step by step to type the correct code and use costum IDE ill be glad so much. i get an error every time
Try an example. Select ATmega8 in the boards menu, and choose SoftwareSerial (MiniCore) under the examples menu. I get no errors when compiling SoftwareSerialExample.
hansibull:
Try an example. Select ATmega8 in the boards menu, and choose SoftwareSerial (MiniCore) under the examples menu. I get no errors when compiling SoftwareSerialExample.
Hi, I got an error again! Is it possible to log into my computer via TeamViewer software and solve my problem?
Delete E:\app\barnameh\ARDUINO\arduino-1.8.1-windows\arduino-1.8.1\hardware\MiniCore-master. Please be very careful when deleting things on your computer. When in doubt back up!
Move the extracted folder to C:\Users\abbas\Documents\Arduino\hardware. If the hardware folder doesn't already exist then create it.
Restart the Arduino IDE if it's running.
Note that you should never install anything to the Arduino IDE installation folder because anything you put there will be lost when you update to a new version of the Arduino IDE. Instead, always do manual installation of hardware packages and libraries to the sketchbook folder, as was intended.
Delete E:\app\barnameh\ARDUINO\arduino-1.8.1-windows\arduino-1.8.1\hardware\MiniCore-master. Please be very careful when deleting things on your computer. When in doubt back up!
Move the extracted folder to C:\Users\abbas\Documents\Arduino\hardware. If the hardware folder doesn't already exist then create it.
Restart the Arduino IDE if it's running.
Note that you should never install anything to the Arduino IDE installation folder because anything you put there will be lost when you update to a new version of the Arduino IDE. Instead, always do manual installation of hardware packages and libraries to the sketchbook folder, as was intended.
that was perfect
Very good
Thank you
Thank you
Error erased
I must go now
Replace atmega8 hardware with atmega328
You worked hard for me
Thank you
Hi, may be obvious question is it possible to support the m168pb by just changing the signature in the avrdude.conf file or is there a reason I wouldn't want to do this? thanks in advance-
Hello,
I've downloaded minicore, and tested it using blink for quick timing check (atmega8, 8 mhz external clock) and it looks OK, soon i tried to upload my sketch, it has I2C LCD display (F.Malpartida) function, and it didn't work, lcd just showed blank. My display sketch works very well on atmega328 with the same hardware setup (same lcd, same connection). What to be check ?