3

I want to upload an .hex file to an Atmega8 chip (SMD). I want to use the Arduino IDE and an Uno as the ISP program. But I'm unable to find any details on how to load a sketch which is in .hex format.

Following is the batch file I created to use with avrdude. I would like to know if the Command is correct?

C:\Users\Pranay\Desktop\DIY\arduino-1.0.1!\hardware\tools\avr\bin/avrdude -CC:\Users\Pranay\Desktop\DIY\arduino-1.0.1!\hardware\tools\avr\etc/avrdude.conf -v -v -v -v -patmega8 -cstk500
 -P\\.\COM4 -b19200 -Uflash:w:C:\Users\Pranay\Desktop\DIY\arduino-1.0.1!\hexFiles\Heart.hex:i

pause
6
  • It looks okay. Have you tried running it? It can't do any harm if it's wrong; you just get an error message. Commented Jan 16, 2016 at 13:27
  • When i run the batch file it says "C:\Users\Pranay " is not recognised as internal or external command, operable program or Batch file. In the next line it says the system cannot find the path specified. Commented Jan 16, 2016 at 14:48
  • 1
    I think that means you got the file-path wrong. Commented Jan 16, 2016 at 15:52
  • Thanks for your help @Gerben. figured out the mistake and finally sucedded in uploading sketch. Commented Jan 17, 2016 at 14:38
  • 1
    That good to hear. Could you share your solutions, so others might learn from it? Commented Jan 17, 2016 at 16:35

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.