I am at my wits end here. I’ve spent all day slogging through rebuilding the OpenOCD to get it to work with the ST Nucleo boards.
I had issues with the CR/LF using Cygwin in Windows and was able to remedy that. Now, during make, I get the following error:
libtool: compile: gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../../.. -I../../../../src -I../../../../src -I../../../../src/helper -DPKGDATADIR=\"/usr/local/share/openocd\" -DBINDIR=\"/usr/local/bin\" -I../../../../jimtcl -I../../../../jimtcl -I../../../../src/jtag/drivers -isystem /usr/include/libusb-1.0 -g -O2 -Wall -Wstrict-prototypes -Wformat-security -Wshadow -Wextra -Wno-unused-parameter -Wbad-function-cast -Wcast-align -Wredundant-decls -Werror -MT usb_blaster.lo -MD -MP -MF .deps/usb_blaster.Tpo -c usb_blaster.c -o usb_blaster.o
usb_blaster.c: In function 'ublast_handle_pin_command':
usb_blaster.c:955:3: error: array subscript has type 'char' [-Werror=char-subscripts]
switch (tolower(val)) {
^
cc1: all warnings being treated as errors
Makefile:400: recipe for target 'usb_blaster.lo' failed
make[7]: *** [usb_blaster.lo] Error 1
make[7]: Leaving directory '/cygdrive/d/eclipse_gcc/openocd-0.7.0/source/openocd/src/jtag/drivers/usb_blaster'
Makefile:999: recipe for target 'all-recursive' failed
make[6]: *** [all-recursive] Error 1
make[6]: Leaving directory '/cygdrive/d/eclipse_gcc/openocd-0.7.0/source/openocd/src/jtag/drivers'
Makefile:526: recipe for target 'all-recursive' failed
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory '/cygdrive/d/eclipse_gcc/openocd-0.7.0/source/openocd/src/jtag'
Makefile:402: recipe for target 'all' failed
make[4]: *** [all] Error 2
make[4]: Leaving directory '/cygdrive/d/eclipse_gcc/openocd-0.7.0/source/openocd/src/jtag'
Makefile:618: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/cygdrive/d/eclipse_gcc/openocd-0.7.0/source/openocd/src'
Makefile:446: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/cygdrive/d/eclipse_gcc/openocd-0.7.0/source/openocd/src'
Makefile:501: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/cygdrive/d/eclipse_gcc/openocd-0.7.0/source/openocd'
Makefile:408: recipe for target 'all' failed
make: *** [all] Error 2
I am using Cygwin on Win7, building this repo: https://github.com/ntfreak/openocd
Any help would be appreciated.