uisp-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Uisp-dev] [bug #5307] uisp fails to enter programming mode on STK500


From: nobody
Subject: [Uisp-dev] [bug #5307] uisp fails to enter programming mode on STK500
Date: Mon, 15 Sep 2003 06:04:49 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225

=================== BUG #5307: LATEST MODIFICATIONS ==================
http://savannah.nongnu.org/bugs/?func=detailbug&bug_id=5307&group_id=2117

Changes by: Anonymous user        Date: Mon 09/15/2003 at 06:04

------------------ Additional Follow-up Comments ----------------------------
I'm sorry but the code was a little confusing due to mix of integer and hex 
presentation. The correct test code is:

-----------------

    for (i=0;i<(int)sizeof(EnterPgmMode_Reply);i++) {

      printf("%x: %x = %xn", i, buf[i], EnterPgmMode_Reply[i]);

-----------------

and the printout is:

-----------------

prompt>/uisp -dprog=stk500 -dserial=/dev/ttyS0 -dpart=AT90S8515 --erase 
--upload --verify if=rom.hex

Firmware Version: 1.14

0: 14 = 14

1: 11 = 10

Failed to enter programming mode.

prompt>

------------------



I'm sorry, hope I havent confused you to much.



/Björn



=================== BUG #5307: FULL BUG SNAPSHOT ===================


Submitted by: None                    Project: AVR In-System Programmer     
Submitted on: Mon 09/15/2003 at 05:55
Category:  None                       Severity:  5 - Major                  
Bug Group:  None                      Resolution:  None                     
Assigned to:  None                    Originator Email:  address@hidden    
Status:  Open                         

Summary:  uisp fails to enter programming mode on STK500

Original Submission:  When trying to program STK500 with the latest version of 
uisp (version 20030618) it fails to enter programming mode. I have compiled in 
some printf's to try to track what is failing and this is what it says:

------------------

prompt>uisp --version

uisp version 20030618

--------------------------------------

prompt> uisp -dprog=stk500 -dserial=/dev/ttyS0 -dpart=AT90S8515 --erase 
--upload --verify if=rom.hex

Firmware Version: 1.14

0: 14 = 20

1: 11 = 16

Failed to enter programming mode.

prompt>

--------------------------------------



The code I changed is in Stk500.C:

---------------------------------------

void TStk500::EnterProgrammingMode() {

  TByte buf[100];

  int i;



  memcpy(buf, EnterPgmMode, sizeof(EnterPgmMode));

  Send(buf, sizeof(EnterPgmMode), sizeof(EnterPgmMode_Reply));

  if (memcmp(buf, EnterPgmMode_Reply, sizeof(EnterPgmMode_Reply)) != 0) {

    for (i=0;i<(int)sizeof(EnterPgmMode_Reply);i++) {

      printf("%x: %x = %in", i, buf[i], EnterPgmMode_Reply[i]);

    }

    throw Error_Device ("Failed to enter programming mode."); }

}

-------------------------------------------



It seams as the answer is incorrect but I dont know what to expect.



/Björn

Follow-up Comments
*******************

-------------------------------------------------------
Date: Mon 09/15/2003 at 06:04       By: None
I'm sorry but the code was a little confusing due to mix of integer and hex 
presentation. The correct test code is:

-----------------

    for (i=0;i<(int)sizeof(EnterPgmMode_Reply);i++) {

      printf("%x: %x = %xn", i, buf[i], EnterPgmMode_Reply[i]);

-----------------

and the printout is:

-----------------

prompt>/uisp -dprog=stk500 -dserial=/dev/ttyS0 -dpart=AT90S8515 --erase 
--upload --verify if=rom.hex

Firmware Version: 1.14

0: 14 = 14

1: 11 = 10

Failed to enter programming mode.

prompt>

------------------



I'm sorry, hope I havent confused you to much.



/Björn


CC list is empty


No files currently attached


For detailed info, follow this link:
http://savannah.nongnu.org/bugs/?func=detailbug&bug_id=5307&group_id=2117

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]