lugl@lugl-virtual-machine:~/CW32L/cw32l083_gcc$ make flash
-e Start pyOCD
0000430 I Loading /home/lugl/CW32L/cw32l083_gcc/build_exec/template.elf [load_cmd]
[==================================================] 100%
3、调试:
Waiting for gdb server to start...[2023-06-25T13:04:50.107Z] SERVER CONSOLE DEBUG: onBackendConnect: gdb-server session connected. You can switch to "DEBUG CONSOLE" to see GDB interactions.
pyocd gdbserver --port 50000 --telnet-port 500010000446 I Target type is cw32l031c8 [board]0000529 I DP IDR = 0x0bc11477 (v1 MINDP rev0) [dap]0000557 I AHB-AP#0 IDR = 0x04770031 (AHB-AP var3 rev0) [discovery]0000580 I AHB-AP#0 Class 0x1 ROM table #0 @ 0xe00ff000 (designer=43b:Arm part=4c0) [rom_table]0000590 I [0]<e000e000:SCS v6-M class=14 designer=43b:Arm part=008> [rom_table]0000595 I [1]<e0001000:DWT v6-M class=14 designer=43b:Arm part=00a> [rom_table]0000601 I [2]<e0002000:BPU v6-M class=14 designer=43b:Arm part=00b> [rom_table]0000607 I CPU core #0 is Cortex-M0+ r0p1 [cortex_m]0000610 I Setting core #0 (Cortex-M0+) default reset sequence to ResetSystem [pack_target]0000616 I 2 hardware watchpoints [dwt]0000620 I 4 hardware breakpoints, 0 literal comparators [fpb]0000635 I Semihost server started on port 50001 (core 0) [server]0000752 I GDB server started on port 50000 (core 0) [gdbserver]0000757 I Client connected to port 50000! [gdbserver]0000883 I Attempting to load RTOS plugins [gdbserver]
[---|---|---|---|---|---|---|---|---|----]
[========================================]0001608 I Erased 0 bytes (0 sectors), programmed 0 bytes (0 pages), skipped 2048 bytes (4 pages) at 3.44 kB/s [loader]