Go Down

Topic: direct programming via ISP-programmer (Read 1 time) previous topic - next topic

MHz

ok - from AVR studio I can access (read and wirte flash, the fuses too) the mega 328 chip sitting on an breadboard using an external ISP programmer.
After verifying this I want flash my  sketches from ARDUINO IDE using the upload button. Changed upload.using bootloader to avrisp following the instructions in
  http://www.arduino.cc/en/Main/Programmer
I end up with:

avrdude: stk500_getsync(): not in sync: resp=0x00
avrdude: stk500_disable(): protocol error: expect 0x41: resp=0x51

What do I have to change and where?

Thanks

BTW: where do I find the .hex files of the sketches? If all went wrong I could burn the chips via Studio. But still hoping there is a direct way from within Aduino IDE.


spycatcher2k

Hi - What type of programmer are you using?

for example I have an usbtinyisp (clone) and in my sketches folder, I have a hardware folder with my 'other' chips I use :

attiny45usbtinyisp.name=ATtiny45 1Mhz (w/ USB Tiny ISP)
attiny45usbtinyisp.upload.using=arduino:usbtinyisp
attiny45usbtinyisp.upload.maximum_size=4096
attiny45usbtinyisp.build.mcu=attiny45
attiny45usbtinyisp.build.f_cpu=1000000L
attiny45usbtinyisp.build.core=attiny45_85

in boards.txt in a folder called 'Tiny45_85'

as an example - I have 45s, 85s and more. Even got a few 13s left.

So it's quite easy to setup


Drew.
Drew.
http://www.uk-pcb.co.uk - My UK Based PCB Fab & Assembly Company
Design work undertaken
SMD & Thru-Hole assembly

MHz

Hi Drew,
I'm using a STK500 clon which works fine in AVR studio and BASCOM enviroment - full stop! As mentioned in my first posting I changed upload.using bootloader to avrisp following the instructions in http://www.arduino.cc/en/Main/Programmer

Now learned how to switch Arduino to verbose mode I see avrdude use the right port and stk500v1 programmer but can't get in sync after setting dtr and sending some characters  :~  :~  :~

Again: the STK c.one works fine in AVR studio and BASCOM enviroment

Thank you for any hint

-MHz

Just an other topic: did you manage ATiny 2013 in Arduino? Great! Let me know how

CrossRoads

Are you sure the rest of your board is not intering with the SPI pins used for programming?
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

Go Up