avrdude-dev
[Top][All Lists]
Advanced

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

[avrdude-dev] [bug #27507] SIGSEGV when using avrdragon (avrdude 5.8)


From: Alexey
Subject: [avrdude-dev] [bug #27507] SIGSEGV when using avrdragon (avrdude 5.8)
Date: Tue, 27 Oct 2009 12:25:09 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.5) Gecko/2008122010 Iceweasel/3.0.12 (Debian-3.0.12-1)

Follow-up Comment #3, bug #27507 (project avrdude):

I've stumbled into that bug also. AVR Dragon (with new firmware), ATTiny2313,
segfault at initialization step:

         Using Port                    : usb
         Using Programmer              : dragon_isp
avrdude: stk500v2_dragon_isp_open()
avrdude: usbdev_open(): Found AVRDRAGON, serno: 00A20000327A
avrdude: usbdev_open(): using read endpoint 0x82
avrdude: jtagmkII_getsync()
avrdude: jtagmkII_getsync(): Sending sign-on command: 
avrdude: jtagmkII_send(): sending 1 bytes
make: *** [program] Segmentation fault

With following patch, everything works:
$ diff -Nru stk500v2.c.old stk500v2.c
--- stk500v2.c.old      2009-07-11 04:39:37.000000000 +0600
+++ stk500v2.c  2009-10-27 17:04:04.000000000 +0500
@@ -3586,8 +3593,8 @@
   pgm->paged_load     = stk500v2_paged_load;
   pgm->print_parms    = stk500v2_print_parms;
   pgm->set_sck_period = stk500v2_set_sck_period_mk2;
-  pgm->setup          = jtagmkII_setup;
-  pgm->teardown       = jtagmkII_teardown;
+  pgm->setup          = stk500v2_jtagmkII_setup;
+  pgm->teardown       = stk500v2_jtagmkII_teardown;
   pgm->page_size      = 256;
 }

It still does "jtagmkII_close(): bad response to GO command:
RSP_ILLEGAL_EMULATOR_MODE" when closing connection, though.


    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?27507>

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





reply via email to

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