Comments (3)
Joerg Wunsch <joerg_wunsch>
Wed 07 Dec 2005 12:25:46 PM UTC
Mind the:
»... with buffersize=128 bytes.«
message.
This is supposed to be fixed by the following revision of butterfly.c:
revision 1.12
date: 2005/10/20 11:36:19; author: joerg_wunsch; state: Exp; lines: +3 -3
Fix yet another sign extension bug introduced by renaming "unsigned char"
to "char".
Do you have a chance to test a version from CVS to see if this also
fixes your problem?
from avrdude.
Nick Lott
Tue 20 Dec 2005 05:34:49 AM UTC
Hi I've tested the changes but I have a slightly different problem. I'm running OsX Tiger 10.4.3 and avrdude5.0-beta works with the butterfly. Version 5.0 segfaults when it attempts to write to the butterfly. Below is the output and the crash report. This was using a fink install (package info from http://screwdecaf.cx/tools.html). I've tried recompiling from the latest CVS source but I get the same problem.
There are 31 Differences between the 2 versions of butterfly.c any idea where to start looking? Most of the changes appear to be castings. If I use the new butterfly.c with the Beta version it seems to work fine so the problem might be due to changes elsewhere in the program.
Any ideas? Can anyone replicate this problem?
nick$ avrdude -p m169 -c butterfly -P /dev/cu.usbserial -U flash:w:test.hex:i
Connecting to programmer: ..
Found programmer: Id = "AVRBOOT"; type = S
Software Version = 1.4; No Hardware Version given.
Programmer supports auto addr increment.
Programmer supports buffered memory access with buffersize=-128 bytes.
Programmer supports the following devices:
Device code: 0x75
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100%
0.00s
avrdude: Device signature = 0x1e9405
avrdude: NOTE: FLASH memory has been specified, an erase cycle will
be performed
To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file "test.hex"
avrdude: writing flash (15862 bytes):
Writing | | 0%
0.00sSegmentation fault
The following is the crash report from ~/Library/Logs/CrashReporter/
avrdude.crash.log
Host Name: MacMini
Date/Time: 2005-11-02 13:47:19.772 +0900
OS Version: 10.4.2 (Build 8C46)
Report Version: 3
Command: avrdude
Path: /sw/bin/avrdude
Parent: bash [386]
Version: ??? (???)
PID: 674
Thread: 0
Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_INVALID_ADDRESS (0x0001) at 0x000b6000
Thread 0 Crashed:
- <<00000000>> 0xffff8aec __memcpy + 844 (cpu_capabilities.h:189)1 avrdude 0x00009ffc butterfly_paged_write + 252 (butterfly.c:578)
2 avrdude 0x00011f14 do_op + 732 (main.c:598)
3 avrdude 0x000138a8 main + 5608 (main.c:1396)
4 avrdude 0x0000219c _start + 344 (crt.c:272)
5 avrdude 0x00002040 start + 60
Thread 0 crashed with PPC Thread State 64:
srr0: 0x00000000ffff8aec srr1:
0x000000000200d030 vrsave: 0x00000000ff000000
cr: 0x4404244a xer: 0x0000000000000005 lr:
0x0000000000009ffc ctr: 0x00000000000000b8
r0: 0x0000000000000001 r1: 0x00000000bfffed90 r2:
0x0000000000000000 r3: 0x00000000000b5004
r4: 0x00000000000ae01c r5: 0x0000000000003dda r6:
0x0000000000000010 r7: 0x0000000000000020
r8: 0x0000000000000030 r9: 0x00000000ffffffff r10:
0x0000000000000060 r11: 0x0000000000000080
r12: 0x00000000000b5fe0 r13: 0x0000000000000001 r14:
0x00000000ffffffff r15: 0x0000000000000000
r16: 0x0000000000000001 r17: 0x0000000000000000 r18:
0x00000000bffff91c r19: 0x0000000000000000
r20: 0x0000000000019f08 r21: 0x000000000034dd10 r22:
0x00000000000b5004 r23: 0x00000000000b5001
r24: 0x00000000000b5002 r25: 0x0000000001806600 r26:
0x0000000000003df6 r27: 0x00000000000b5000
r28: 0x0000000000000000 r29: 0x0000000000003df6 r30:
0x00000000ffffff84 r31: 0x0000000000009f08
Binary Images Description:
0x1000 - 0x25fff avrdude /sw/bin/avrdude
0x60000 - 0x8cfff libncurses.5.dylib /sw/lib/ncurses/libncurses.5.dylib
0x8fe00000 - 0x8fe51fff dyld 43.1 /usr/lib/dyld
0x90000000 - 0x901a6fff libSystem.B.dylib /usr/lib/libSystem.B.dylib
0x901fe000 - 0x90202fff libmathCommon.A.dylib /usr/lib/system/libmathCommon.A.dylib
0x91d3a000 - 0x91d5afff libmx.A.dylib /usr/lib/libmx.A.dylib
0x9361b000 - 0x93623fff libgcc_s.1.dylib /usr/lib/libgcc_s.1.dylib
0x9682a000 - 0x96858fff libncurses.5.4.dylib /usr/lib/libncurses.5.4.dylib
Target: powerpc-apple-darwin8
Configured with: /private/var/tmp/gcc/gcc-5247.obj~4/src/configure --disable-checking -enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --build=powerpc-apple-darwin8 --host=powerpc-apple-darwin8 --target=powerpc-apple-darwin8
Thread model: posix
gcc version 4.0.1 (Apple Computer, Inc. build 5247)
from avrdude.
Nick Lott
Tue 24 Jan 2006 12:50:25 AM UTC
I have just tested the latest CVS version (as of 24 Jan 06) and it is working great now.... Cheers.
Nick.
from avrdude.
Related Issues (20)
- "jtag2 is not a unique start of a programmer name"
- `-F` option not honored
- Add support for more AVR-DU parts HOT 2
- Add support for emscripten HOT 6
- Trouble with Raspberry pi 5 HOT 9
- linuxgpio sysfs fallback improvement to deal with shifted GPIO numbering in new kernel version HOT 1
- usbasp_write_byte in TPI mode; all writes have to be done at page level HOT 15
- cmake enabling LINUXGPIO on ubuntu 20.04 fails HOT 4
- arduino uno atmga328p HOT 2
- macOS github action failed. HOT 9
- CMake improvement -- using pkg-find to find the libraries HOT 1
- format mismatch warnings HOT 3
- Misleading error message: cannot find programmer id
- custom programmer broken in v7.3 HOT 4
- ATtiny11 does not have EEPROM
- Misleading error message when specifying wrong AVR-Ex part HOT 11
- Multi-memory files HOT 13
- AVRDUDE fails to return -1 on certain write byte errors
- UPDI with AtmelICE, how to? HOT 6
- Parallel port silently not working HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from avrdude.