Hi Simon, On 3/18/13, simonqian.openocd <simonqian.open...@gmail.com> wrote: > I see this too, it seems that he want to add a CDC port onto stlink. > But it's not necessary to hack the firmware, it's much more simpler to > develop a new one compatible to stlink. > I have done this, and also add a CDC port, and even intergrate versaloon. > But I'm not sure whether it can support kinetis, because CM0+ kinetis > implement > a MDM-AP, is it supported by OpenOCD? >
I saw your vsprog has support to Kinetis KL25Z used on Freedom board, then I compiled it and fixed some minor issues: interfaces/versaloon/versaloon.c:181:2: error: incompatible implicit declaration of built-in function ‘free’ [-Werror] Just add "#include <stdlib.h>" to interfaces/versaloon/versaloon.c Then it goes on, but when it was almost there it failed to generate final binary: mv -f .deps/vsprog-app_log.Tpo .deps/vsprog-app_log.Po gcc -std=gnu99 -g -O2 -Wall -Wstrict-prototypes -Wformat-security -Wno-unused-parameter -Wno-missing-field-initializers -Werror -Wextra -Wbad-function-cast -Wcast-align -Wredundant-decls -I/usr/include/libxml2 -o vsprog vsprog-vsprog.o vsprog-app_log.o ../src/scripts/libscripts.a ../src/programmer/libprog.a ../src/target/libtgt.a ../src/tools/libtool.a ../src/driver/libdrv.a ../vsf/libvsf.a -lusb -L/usr/lib -lxml2 ../src/programmer/libprog.a(versaloon.o):(.data+0x8): undefined reference to `versaloon_usb_comm' then I modified programmer/Makefile.am to include the source where this reference is created: libprog_a_SOURCES = \ programmer.c \ interfaces/interfaces.c \ interfaces/versaloon/versaloon.c \ + interfaces/versaloon/versaloon_libusb.c \ $(vsf_usbtoxxx_srcdir)/usbtoxxx.c \ $(vsf_usbtoxxx_srcdir)/usbtogpio.c \ $(vsf_usbtoxxx_srcdir)/usbtospi.c \ I reconfigured and compiled again, now the binary is created, but it is returning seg-fault when trying to communicate with FRDM board. Did you get it working with FRDM board? I'm using Ubuntu 12.10 32bits : $ uname -a Linux bob 3.6.11-vanillaice #1 SMP Tue Feb 5 16:57:12 BRST 2013 i686 i686 i686 GNU/Linux $ cat /etc/issue.net Ubuntu 12.10 Sorry ask this questions at openocd mail list, but I don't have access to versaloon at yahoo groups yet (Your membership is awaiting approval by the group owner). Best Regards, Alan ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar _______________________________________________ OpenOCD-devel mailing list OpenOCD-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openocd-devel