Bootice Problem

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

Hi All

I just built a bootice device, using an ATMEGA16.
When I start AVR Studio 4.10 and enter the JTAG menue,
I get the following error:
The OCD Jtag adapter was detected but the target device did not return a valid jtag id.

Any help is greatly appreciated, since I am somehow lost.

Cheers
Rubi

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

Did you connect a target? If not connect a JTAG enabled device to your ICE and try again.

/Alex

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

Hi Alex

Thanks for your reply.
This was my first Guess also.
I then took an empty Mega16 put him on a Breadboard
added a Crystall an connected him to the Bootice.
I am not 100% sure if the Target was correctly connected.
I connected teh Chip to the board with 6 Cables VCC,GND,TDI,TMS,TDO,TCK.

Cheers
Rubi

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

Hi Alex

Thanks for your HELp, this finally was the breakthrough.
I cannot believe how stupid I was.
I inspected the target avr on the breadboard again, and saw, that the power supply was not correctly installed, VCC on pin 9, instead of Pin 10 !!!
Corrected the error reconected AVR Studio , BINGO, Jtag ICE works now !!!!

HURRA!!!

Cheers
Rubi

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

hehe, have done the same mistake when I built my jtagice.... :D
TIP: Enable the internal oscillator of the mega16. It's much easier when you use a breadboard.

/Alex

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

I think I am getting a similar error when I try starting avarice with my jtag ice
clone and no target. But at least this proves that avarice is talking to the ice!
I'm not sure if I will need to specifiy the cpu type on the avarice command line,
of if it and the ice will figure that out for themselves by probing the target cpu.
I'll have a breadboard target up soon and try it out.

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

Quote:
I'm not sure if I will need to specifiy the cpu type on the avarice command line,
of if it and the ice will figure that out for themselves by probing the target cpu.

I don't think the ice will auto probe to see what type of avr is attached to it. I'm almost sure you will have to tell it for him.
But I have never used the avarice program so maybe....

/Alex

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

Avarice sounds super interesting.
Is there a windows port availabe ?

Cheers
Rubi

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

Quote:
Avarice sounds super interesting.
Is there a windows port availabe ?

From the WinAVR README-file:

Quote:

2.1 Manifest
[...]
6. GNU Debugger (GDB) 6.0
It's a debugger.

7. Insight 6.0
This is GDB with a GUI!

8. AVaRICE 2.2
AVaRICE is a program for interfacing the Atmel JTAG ICE to GDB and users
can debug their AVR. Use in conjunction with GDB.

I read this as: Run AVaRICE with GNU Debugger (GDB). If You want a GUI for it, run AVaRICE with Insight.

All of the things mentioned above are in the WinAVR distribution, which run on Windows.

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

There really isn't any advantage to running avarice on windows. Avarice only works with the serial jtag ice, not the usb version (different serial protocol between the mkI and mkII jtags). Avarice was developed as a way of using the atmel jtag on linux (and other unixes such as freebsd). Gdb was modified to support remote debugging of embedded systems, and Insite is really gdb with a gui interface. All of this stuff runs on windows, but unless you are a diehard unix nut you are really better off using avrstudio for windows. BTW, it would probably be possible to get gdb to run under emacs as an interface to avarice, but only TOTAL gnu nerds would do that! (EMACS == eight hundred meg and constantly swapping)

It would be nice if avr studio was ported for Linux, or could work under wine, but since that isn't the case, you're stuck with the gnu tools if you run Linux. (Not that that's bad, but gdb does have a few limitations as a remote embedded debugger.)