From: Ned K. <met...@gm...> - 2007-03-28 12:53:44
|
Just wanted to say "thanks" for all the work you folks did (especially Joerg) on getting the libusb support to work on Mac OS/X. I just fired up the CVS version and was delighted to see that I can put away my serial adapter and talk right to the jtagmkII! I haven't put it through its paces yet but will be doing so (on an attiny45). Also in the works for me is a proxy for avr-gdb that will filter the gdb/mi(1) between XCode and avr-gdb so that we can have integrated debugging. I don't know how well this'll work, but it looks like it's promising. Among other things, this proxy will have to ignore not-relevant gdb commands (and fake out XCode to make it work right), and translate others (for instance, "cont" instead of "run"). Apple have apparently made a number of changes to the gdb/mi interface to get XCode working right for the Mac targets. I don't know how this will affect the possibility of having integrated debugging. I also don't know how much XCode knows about the specifics of the Mac targets; the difference in the assembly language, registers, etc. may cause a problem or two. -- Ned Konz ne...@bi... http://bike-nomad.com |
From: Rick M. <rm...@la...> - 2007-04-22 00:06:57
|
ARRGHHHHH! *Every* single time I come back to AVR programming, I fight and fight and fight to get the tools installed or upgraded. Now I'm trying to get the latest libusb/avarice to work, motivated by Ned's success, but I'm not getting anywhere. libusb seemed to build and install fine, but avarice won't link. Here's my configure (avarice 2.6): ./configure "LDFLAGS=-L/usr/local/avr.20061216/i686-apple-darwin8.6.1/ avr/lib -lbfd" "CPPFLAGS=-I/usr/local/avr.20061216/i686-apple- darwin8.6.1/avr/include" --prefix=/usr/local/avr And the end of make: g++ -g -O2 -L/usr/local/avr.20061216/i686-apple-darwin8.6.1/avr/lib -lbfd -o avarice crc16.o devdescr.o ioreg.o jtag2bp.o jtag2io.o jtag2misc.o jtag2prog.o jtag2run.o jtag2rw.o jtag2usb.o jtagbp.o jtaggeneric.o jtagio.o jtagmisc.o jtagprog.o jtagrun.o jtagrw.o main.o remote.o utils.o gnu_getopt.o gnu_getopt1.o -lusb -lbfd - lintl -liconv /usr/bin/ld: Undefined symbols: __objalloc_alloc _lbasename _objalloc_create _objalloc_free _objalloc_free_block _xexit _xstrerror __sch_istable _unlink_if_ordinary __hex_value _hex_init __sch_toupper _xmalloc collect2: ld returned 1 exit status make[2]: *** [avarice] Error 1 make[1]: *** [all] Error 2 make: *** [all-recursive] Error 1 My next step is to start fresh with the whole toolchain, but I see no reason why I shouldn't be able to get it to work now. I've definitely gotten it to work in the past, and I always seem to forget the magic. I'd sure appreciate some suggestions. Thanks! -- Rick |
From: Joerg W. <j...@ur...> - 2007-04-22 06:49:50
|
As Rick Mann wrote: > /usr/bin/ld: Undefined symbols: > __objalloc_alloc > _lbasename > _objalloc_create > _objalloc_free > _objalloc_free_block > _xexit > _xstrerror > __sch_istable > _unlink_if_ordinary > __hex_value > _hex_init > __sch_toupper > _xmalloc > collect2: ld returned 1 exit status > make[2]: *** [avarice] Error 1 > make[1]: *** [all] Error 2 > make: *** [all-recursive] Error 1 You need GNU's version of libiberty because libbfd requires internal (undocumented :-( ) stuff from that one. -- cheers, J"org .-.-. --... ...-- -.. . DL8DTL http://www.sax.de/~joerg/ NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) |
From: Rick M. <rm...@la...> - 2007-04-25 07:36:52
|
On Mar 28, 2007, at 05:53 , Ned Konz wrote: > Just wanted to say "thanks" for all the work you folks did (especially > Joerg) on getting the libusb support to work on Mac OS/X. I just fired > up the CVS version and was delighted to see that I can put away my > serial adapter and talk right to the jtagmkII! After getting everything built, I'm still having no luck using USB. Sigh. Any ideas? Any way to see what version of libusb I have (I took top of CVS)? I get this: > $ avarice -d --jtag usb --mkII :4242 > AVaRICE version 2.6, Apr 23 2007 23:12:14 > > Defaulting JTAG bitrate to 1 MHz. Make sure that the target > frequency is at least 4 MHz or you will likely encounter failures > controlling the target. > > Found JTAG ICE, serno: 00A0000033FA > JTAG config starting. > Attempting synchronisation at bitrate 19200 > > command[0x01, 1]: 01 > did not find any USB device "usb" > USB device not found 2nd time > USB daemon died Sometimes the following part isn't printed: > JTAG config starting. > Attempting synchronisation at bitrate 19200 > > command[0x01, 1]: 01 Thanks! -- Rick |
From: Rick M. <rm...@la...> - 2007-05-08 18:55:53
|
On May 6, 2007, at 16:34 , Ned Konz wrote: > Sorry I'm so late getting back to you. > Did you figure it out yet? Hey, Ned, thanks for getting back to me. No worries on the delay. Sadly, I have not yet figured it out. > Hmm. Is it loading libusb? The right one? You can do this to find out: I don't currently have the Mk II connected (it's at home), but here's what I get. It seems to be the same as your output (wrt the libraries loaded). The thing is, when the Mk II is connected, it does report that it found it (and it reports a serial number). $ DYLD_PRINT_LIBRARIES=1 avarice -P atmega169 -d -d --jtag usb -- mkII :4242 dyld: loaded: /usr/local/avr/bin/avarice dyld: loaded: /usr/local/lib/libusb-0.1.4.dylib dyld: loaded: /usr/local/lib/libintl.3.dylib dyld: loaded: /usr/lib/libiconv.2.dylib, cpu-sub-type: 3 dyld: loaded: /usr/lib/libstdc++.6.dylib, cpu-sub-type: 3 dyld: loaded: /usr/lib/libgcc_s.1.dylib, cpu-sub-type: 3 dyld: loaded: /usr/lib/libSystem.B.dylib, cpu-sub-type: 3 dyld: loaded: /System/Library/Frameworks/IOKit.framework/Versions/A/ IOKit, cpu-sub-type: 3 dyld: loaded: /System/Library/Frameworks/CoreFoundation.framework/ Versions/A/CoreFoundation, cpu-sub-type: 3 dyld: loaded: /System/Library/Frameworks/ SystemConfiguration.framework/Versions/A/SystemConfiguration, cpu-sub- type: 3 dyld: loaded: /usr/lib/libz.1.dylib, cpu-sub-type: 3 dyld: loaded: /usr/lib/libicucore.A.dylib, cpu-sub-type: 3 dyld: loaded: /usr/lib/libauto.dylib, cpu-sub-type: 3 dyld: loaded: /usr/lib/libobjc.A.dylib, cpu-sub-type: 3 dyld: loaded: /usr/lib/system/libmathCommon.A.dylib, cpu-sub-type: 3 AVaRICE version 2.6, Apr 23 2007 23:12:14 Defaulting JTAG bitrate to 1 MHz. Make sure that the target frequency is at least 4 MHz or you will likely encounter failures controlling the target. dyld: loaded: /System/Library/Extensions/IOUSBFamily.kext/Contents/ PlugIns/IOUSBLib.bundle/Contents/MacOS/IOUSBLib, cpu-sub-type: 3 did not find any USB device "usb" USB device not found -- Rick |
From: Rick M. <rm...@la...> - 2007-05-13 22:59:45
|
Well, I just tried it via serial port, and it works fine. But I can't connect via USB: > $ avarice -P atmega128 --jtag /dev/tty.KeySerial1 --mkII :4242 > AVaRICE version 2.6, Apr 23 2007 23:12:14 > > Defaulting JTAG bitrate to 1 MHz. Make sure that the target > frequency is at least 4 MHz or you will likely encounter failures > controlling the target. > > JTAG config starting. > Found a device: JTAGICEmkII > Serial number: 00:a0:00:00:33:fa > Reported JTAG device ID: 0x9702 > Configured for device ID: 0x9702 atmega128 -- Matched with atmega128 > JTAG config complete. > Preparing the target device for On Chip Debugging. > > Disabling lock bits: > LockBits -> 0xff > > Enabling on-chip debugging: > Extended Fuse byte -> 0xff > High Fuse byte -> 0x0f > Low Fuse byte -> 0xef > Waiting for connection on port 4242. Any other suggestions? I'd really love to be able to use this thing directly... TIA, Rick On May 8, 2007, at 11:55 , Rick Mann wrote: > On May 6, 2007, at 16:34 , Ned Konz wrote: > >> Hmm. Is it loading libusb? The right one? You can do this to find >> out: > > I don't currently have the Mk II connected (it's at home), but here's > what I get. It seems to be the same as your output (wrt the libraries > loaded). The thing is, when the Mk II is connected, it does report > that it found it (and it reports a serial number). > > $ DYLD_PRINT_LIBRARIES=1 avarice -P atmega169 -d -d --jtag usb -- > mkII :4242 > dyld: loaded: /usr/local/avr/bin/avarice > dyld: loaded: /usr/local/lib/libusb-0.1.4.dylib > dyld: loaded: /usr/local/lib/libintl.3.dylib > dyld: loaded: /usr/lib/libiconv.2.dylib, cpu-sub-type: 3 > dyld: loaded: /usr/lib/libstdc++.6.dylib, cpu-sub-type: 3 > dyld: loaded: /usr/lib/libgcc_s.1.dylib, cpu-sub-type: 3 > dyld: loaded: /usr/lib/libSystem.B.dylib, cpu-sub-type: 3 > dyld: loaded: /System/Library/Frameworks/IOKit.framework/Versions/A/ > IOKit, cpu-sub-type: 3 > dyld: loaded: /System/Library/Frameworks/CoreFoundation.framework/ > Versions/A/CoreFoundation, cpu-sub-type: 3 > dyld: loaded: /System/Library/Frameworks/ > SystemConfiguration.framework/Versions/A/SystemConfiguration, cpu-sub- > type: 3 > dyld: loaded: /usr/lib/libz.1.dylib, cpu-sub-type: 3 > dyld: loaded: /usr/lib/libicucore.A.dylib, cpu-sub-type: 3 > dyld: loaded: /usr/lib/libauto.dylib, cpu-sub-type: 3 > dyld: loaded: /usr/lib/libobjc.A.dylib, cpu-sub-type: 3 > dyld: loaded: /usr/lib/system/libmathCommon.A.dylib, cpu-sub-type: 3 > AVaRICE version 2.6, Apr 23 2007 23:12:14 > > Defaulting JTAG bitrate to 1 MHz. Make sure that the target > frequency is at least 4 MHz or you will likely encounter failures > controlling the target. > > dyld: loaded: /System/Library/Extensions/IOUSBFamily.kext/Contents/ > PlugIns/IOUSBLib.bundle/Contents/MacOS/IOUSBLib, cpu-sub-type: 3 > did not find any USB device "usb" > USB device not found > > > -- > Rick > > > > ---------------------------------------------------------------------- > --- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > avarice-user mailing list > ava...@li... > https://lists.sourceforge.net/lists/listinfo/avarice-user > -- Rick |