This is my 1st Forum Post on AVRFREAKS.
I'm using AS7. and I really enjoyed using its External Tools section.
As you can see, here I have 4 commands and the picture clearly shows the task of each one:
The UNO ones work well and I'm totally cheerful about it. 😎
The problem is about the Atmega8 ones.
using the 2nd command, I've uploaded ArduinoISP Sketch to Arduino-UNO to convert it to an ISP Programmer.
then using the 3rd command, I tried to upload a simple Blink program to Atmega8A.
Actually, It worked well and the LED started to Blink.
but there's just a Warning/Error message in AVRDUDE's log which worries me:
avrdude.exe: safemode: Sorry, reading back fuses was unreliable. I have given up and exited programming mode
NOTE1: I've attached the avrdude log file, if you need it in full.
NOTE2: I've tried reducing the baudrate. I guess "recommending this solution again" won't help.
Thank You in Advance for taking the time to solve my problem. 🙏
Here is the argument for the 3rd command:
//AVRDUDE.EXE //To use Calibrated Internal RC Oscillator //keep CKOPT unprogrammed to use Internal Oscillator // CKSEL3:0 = 0x4 -> 8MHz //Write Fuse LowByte -U lfuse:w:0xE4:m //Write Fuse High Byte -U hfuse:w:0xd9:m //Execute Chip Erase -e //Enable Verbose Output -v //Specify the MCU -p m8 //Specify the programmer -c arduino //Specify the Device's Port which the programmer is attached to -P COM6 //Specify the baudrate -b 19200 //Disable Auto Erase for Flash -D //Write HEX file on Flash -U flash:w:"$(ProjectDir)Debug\$(TargetName).hex":i //Specify the Config file -C "C:\Program Files (x86)\Arduino\hardware\tools\avr\etc\avrdude.conf"