On Wed, Jul 20, 2011 at 7:49 AM, Daniel Beer <dlb...@gmail.com> wrote:
> If your device is one that needs to be accessed via USB (no tty
> support), then you might have more luck using MinGW and libusb-win32:
>
>    http://sourceforge.net/apps/trac/libusb-win32/wiki
>
> Although I haven't actually tried this...

Cygwin should work with libusb-win32 as well.

If MinGW is to be used, there are a bit of changes needed.

XFCHEN@APSGSGPXFCHEN1 /c/cygwin/home/xfchen/mspdebug/mspdebug-0.16_mingw
$ make WITHOUT_READLINE=1 -i
gcc    -O1 -Wall -Wno-char-subscripts -ggdb -o main.o -c main.c
gcc    -O1 -Wall -Wno-char-subscripts -ggdb -o fet.o -c fet.c
gcc    -O1 -Wall -Wno-char-subscripts -ggdb -o rf2500.o -c rf2500.c
gcc    -O1 -Wall -Wno-char-subscripts -ggdb -o dis.o -c dis.c
gcc    -O1 -Wall -Wno-char-subscripts -ggdb -o uif.o -c uif.c
uif.c:26:21: fatal error: termios.h: No such file or directory
compilation terminated.
make: [uif.o] Error 1 (ignored)
gcc    -O1 -Wall -Wno-char-subscripts -ggdb -o olimex.o -c olimex.c
gcc    -O1 -Wall -Wno-char-subscripts -ggdb -o ihex.o -c ihex.c
gcc    -O1 -Wall -Wno-char-subscripts -ggdb -o elf32.o -c elf32.c
elf32.c:25:17: fatal error: elf.h: No such file or directory
compilation terminated.
make: [elf32.o] Error 1 (ignored)
gcc    -O1 -Wall -Wno-char-subscripts -ggdb -o stab.o -c stab.c
stab.c:24:19: fatal error: regex.h: No such file or directory
compilation terminated.
make: [stab.o] Error 1 (ignored)
gcc    -O1 -Wall -Wno-char-subscripts -ggdb -o util.o -c util.c
util.c:26:21: fatal error: termios.h: No such file or directory
compilation terminated.
make: [util.o] Error 1 (ignored)
gcc    -O1 -Wall -Wno-char-subscripts -ggdb -o bsl.o -c bsl.c
bsl.c:26:21: fatal error: termios.h: No such file or directory
compilation terminated.
make: [bsl.o] Error 1 (ignored)
gcc    -O1 -Wall -Wno-char-subscripts -ggdb -o sim.o -c sim.c
gcc    -O1 -Wall -Wno-char-subscripts -ggdb -o symmap.o -c symmap.c
gcc    -O1 -Wall -Wno-char-subscripts -ggdb -o gdb.o -c gdb.c
gdb.c:27:24: fatal error: sys/socket.h: No such file or directory
compilation terminated.
make: [gdb.o] Error 1 (ignored)
gcc    -O1 -Wall -Wno-char-subscripts -ggdb -o btree.o -c btree.c
gcc    -O1 -Wall -Wno-char-subscripts -ggdb -o rtools.o -c rtools.c
gcc    -O1 -Wall -Wno-char-subscripts -ggdb -o sym.o -c sym.c
sym.c:24:19: fatal error: regex.h: No such file or directory
compilation terminated.
make: [sym.o] Error 1 (ignored)
gcc    -O1 -Wall -Wno-char-subscripts -ggdb -o devcmd.o -c devcmd.c
gcc    -O1 -Wall -Wno-char-subscripts -ggdb -o reader.o -c reader.c
gcc    -O1 -Wall -Wno-char-subscripts -ggdb -o vector.o -c vector.c
gcc    -O1 -Wall -Wno-char-subscripts -ggdb -o output_util.o -c output_util.c
gcc    -O1 -Wall -Wno-char-subscripts -ggdb -o expr.o -c expr.c
expr.c:24:19: fatal error: regex.h: No such file or directory
compilation terminated.
make: [expr.o] Error 1 (ignored)
gcc    -O1 -Wall -Wno-char-subscripts -ggdb -o fet_error.o -c fet_error.c
gcc    -O1 -Wall -Wno-char-subscripts -ggdb -o binfile.o -c binfile.c
gcc    -O1 -Wall -Wno-char-subscripts -ggdb -o fet_db.o -c fet_db.c
gcc    -O1 -Wall -Wno-char-subscripts -ggdb -o usbutil.o -c usbutil.c
gcc    -O1 -Wall -Wno-char-subscripts -ggdb -o titext.o -c titext.c
gcc    -O1 -Wall -Wno-char-subscripts -ggdb -o srec.o -c srec.c
gcc    -O1 -Wall -Wno-char-subscripts -ggdb -o device.o -c device.c
gcc    -O1 -Wall -Wno-char-subscripts -ggdb -o coff.o -c coff.c
gcc    -O1 -Wall -Wno-char-subscripts -ggdb -o opdb.o -c opdb.c
gcc    -O1 -Wall -Wno-char-subscripts -ggdb -o output.o -c output.c
gcc    -O1 -Wall -Wno-char-subscripts -ggdb -o cmddb.o -c cmddb.c
gcc    -O1 -Wall -Wno-char-subscripts -ggdb -o stdcmd.o -c stdcmd.c
gcc    -O1 -Wall -Wno-char-subscripts -ggdb -o prog.o -c prog.c
gcc    -O1 -Wall -Wno-char-subscripts -ggdb -o flash_bsl.o -c flash_bsl.c
flash_bsl.c:25:23: fatal error: sys/ioctl.h: No such file or directory
compilation terminated.
make: [flash_bsl.o] Error 1 (ignored)
gcc    -O1 -Wall -Wno-char-subscripts -ggdb -o list.o -c list.c
gcc    -O1 -Wall -Wno-char-subscripts -ggdb -o simio.o -c simio.c
gcc    -O1 -Wall -Wno-char-subscripts -ggdb -o simio_tracer.o -c simio_tracer.c
gcc    -O1 -Wall -Wno-char-subscripts -ggdb -o simio_timer.o -c simio_timer.c
gcc    -O1 -Wall -Wno-char-subscripts -ggdb -o simio_wdt.o -c simio_wdt.c
gcc    -O1 -Wall -Wno-char-subscripts -ggdb -o simio_hwmult.o -c simio_hwmult.c
gcc    -O1 -Wall -Wno-char-subscripts -ggdb -o simio_gpio.o -c simio_gpio.c
gcc    -O1 -Wall -Wno-char-subscripts -ggdb -o aliasdb.o -c aliasdb.c
gcc    -O1 -Wall -Wno-char-subscripts -ggdb -o gdb_proto.o -c gdb_proto.c
gdb_proto.c:23:24: fatal error: sys/socket.h: No such file or directory
compilation terminated.
make: [gdb_proto.o] Error 1 (ignored)
gcc    -O1 -Wall -Wno-char-subscripts -ggdb -o gdbc.o -c gdbc.c
gdbc.c:23:24: fatal error: sys/socket.h: No such file or directory
compilation terminated.
make: [gdbc.o] Error 1 (ignored)
gcc -s  -o mspdebug main.o fet.o rf2500.o dis.o uif.o olimex.o ihex.o elf32.o st
ab.o util.o bsl.o sim.o symmap.o gdb.o btree.o rtools.o sym.o devcmd.o reader.o
vector.o output_util.o expr.o fet_error.o binfile.o fet_db.o usbutil.o titext.o
srec.o device.o coff.o opdb.o output.o cmddb.o stdcmd.o prog.o flash_bsl.o list.
o simio.o simio_tracer.o simio_timer.o simio_wdt.o simio_hwmult.o simio_gpio.o a
liasdb.o gdb_proto.o gdbc.o -lusb
gcc.exe: uif.o: No such file or directory
gcc.exe: elf32.o: No such file or directory
gcc.exe: stab.o: No such file or directory
gcc.exe: util.o: No such file or directory
gcc.exe: bsl.o: No such file or directory
gcc.exe: gdb.o: No such file or directory
gcc.exe: sym.o: No such file or directory
gcc.exe: expr.o: No such file or directory
gcc.exe: flash_bsl.o: No such file or directory
gcc.exe: gdb_proto.o: No such file or directory
gcc.exe: gdbc.o: No such file or directory
make: [mspdebug] Error 1 (ignored)

> Otherwise, if there are drivers supplied for your debug tool, I'm
> guessing you should be able to access it via a /dev/ttyXX device under
> Cygwin (no need for libusb-based access).
>



-- 
Xiaofan

------------------------------------------------------------------------------
10 Tips for Better Web Security
Learn 10 ways to better secure your business today. Topics covered include:
Web security, SSL, hacker attacks & Denial of Service (DoS), private keys,
security Microsoft Exchange, secure Instant Messaging, and much more.
http://www.accelacomm.com/jaw/sfnl/114/51426210/
_______________________________________________
Mspgcc-users mailing list
Mspgcc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mspgcc-users

Reply via email to