SEGGER J-Link GDB Server V7.50a Command Line Version
JLinkARM.dll V7.50a (DLL compiled Jul 8 2021 18:16:52)
Command line: -singlerun -if SWD -select USB -device STM32F103C8 -port 2331
-----GDB Server start settings-----
GDBInit file: none
GDB Server Listening port: 2331
SWO raw output listening port: 2332
Terminal I/O port: 2333
Accept remote connection: localhost only
Generate logfile: off
Verify download: off
Init regs on start: off
Silent mode: off
Single run mode: on
Target connection timeout: 0 ms
------J-Link related settings------
J-Link Host interface: USB
J-Link script: none
J-Link settings file: none
------Target related settings------
Target device: STM32F103C8
Target interface: SWD
Target interface speed: 4000kHz
Target endian: little
Connecting to J-Link...
J-Link is connected.
Firmware: J-Link V10 compiled Nov 2 2021 12:14:50
Hardware: V10.10
S/N: 260109354
OEM: SEGGER-EDU
Feature(s): FlashBP, GDB
Checking target voltage...
Target voltage: 3.27 V
Listening on TCP/IP port 2331
Connecting to target...
Connected to target
Waiting for GDB connection...C:\Users\hs\.platformio\packages\toolchain-gccarmnoneeabi\bin\arm-none-eabi-gdb.exe: warning: Couldn't determine a path for the index cache directory.
Reading symbols from C:\Users\hs\Documents\PlatformIO\Projects\bluepill\.pio\build\bluepill_f103c8\firmware.elf...
PlatformIO Unified Debugger -> https://bit.ly/pio-debug
PlatformIO: debug_tool = jlink
PlatformIO: Initializing remote target...
Connected to 127.0.0.1
Reading all registers
Read 4 bytes @ address 0x080002D8 (Data = 0x68184B01)
HAL_GetTick ()
at C:\Users\hs\.platformio\packages\framework-arduinoststm32\system\Drivers\STM32F1xx_HAL_Driver\Src/stm32f1xx_hal.c:306
306 return uwTick;
Received monitor command: clrbp
Received monitor command: speed auto
SSelect auto target interface speed (2000 kHz)
Received monitor command: reset
elect auto target interface speed (2000 kHz)
RResetting target
Receivedesetting target
monitor command: halt
Halting target CPU...
...Target halted (PC = 0x0800014C)
Downloading 268 bytes @ address 0x08000000
Downloading 11612 bytes @ address 0x0800010C
Downloading 1488 bytes @ address 0x08002E68
Downloading 16 bytes @ address 0x08003438
Downloading 8 bytes @ address 0x08003448
Downloading 136 bytes @ address 0x08003450
Writing register (PC = 0x 800014c)
Loading section .isr_vector, size 0x10c lma 0x8000000
Loading section .text, size 0x2d5c lma 0x800010c
Loading section .rodata, size 0x5d0 lma 0x8002e68
Loading section .init_array, size 0x10 lma 0x8003438
Loading section .fini_array, size 0x8 lma 0x8003448
Loading section .data, size 0x88 lma 0x8003450
Start address 0x800014c, load size 13528
Transfer rate: 4403 KB/sec, 2254 bytes/write.
Read 4 bytes @ address 0x0800014C (Data = 0x46854811)
Read 2 bytes @ address 0x0800014C (Data = 0x4811)
Reading 64 bytes @ address 0x080022C0
Read 2 bytes @ address 0x080022CE (Data = 0x2101)
Temporary breakpoint 1 at 0x80022ce: file src\main.cpp, line 9.
PlatformIO: Initialization completed
(gdb) PlatformIO: Resume the execution to `debug_init_break = tbreak setup`
PlatformIO: More configuration options -> https://bit.ly/pio-debug
Continuing.
Setting breakpoint @ address 0x080022CE, Size = 2, BPHandle = 0x0001
Starting target CPU...
...Breakpoint reached @ address 0x080022CE
Reading all registers
Removing breakpoint @ address 0x080022CE, Size = 2
Read 4 bytes @ address 0x080022CE (Data = 0x20112101)
Temporary breakpoint 1, setup () at src\main.cpp:9
9 pinMode(LED_BUILTIN, OUTPUT);
(gdb)