set path=C:\Program Files (x86)\CodeBlocks\MinGW\bin;C:\Program Files (x86)\CodeBlocks\MinGW\mingw32\bin cd wxMSW-2.8.12\build\msw # 修改 config.gcc 底下內容,避免因為目的檔過大導致鏈結失敗。 # # CFLAGS ?= -fno-keep-inline-dllexport # # CXXFLAGS ?= -fno-keep-inline-dllexport # mingw32-make -f makefile.gcc SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1 clean mingw32-make -f makefile.gcc SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1
-static-libgcc
-static-libstdc++
–no-chrash-handler
用於產生除錯日誌。@echo off ccache.exe ""mingw32-gcc.exe %*"
@echo off ccache.exe ""mingw32-g++.exe %*"
--------------------------- ------------------ | TCP/IP | | | | gdb <--------> OpenOCD | <---> J-Link <----> | debugee | | | USB JTAG | | | (Host PC) | | (Target Board) | --------------------------- ------------------
$ openocd -s ../share/openocd/scripts/ -f interface/jlink.cfg -f board/stm3210e_eval.cfg $ cat openocd.cfg source [find interface/jlink.cfg] source [find target/stm32f1x.cfg] $ openocd -f openocd.cfg $ telnet localhsot 4444
Error: libusb_open() failed with LIBUSB_ERROR_NOT_SUPPORTED Error: Cannot find jlink Interface! Please check connection and permissions.