JTAG ICE and command line tool

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

hello together,
i am looking for a command line tool running under windows with which i could control the JTAG ICE (programming the flash, fuses and eeprom).

i looked at avarice, but fist of all looks like a unix tool and is not ready at all.

so is there any other tool out?

many thanks for your help in advance!

greeting
gerhard

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

avarice is ported from Unix to Windows and many people are using it quite successfully. You must use it in conjunction with GDB. Both GDB and avarice come with the latest release of WinAVR.

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

Hi,

I've attached the files for the latest build of just avarice for windows, enjoy!

-Colin

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

hello again,
many thanks for your efforts!
I will give avarice a chance.

greetings
gerhard

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

hello colin,
i have tried to start avarice but getting an error message, that cygintl-2.dll was not found.
Any idea why this happen?

greetings
gerhard

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

Hi,

Hmm not sure, didn't think you needed that. I've attached it anyways though, try putting it in the directory with avarice, or a system directory (c:\windows\system).

Regards,

-Colin

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

hello,
i downloaded the whole cygwin package and copied the cygintl-2.dll and also the cygiconv-2.dll into the directory of avarice and then it started.
communication with jtagice was working.
if you are not w linus guy (as me) the documentation of avarice is a little bit strange. also it is not up to date.

btw: the protocol for the communication between PC and JTAGICE is available as an application note (avr060).

once again many thanks
gerhard

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

hello again,
avarice is working but i get a warning:

Warning: File format unknown, assuming binary.

command line:
avarice -f pl160.bin -j COM3 -p --part atmega16

pl160.bin is a binary files, programming is working.
any ideas?
is it possible to use other file formats than binary?

2nd problem:
after using avarice my debugger (c-spy from iar) can't get a connection to jtagice. i have to power down the jtagice and afterwards c-spy is working.

any ideas?

many thanks in advance
gerhard

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

Hello,

I think you have to use binary format right now. But you can translate other formats into binary if you have WinAVR, you need the avr-objcopy.exe program (I could attach it here if you wanted), then you do this first:

avr-objcopy -I ihex -O binary pl160.hex pl160.bin

Then run avarice...

I'm not sure about your second problem though... maybe because avarice uses a different baud-rate then c-spy was using or something like that?

-Colin

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

hello,
i already installed winavr and so i have avr-objcopy.after starting avr-objcopy i get a warning:

Warning: Output file cannot represent architecture UNKNOWN!

looks like a missing parameter?
where can I find a documentation about avr-objcopy?

a binary file was produced. loading it with avarice brings the same error message as before.

as far as i understand, avarice is looking for a file in "bfd" format.
is this correct?
what kind of file format is this?

greetings
gerhard