[En-Nut-Discussion] Trouble uploading to Ethernut 2.1.b Board

Ernst Stippl ernst at stippl.org
Sun Jun 24 19:10:22 CEST 2007


Hi!

When not using Ethernut's "make burn" I use the following small batch file
to run "uisp":

if %1=="" goto l_error
uisp -dprog=stk500 -dserial=/dev/ttyS0 -dspeed=115200 -dpart=atmega128
--segment=flash  --upload if=%1.hex
goto l_end
:l_error
rem no .hex file defined!
:l_end


I use it with the SP-Duo programmer dongle which came with my Ethernut 2.1b
Starter kit. Are you using this one, too? (you refer to AVR JTAG). I have
the cable labelled "JTAG" connected to J7 and also pins 1-2 and 5-6
connected on JP5.

When powering up the Ethernut board the LED on thr SP Duo is lit *green* and
when connecting a terminal emulator at 115200 bps-8N1 when typing CTRL-V the
reply is "SP Duo v1.0"
Only then burning the ATmega, the LED starts flashing green/red and when
finished becomes green again.
I do this all on a Windows/XP machine and have never tried it on Linux. 
  
hth

Ernst

-----Ursprüngliche Nachricht-----
Von: en-nut-discussion-bounces at egnite.de
[mailto:en-nut-discussion-bounces at egnite.de] Im Auftrag von Michael Casanova
Gesendet: Sonntag, 24. Juni 2007 02:16
An: en-nut-discussion at egnite.de
Betreff: [En-Nut-Discussion] Trouble uploading to Ethernut 2.1.b Board

Hi All,

I am having trouble uploading anything to my Ethernut 2.1b Board.  I have
been searching for a solution all day, but have yet to find anything that
works.

I am using the AVR JTAG adapter that came with my board and have it
connected between the J7 connection and my serial port /dev/ttyS0.  On JP5,
I have pins 1 and 2 shorted, and pins 5 and 6 shorted.

I am trying to use avrdude to program my microcontroller, and have tried
using may different settings, all to no avail.  I am unsure which programmer
to use.  I have tried using STK500, STK200, and a number of the JTAG listed
in the avrdude.conf file.  None of them have worked.

When I connect the JTAG adapter to my serial port, and press Ctrl-V, I get
the hex output:  E0E0 0008.  I am not getting the version number of the
programmer.  My port is configured as follows:  /dev/ttyS0, baud rate -
115200, no parity, 8-bit, 1 stop bit, no flow control.

My serial port is functional.  I have been able to verify that it is working
correctly by connecting the RS-232 connection directly to my serial port,
holding down the spacebar, and pressing reset button.  I am able to get the
Nut/OS version,  the IP Address, the IP Mask, and the Common Gateway.  The
sample application (httpd server) is already loaded, and functions
correctly.

I am seeing some weirdness with the LED on the JTAG adapter.  When I first
power up the board, the LED is solid red.  When I try to program the board,
or issue a Ctrl-V from the terminal, the LED goes out.  The only way to
reset the LED to solid red is to power down and power up the board.  The
reset button does not reset the LED.

I have received a number of error messages when issuing the "make burn"
command, but I they are probably not too helpful, since they are different
depending on which programmer I have selected in my Makefiles.

I do have read/write access on my /dev/ttyS0 port.

I believe my problem lies in a faulty JTAG Programmer, or in selecting the
correct programmer in my Makefiles.

Your help and advice is greatly appreciated.

Thank You,
-Michael
_______________________________________________
http://lists.egnite.de/mailman/listinfo/en-nut-discussion



--
No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.472 / Virus Database: 269.9.6/863 - Release Date: 23.06.2007
11:08




More information about the En-Nut-Discussion mailing list