{"id":3789,"date":"2023-06-07T17:27:25","date_gmt":"2023-06-07T08:27:25","guid":{"rendered":"https:\/\/oohito.com\/nqthm\/?p=3789"},"modified":"2023-07-03T08:57:46","modified_gmt":"2023-07-02T23:57:46","slug":"debug-probe-%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e3%83%87%e3%83%90%e3%83%83%e3%82%b0%e3%81%99%e3%82%8b2","status":"publish","type":"post","link":"https:\/\/oohito.com\/nqthm\/archives\/3789","title":{"rendered":"Debug Probe \u3092\u4f7f\u3063\u3066\u30c7\u30d0\u30c3\u30b0\u3059\u308b(2)"},"content":{"rendered":"\n<p><a href=\"https:\/\/oohito.com\/nqthm\/archives\/3780\" data-type=\"post\" data-id=\"3780\">\u524d\u56de\u306e\u8a18\u4e8b<\/a>\u3067\u306f\u3001<a href=\"https:\/\/www.raspberrypi.com\/products\/debug-probe\/\">Debug Probe<\/a> \u306e\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u306e\u6e96\u5099\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u305f\u3002\u4eca\u56de\u306f\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u5074\u3092\u6e96\u5099\u3057\u3066\u3001\u5b9f\u969b\u306b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u30c7\u30d0\u30c3\u30b0\u5b9f\u884c\u3057\u3066\u307f\u308b\u3002<\/p>\n\n\n\n<!--more-->\n\n\n\n<h2 class=\"wp-block-heading\">\u30c7\u30d0\u30c3\u30b0\u7528\u30c4\u30fc\u30eb\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n\n\n\n<p>\u30c7\u30d0\u30c3\u30b0\u306b\u306f\u3044\u304f\u3064\u304b\u306e\u30c4\u30fc\u30eb\u304c\u5fc5\u8981\u3089\u3057\u3044\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>OpenOCD\uff080.11.0 \u304b 0.12.0 \u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u5fc5\u8981\uff09<\/li>\n\n\n\n<li>gdb-multiarch<\/li>\n\n\n\n<li>UART0\u306e\u78ba\u8a8d\u306e\u305f\u3081\u9069\u5b9c\uff1aminiterm<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">ubuntu 22.04\u306e\u5834\u5408<\/h3>\n\n\n\n<p>ubuntu 22.04\u306e\u5834\u5408\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo apt install openocd gdb-multiarch<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">ubuntu 20.04\u306e\u5834\u5408<\/h3>\n\n\n\n<p>ubuntu 20.04\u306f\u516c\u5f0f\u30d1\u30c3\u30b1\u30fc\u30b8\u306b\u3042\u308b OpenOCD \u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c 0.10.0\u3060\u3063\u305f\u306e\u3067\u3001\u30d3\u30eb\u30c9\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u3002<\/p>\n\n\n\n<p>\u307e\u305a\u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo apt install automake autoconf build-essential texinfo libtool libftdi-dev libusb-1.0-0-dev<\/pre>\n\n\n\n<p>\u6b21\u306b OpenOCD \u306egithub\u30ec\u30dd\u30b8\u30c8\u30ea\u3092\u30af\u30ed\u30fc\u30f3\u3059\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ git clone https:\/\/github.com\/raspberrypi\/openocd.git --branch rp2040 --depth=1 --no-single-branch<\/pre>\n\n\n\n<p>\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3057\u3001\u30d3\u30eb\u30c9\u3059\u308b<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ cd openocd\n$ .\/bootstrap\n$ .\/configure\n$ make -j4<\/pre>\n\n\n\n<p>\u3053\u308c\u307e\u3067\u306e\u30d7\u30ed\u30bb\u30b9\u3067\u554f\u984c\u304c\u751f\u3058\u306a\u3051\u308c\u3070\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo make install<\/pre>\n\n\n\n<p>\u6700\u5f8c\u306bgdb\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo apt install gdb-multiarch<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u30c7\u30d0\u30c3\u30b0\u7528\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u7528\u610f<\/h2>\n\n\n\n<p>Debug Probe \u306e\u30c6\u30b9\u30c8\u306e\u305f\u3081\u3001CQ\u51fa\u7248\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u8a8c\uff17\u6708\u53f7\u7279\u96c6\u300c\u30e9\u30ba\u30d1\u30a4Pico\u30671500\u884c \u30bc\u30ed\u304b\u3089\u4f5c\u308bOS\u300d\u306e\u7b2c\uff12\u90e8\u7b2c\uff14\u7ae0\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f7f\u3063\u3066\u30c7\u30d0\u30c3\u30b0\u3057\u3066\u307f\u308b\u3002<\/p>\n\n\n\n<p>\u524d\u56de\u306e\u53cd\u7701\u304b\u3089\u3001\u30d3\u30eb\u30c9\u306b\u95a2\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u3092 build \u30d5\u30a9\u30eb\u30c0\u306b\u307e\u3068\u3081\u308b\u3053\u3068\u306b\u3057\u305f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ cd part_2_sect_4\n$ tree .\n.\n\u251c\u2500\u2500 application\n\u2502&nbsp;&nbsp; \u2514\u2500\u2500 main.c\n\u251c\u2500\u2500 boot\n\u2502&nbsp;&nbsp; \u251c\u2500\u2500 boot2.c\n\u2502&nbsp;&nbsp; \u251c\u2500\u2500 reset_hdr.c\n\u2502&nbsp;&nbsp; \u2514\u2500\u2500 vector_tbl.c\n\u251c\u2500\u2500 build\n\u2502&nbsp;&nbsp; \u2514\u2500\u2500 build.sh\n\u251c\u2500\u2500 include\n\u2502&nbsp;&nbsp; \u251c\u2500\u2500 knldef.h\n\u2502&nbsp;&nbsp; \u251c\u2500\u2500 sysdef.h\n\u2502&nbsp;&nbsp; \u251c\u2500\u2500 syslib.h\n\u2502&nbsp;&nbsp; \u251c\u2500\u2500 trykernel.h\n\u2502&nbsp;&nbsp; \u2514\u2500\u2500 typedef.h\n\u251c\u2500\u2500 kernel\n\u2502&nbsp;&nbsp; \u2514\u2500\u2500 syslib.c\n\u251c\u2500\u2500 lib -&gt; ..\/part_2_sect_3\/lib\/\n\u2514\u2500\u2500 linker\n    \u2514\u2500\u2500 pico_memmap.ld\n\n7 directories, 12 files<\/code><\/pre>\n\n\n\n<p>lib\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306f\u7b2c\uff12\u90e8\u7b2c\uff13\u7ae0\u306e\u3082\u306e\u3092\u4f7f\u3046\u3088\u3046\u306b\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30ea\u30f3\u30af\u3092\u4f5c\u3063\u305f\u3002kernel\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306f\u7b2c\uff14\u7ae0\u3067\u65b0\u305f\u306b\u5c0e\u5165\u3055\u308c\u305f\u3082\u306e\u3067\u3042\u308b\u3002<\/p>\n\n\n\n<p>build\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u306f\u3001\u30d3\u30eb\u30c9\u306e\u305f\u3081\u306e\u30b9\u30af\u30ea\u30d7\u30c8\uff08build.sh\uff09\u3092\u7528\u610f\u3057\u305f\u3002\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u5185\u5bb9\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3002\uff08\u4ee5\u524d\u306b\u8aac\u660e\u3057\u305f\u30b3\u30de\u30f3\u30c9\u306b\u6bd4\u3079\u3066\u3001\u30c7\u30d0\u30c3\u30b0\u60c5\u5831\u3092\u751f\u6210\u3059\u308b\u30b3\u30f3\u30d1\u30a4\u30eb\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u52a0\u3048\u3066\u3044\u308b\uff09<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/usr\/bin\/arm-none-eabi-gcc <strong>-ggdb -g3<\/strong> -c -I ..\/include -mthumb -mcpu=cortex-m0plus ..\/application\/*.c ..\/boot\/*.c ..\/kernel\/*.c ..\/lib\/*.c\n\/usr\/bin\/arm-none-eabi-gcc -nostartfiles -Wl,--script=..\/linker\/pico_memmap.ld -Wl,-z,max-page-size=4096 -Wl,--gc-sections *.o -o out.elf<\/code><\/pre>\n\n\n\n<p>\u30d3\u30eb\u30c9\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001out.elf \u304c\u751f\u6210\u3055\u308c\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ cd build\n$ sh build.sh<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u30c7\u30d0\u30c3\u30b0\u3057\u3066\u307f\u308b<\/h2>\n\n\n\n<p>\u4e0a\u3067\u30d3\u30eb\u30c9\u3057\u305f\u30d7\u30ed\u30b0\u30e9\u30e0\u3092 Raspberry Pi pico \u306b\u8ee2\u9001\u3057\u3066\u3001\u30c7\u30d0\u30c3\u30b0\u3057\u3066\u307f\u308b\u3002<\/p>\n\n\n\n<p>\u307e\u305a\u306f pico \u306b\u63a5\u7d9a\u3057\u305f Debug Probe \u306eUSB\u30b1\u30fc\u30d6\u30eb\u3092PC\u306b\u63a5\u7d9a\u3057\u3001pico \u306eUSB\u306b\u3082\u96fb\u6e90\u3092\u4f9b\u7d66\u3059\u308b\u3002<\/p>\n\n\n\n<p>\u7d9a\u3044\u3066 OpenOCD \u3092\u4f7f\u3063\u3066\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u8ee2\u9001\u30fb\u5b9f\u884c\u3057\u3066\u307f\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo openocd -f interface\/cmsis-dap.cfg -f target\/rp2040.cfg -c \"adapter speed 5000\" -c \"program out.elf verify reset exit\"\nOpen On-Chip Debugger 0.11.0-g8e3c38f-dirty (2023-06-07-12:36)\nLicensed under GNU GPL v2\nFor bug reports, read\n        http:&#47;&#47;openocd.org\/doc\/doxygen\/bugs.html\nInfo : auto-selecting first available session transport \"swd\". To override use 'transport select &lt;transport&gt;'.\nInfo : Hardware thread awareness created\nInfo : Hardware thread awareness created\nInfo : RP2040 Flash Bank Command\nadapter speed: 5000 kHz\n\nInfo : Using CMSIS-DAPv2 interface with VID:PID=0x2e8a:0x000c, serial=E6616407E31CA62C\nInfo : CMSIS-DAP: SWD  Supported\nInfo : CMSIS-DAP: FW Version = 2.0.0\nInfo : CMSIS-DAP: Interface Initialised (SWD)\nInfo : SWCLK\/TCK = 0 SWDIO\/TMS = 0 TDI = 0 TDO = 0 nTRST = 0 nRESET = 0\nInfo : CMSIS-DAP: Interface ready\nInfo : clock speed 5000 kHz\nInfo : SWD DPIDR 0x0bc12477\nInfo : SWD DLPIDR 0x00000001\nInfo : SWD DPIDR 0x0bc12477\nInfo : SWD DLPIDR 0x10000001\nInfo : rp2040.core0: hardware has 4 breakpoints, 2 watchpoints\nInfo : rp2040.core1: hardware has 4 breakpoints, 2 watchpoints\nInfo : starting gdb server for rp2040.core0 on 3333\nInfo : Listening on port 3333 for gdb connections\ntarget halted due to debug-request, current mode: Thread \nxPSR: 0xf1000000 pc: 0x000000ee msp: 0x20041f00\ntarget halted due to debug-request, current mode: Thread \nxPSR: 0xf1000000 pc: 0x000000ee msp: 0x20041f00\n** Programming Started **\nInfo : RP2040 B0 Flash Probe: 2097152 bytes @10000000, in 512 sectors\n\ntarget halted due to debug-request, current mode: Thread \nxPSR: 0x01000000 pc: 0x00000178 msp: 0x20041f00\ntarget halted due to debug-request, current mode: Thread \nxPSR: 0x01000000 pc: 0x00000178 msp: 0x20041f00\ntarget halted due to debug-request, current mode: Thread \nxPSR: 0x01000000 pc: 0x00000178 msp: 0x20041f00\ntarget halted due to debug-request, current mode: Thread \nxPSR: 0x01000000 pc: 0x00000178 msp: 0x20041f00\ntarget halted due to debug-request, current mode: Thread \nxPSR: 0x01000000 pc: 0x00000178 msp: 0x20041f00\nInfo : Writing 4096 bytes starting at 0x0\ntarget halted due to debug-request, current mode: Thread \nxPSR: 0x01000000 pc: 0x00000178 msp: 0x20041f00\ntarget halted due to debug-request, current mode: Thread \nxPSR: 0x01000000 pc: 0x00000178 msp: 0x20041f00\ntarget halted due to debug-request, current mode: Thread \nxPSR: 0x01000000 pc: 0x00000178 msp: 0x20041f00\ntarget halted due to debug-request, current mode: Thread \nxPSR: 0x01000000 pc: 0x00000178 msp: 0x20041f00\ntarget halted due to debug-request, current mode: Thread \nxPSR: 0x01000000 pc: 0x00000178 msp: 0x20041f00\ntarget halted due to debug-request, current mode: Thread \nxPSR: 0x01000000 pc: 0x00000178 msp: 0x20041f00\n** Programming Finished **\n** Verify Started **\ntarget halted due to debug-request, current mode: Thread \nxPSR: 0x01000000 pc: 0x00000178 msp: 0x20041f00\n** Verified OK **\n** Resetting Target **\nshutdown command invoked<\/code><\/pre>\n\n\n\n<p>\u8ee2\u9001\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u306f out.uf2 \u3067\u306f\u306a\u304f\u3001out.elf \u3067\u3042\u308b\u3053\u3068\u306b\u6ce8\u610f\u3059\u308b\u3002<\/p>\n\n\n\n<p>Debug Probe \u3092\u4f7f\u308f\u305aUSB\u30c9\u30e9\u30a4\u30d6\u3068\u3057\u3066\u8a8d\u8b58\u3055\u308c\u305f pico \u306b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u8ee2\u9001\u3059\u308b\u5834\u5408\u3001\u3044\u3063\u305f\u3093USB\u30b1\u30fc\u30d6\u30eb\u3092\u629c\u3044\u3066\u304b\u3089\u3001BOOTSEL \u3092\u62bc\u3057\u305f\u72b6\u614b\u3067USB\u30b1\u30fc\u30d6\u30eb\u3092\u63a5\u7d9a\u3057\u3001UF2\u5f62\u5f0f\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u8ee2\u9001\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u3002<\/p>\n\n\n\n<p>\u4e00\u65b9\u3001Debug Probe \u3092\u4f7f\u3046\u5834\u5408\u306f pico \u306e\u30b1\u30fc\u30d6\u30eb\u985e\u3092\u63a5\u7d9a\u3057\u305f\u72b6\u614b\u306e\u307e\u307e\u3067\u3001PC\u304b\u3089\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u8ee2\u9001\u3084 pico \u306e\u30ea\u30bb\u30c3\u30c8\u306a\u3069\u304c\u884c\u3048\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">OpenOCD \u306e\u30b5\u30fc\u30d0\u52d5\u4f5c<\/h3>\n\n\n\n<p>\u3055\u3066\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u30c7\u30d0\u30c3\u30b0\u3059\u308b\u969b\u306b\u306f\u3001OpenOCD \u3092\u30b5\u30fc\u30d0\u3068\u3057\u3066\u52d5\u4f5c\u3055\u305b\u306a\u304c\u3089 gdb \u3067\u30c7\u30d0\u30c3\u30b0\u64cd\u4f5c\u3092\u884c\u3046\u305f\u3081\u3001\u30b7\u30a7\u30eb\u304c\uff12\u3064\u5fc5\u8981\u3068\u306a\u308b\u3002<\/p>\n\n\n\n<p>\u4e00\u65b9\u306e\u30b7\u30a7\u30eb\u3067\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b OpenOCD \u3092\u5b9f\u884c\u3055\u305b\u3066\u304a\u304f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo openocd -f interface\/cmsis-dap.cfg -f target\/rp2040.cfg -c \"adapter speed 5000\"\nOpen On-Chip Debugger 0.11.0-g8e3c38f-dirty (2023-06-07-12:36)\nLicensed under GNU GPL v2\nFor bug reports, read\n        http:&#47;&#47;openocd.org\/doc\/doxygen\/bugs.html\nInfo : auto-selecting first available session transport \"swd\". To override use 'transport select &lt;transport&gt;'.\nInfo : Hardware thread awareness created\nInfo : Hardware thread awareness created\nInfo : RP2040 Flash Bank Command\nadapter speed: 5000 kHz\n\nInfo : Listening on port 6666 for tcl connections\nInfo : Listening on port 4444 for telnet connections\nInfo : Using CMSIS-DAPv2 interface with VID:PID=0x2e8a:0x000c, serial=E6616407E31CA62C\nInfo : CMSIS-DAP: SWD  Supported\nInfo : CMSIS-DAP: FW Version = 2.0.0\nInfo : CMSIS-DAP: Interface Initialised (SWD)\nInfo : SWCLK\/TCK = 0 SWDIO\/TMS = 0 TDI = 0 TDO = 0 nTRST = 0 nRESET = 0\nInfo : CMSIS-DAP: Interface ready\nInfo : clock speed 5000 kHz\nInfo : SWD DPIDR 0x0bc12477\nInfo : SWD DLPIDR 0x00000001\nInfo : SWD DPIDR 0x0bc12477\nInfo : SWD DLPIDR 0x10000001\nInfo : rp2040.core0: hardware has 4 breakpoints, 2 watchpoints\nInfo : rp2040.core1: hardware has 4 breakpoints, 2 watchpoints\nInfo : starting gdb server for rp2040.core0 on 3333\nInfo : Listening on port 3333 for gdb connections<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">gdb-multiarch \u306b\u3088\u308b\u30c7\u30d0\u30c3\u30b0\u5b9f\u884c<\/h3>\n\n\n\n<p>\u3053\u306e\u72b6\u614b\u3067\u3082\u3046\u4e00\u3064\u306e\u30b7\u30a7\u30eb\u3092\u958b\u304d\u3001build \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u79fb\u52d5\u3057\u3066\u304b\u3089 gdb-multiarch \u3092\u5b9f\u884c\u3059\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ cd ~\/(..\u4e2d\u7565..)\/part_2_sect_4\/build\n$ gdb-multiarch out.elf\nGNU gdb (Ubuntu 9.2-0ubuntu1~20.04.1) 9.2\nCopyright (C) 2020 Free Software Foundation, Inc.                                                                                                                                            \nLicense GPLv3+: GNU GPL version 3 or later &lt;http:\/\/gnu.org\/licenses\/gpl.html&gt;\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law.\nType \"show copying\" and \"show warranty\" for details.\nThis GDB was configured as \"x86_64-linux-gnu\".\nType \"show configuration\" for configuration details.\nFor bug reporting instructions, please see:\n&lt;http:\/\/www.gnu.org\/software\/gdb\/bugs\/&gt;.\nFind the GDB manual and other documentation resources online at:\n    &lt;http:\/\/www.gnu.org\/software\/gdb\/documentation\/&gt;.\n\nFor help, type \"help\".\nType \"apropos word\" to search for commands related to \"word\"...\nReading symbols from out.elf...\n(gdb) <\/code><\/pre>\n\n\n\n<p>OpenOCD \u306e\u30b5\u30fc\u30d0\u306b\u63a5\u7d9a\u3059\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>(gdb) target remote localhost:3333\nRemote debugging using localhost:3333\n0x00000000 in ?? ()\n(gdb) <\/code><\/pre>\n\n\n\n<p>pico \u306b\u30ea\u30bb\u30c3\u30c8\u3092\u304b\u3051\u305f\u3068\u3053\u308d\u3067\u30b9\u30c8\u30c3\u30d7\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>(gdb) monitor reset init\ntarget halted due to debug-request, current mode: Thread \nxPSR: 0xf1000000 pc: 0x000000ee msp: 0x20041f00\n(gdb) <\/code><\/pre>\n\n\n\n<p>\u3053\u306e\u72b6\u614b\u3067\u306f pico \u4e0a\u306eLED\u306f\u6d88\u706f\u3057\u305f\u307e\u307e\u306a\u306e\u3067\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3057\u3066\u307f\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>(gdb) continue\nContinuing.<\/code><\/pre>\n\n\n\n<p>\u3059\u308b\u3068 pico \u306eLED\u304c\u70b9\u6ec5\u3092\u958b\u59cb\u3059\u308b\u3002\u5b9f\u884c\u306f Ctrl-C \u3067\u6b62\u3081\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>^Ctarget halted due to debug-request, current mode: Thread \nxPSR: 0x01000000 pc: 0x00000178 msp: 0x20041f00\n\nThread 1 received signal SIGINT, Interrupt.\ndelay_ms (ms=1000) at ..\/application\/main.c:9\n9               if((in_w(SYST_CSR) &amp; SYST_CSR_COUNTFLAG)!=0) {  \/* TIMER_PERIOD\u7d4c\u904e\u3059\u308b\u3068\u30d5\u30e9\u30b0\u304c\u30bb\u30c3\u30c8 *\/\n(gdb) <\/code><\/pre>\n\n\n\n<p>\u505c\u6b62\u3057\u305f\u3068\u3053\u308d\u306e\u30b3\u30fc\u30c9\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u306e\u304c\u308f\u304b\u308b\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">UART0\u306e\u51fa\u529b\u78ba\u8a8d<\/h3>\n\n\n\n<p>\u3055\u3089\u306b\u5225\u306e\u30b7\u30a7\u30eb\u3092\u958b\u3044\u3066\u3001UART0\u306e\u51fa\u529b\u3092\u78ba\u8a8d\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u308b\u3002\uff08\u81ea\u5206\u306e\u30de\u30b7\u30f3\u3067\u306f \/dev\/ttyACM1 \u3068\u3057\u3066\u30b7\u30ea\u30a2\u30eb\u30dd\u30fc\u30c8\u304c\u8a8d\u8b58\u3055\u308c\u3066\u3044\u305f\uff09<\/p>\n\n\n\n<p>\u7b2c\uff12\u90e8\u7b2c\uff14\u7ae0\u306e\u30b5\u30f3\u30d7\u30eb\u3067\u306f\u3001\u30b7\u30ea\u30a2\u30eb\u30dd\u30fc\u30c8\u306b\u30c7\u30d0\u30c3\u30b0\u51fa\u529b\u3059\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u3002<\/p>\n\n\n\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5225\u30b7\u30a7\u30eb\u3067\u30b3\u30de\u30f3\u30c9\u3092\u5165\u529b\u3057\u3001gdb \u306e\u30b7\u30a7\u30eb\u3067 monitor reset init\u3001continue \u3092\u5165\u529b\u3059\u308c\u3070\u300chello,world\u300d\u3068\u8868\u793a\u3055\u308c\u308b\u3053\u3068\u304c\u308f\u304b\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ miniterm \/dev\/ttyACM1 115200\n--- Miniterm on \/dev\/ttyACM1  115200,8,N,1 ---\n--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---\nhello,world<\/code><\/pre>\n\n\n\n<p>\u95a2\u6570\u306b\u30d6\u30ec\u30fc\u30af\u30dd\u30a4\u30f3\u30c8\u3092\u8a2d\u5b9a\u3057\u305f\u308a step \u3057\u305f\u308a\u3068\u3001gdb \u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3063\u305f\u30c7\u30d0\u30c3\u30b0\u304c\u884c\u3048\u308b\u3053\u3068\u304c\u308f\u304b\u3063\u305f\u3002<\/p>\n\n\n\n<p>\u4e88\u60f3\u3057\u305f\u3088\u308a\u306f\u308b\u304b\u306b\u7c21\u5358\u3060\u3063\u305f&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u56de\u306e\u8a18\u4e8b\u3067\u306f\u3001Debug Probe \u306e\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u306e\u6e96\u5099\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u305f\u3002\u4eca\u56de\u306f\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u5074\u3092\u6e96\u5099\u3057\u3066\u3001\u5b9f\u969b\u306b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u30c7\u30d0\u30c3\u30b0\u5b9f\u884c\u3057\u3066\u307f\u308b\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[58],"tags":[74,75,73,72],"class_list":["post-3789","post","type-post","status-publish","format-standard","hentry","category-raspberry-pi-pico","tag-debug-probe","tag-gdb","tag-pico","tag-raspberry-pi"],"_links":{"self":[{"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/posts\/3789","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/comments?post=3789"}],"version-history":[{"count":11,"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/posts\/3789\/revisions"}],"predecessor-version":[{"id":3807,"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/posts\/3789\/revisions\/3807"}],"wp:attachment":[{"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/media?parent=3789"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/categories?post=3789"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oohito.com\/nqthm\/wp-json\/wp\/v2\/tags?post=3789"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}