微處理器 - Intel Quark D2000 - OpenOCD + GDB



OpenOCD

$ cd
$ wget https://github.com/steward-fu/website/releases/download/d2000/issm-toolchain-linux-2017-02-07.tar.gz
$ tar xvf issm-toolchain-linux-2017-02-07.tar.gz
$ sudo mv issm-toolchain-linux-2017-02-07 /opt/d2000
$ cd /opt/d2000/tools/debugger/openocd
$ ./bin/openocd -f scripts/board/quark_d2000_onboard.cfg

開啟另一個Terminal並且執行如下命令:

$ ls
    hello_world.bin  quark_d2000_rom_fm_hmac.bin

$ gdb

(gdb) target remote :3333
(gdb) monitor clk32M 5000
(gdb) monitor load_image quark_d2000_rom_fm_hmac.bin 0x0
(gdb) monitor load_image hello_world.bin 0x00180000