useing the JTAGICE and ISP Programmer with AVRDude

Go To Last Post
18 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi
I wanted to try to program my Mega16 using AVRDude with a cloned JTAGICE/ISP Programmer and my STK500 board.

My questions which settings do I use for programmer id?
c:\avrdude -p m16 -c ??

I purchased this JTAGICE/ISP programmer on ebay it works pretty good with AVRStudio. I'm following a tutorial on youtube and they are using AVRDude.

Thanks
Don

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:
it works pretty good with AVRStudio
So why would you want to mess around with command line stuff? :roll:

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

js wrote:
Quote:
it works pretty good with AVRStudio
So why would you want to mess around with command line stuff? :roll:

Because you miss out on the fun of making it go. :wink:

"I may make you feel but I can't make you think" - Jethro Tull - Thick As A Brick

"void transmigratus(void) {transmigratus();} // recursio infinitus" - larryvc

"It's much more practical to rely on the processing powers of the real debugger, i.e. the one between the keyboard and chair." - JW wek3

"When you arise in the morning think of what a privilege it is to be alive: to breathe, to think, to enjoy, to love." -  Marcus Aurelius

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Don,

Can you provide a link to the tutorial?

You will probably need to install libusb-win32 filter software to use the JTAGICE with avrdude.

"I may make you feel but I can't make you think" - Jethro Tull - Thick As A Brick

"void transmigratus(void) {transmigratus();} // recursio infinitus" - larryvc

"It's much more practical to rely on the processing powers of the real debugger, i.e. the one between the keyboard and chair." - JW wek3

"When you arise in the morning think of what a privilege it is to be alive: to breathe, to think, to enjoy, to love." -  Marcus Aurelius

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Frisky wrote:

I purchased this JTAGICE/ISP programmer on ebay it works pretty good with AVRStudio. I'm following a tutorial on youtube and they are using AVRDude.

If you can post a link to your actual device, you can get a good answer.

If you are using a JTAGICE-1 clone, you use the same COM port as Studio4 does. i.e. it appears as a COM port.

avrdude -c jtag1 -P com5 -b 115200 -p ATmega16

Note that Studio 6 does not support the JTAGICE-1 but Studio 4 does. (and Rowley, IAR, ... )

David.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Well I'll look around to see if I can find where I got it. I'm using AVRStudio 4.18 still. My pc for micro-controllers is still running windows 2000 so I'm not sure if AVRStudio would work in it. The simple code I compiled with note pad II and WinAvr compiles fine. But When I put the same code in AVRStudio is gave me warning about using delay.h library I was using _delay_ms(100) to blink a led on PORTB pin 0. Dave I'll give that a try after dinner. And I'll search for the seller of my programmer.
Thanks
Don

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:
AVRStudio is gave me warning about using delay.h
Did you set up the clock in the project settings?

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

This is the item I have here.
http://www.ebay.com/itm/AVR-JTAG...

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Frisky wrote:
I'm using AVRStudio 4.18 still. My pc for micro-controllers is still running windows 2000 so I'm not sure if AVRStudio would work in it.

John (js) is running Windows 2000 and I think AS 4.18 too, so that should not be a problem.

Can you provide a link to the tutorial?

"I may make you feel but I can't make you think" - Jethro Tull - Thick As A Brick

"void transmigratus(void) {transmigratus();} // recursio infinitus" - larryvc

"It's much more practical to rely on the processing powers of the real debugger, i.e. the one between the keyboard and chair." - JW wek3

"When you arise in the morning think of what a privilege it is to be alive: to breathe, to think, to enjoy, to love." -  Marcus Aurelius

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:
John (js) is running Windows 2000 and I think AS 4.18 too,
John is running XP pro, another Aussie is running Windows 2000 :) AS4.18 is correct, don't need the pain of anything else at the moment.

edit beware that AS5/6 will NOT support your programmer by the looks if things at the moment. AS4 will still be ok

Quote:
DIY Version, Compatible with original JTAGICE 1
MODEL: AVRISP + JTAGICE
As there maybe many thousands of JTAG Mk1 around I suspect that AS4 will still be used well past my nursing home time. :?

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

js wrote:
Quote:
John (js) is running Windows 2000 and I think AS 4.18 too,
John is running XP pro, another Aussie is running Windows 2000 :) AS4.18 is correct, don't need the pain of anything else at the moment.

Sorry, I confused you with Ross (valusoft). It's the meds. :wink:

"I may make you feel but I can't make you think" - Jethro Tull - Thick As A Brick

"void transmigratus(void) {transmigratus();} // recursio infinitus" - larryvc

"It's much more practical to rely on the processing powers of the real debugger, i.e. the one between the keyboard and chair." - JW wek3

"When you arise in the morning think of what a privilege it is to be alive: to breathe, to think, to enjoy, to love." -  Marcus Aurelius

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

avrdude -c jtag1 -P com4 -b 115200 -p m16

This command line worked great with AVRDude. After reading and understanding the warnings AVRStudio was displaying I was able to compile the same code in AVRStudio I didn't have the F_CPU set and I had to turn off optimization so utils/delay.h library could work correctly. So that is great makes me pretty happy. This is the tutorial I'm following along with http://youtu.be/JMMamSVy1Zs

Thanks everyone
Don

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

and I had to turn off optimization so utils/delay.h library could work correctly.

I sure hope you mistyped that and meant "on" not "off"! delay.h only works correctly when optimization is ENABLED.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Sorry I did mean optimization "on". Is there a certain one I should use? 1,2, or 3? Just wondering about the differ levels.
Don

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

Sorry I did mean optimization "on". Is there a certain one I should use? 1,2, or 3? Just wondering about the differ levels.

If you don't have any specific reason to do otherwise, set optimization to -Os .

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

John
Thanks for the reply. I love those glasses and the look on your face. I often have days like that and have thought of your aviator over the years.
Don

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hey don't mix up the ugly dude (Johan) with the good looking dude (John) :lol:

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Johan is not ugly! haha Too funny John!