Pages: [1]   Go Down
Author Topic: direct programming via ISP-programmer  (Read 990 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 26
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.

Logged

Scotland
Offline Offline
Edison Member
*
Karma: 24
Posts: 1218
Have you had your Arduino fix today?
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

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

0
Offline Offline
Newbie
*
Karma: 0
Posts: 26
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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  smiley-confuse  smiley-confuse  smiley-confuse

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
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 519
Posts: 26379
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Are you sure the rest of your board is not intering with the SPI pins used for programming?
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Pages: [1]   Go Up
Jump to: