Jtag mk-II configuration

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

Hello

Can anyone point me in the right direction with regards to configuring the correct IP address and password for using the jtag ice-mk-11 with AVR32 studio.

This is a Linux application.

RC

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

You don't need a JTAGICE mkII for this. Simply connect a serial cable between UART A and your computer, then connect using a terminal application (115200 bps, 8N1). You can run "ifconfig" from the terminal to determine the ip-address. I think the default password for the "avr" user is "avr!", however you can of course change this at the terminal using "passwd".

Hope this helps.
(See the avrfreaks wiki for more information about Linux on STK1000).

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

torkildr

You are correct for up loading application to the STK1000 running Linux you can use the IP address found via "ifconfig" with the user name "anonymous". I am trying to debug a Linux application through the mk-II and AVR32 studio. I have tried the above settings in AVR32 studio but I receive the error "Error during file upload". The console window shows the following information:

Quote:
220-Setting memory limit to 1024+1024kbytes

220-Local time is now 00:15 and the load is 0.00.

220 You will be disconnected after 1800 seconds of inactivity.

USER anonymous
230 Anonymous user logged in.

SYST
215 UNIX Type: L8

PWD
257 "/"

NOOP
200 NOOP command successful

CWD
250 Changed to /

TYPE I
200 TYPE is now 8-bit binary

PORT 192,168,0,103,6,172
502-PORT/EPRT is disabled for security reasons.

502 Please use PASV/EPSV instead ("passive on")

This seems to suggest I do not have permission to write the present directory. I appears the the ftp session is missing the "PASV" command to initiate passive mode on the stk1000.

I will see if I can find where to change this.

RC

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

The anonymous account is only for FTP (unless you've added it yourself as a real user). AVR32S uses FTP to upload the executable and SSH to launch the file and gdb on the target. So there is absolutely no need for JTAGICE mkII. This also means that even if you could succeed in uploading the executable using the anonymous account you would not be able to start and debug it.

Select your target in the targets view then alter the settings in the first page of the properties view. You should specify a user that actually has write permissions to the folder where you try to upload the executable. You must also make sure that the launch profile that you're using matches.

I see from your console output that you've succeeded in setting up the network stuff. It's just a matter of setting the correct user account/upload folder properties.