Full build verbose:
$ platformio run -t debug -v
Processing stm8s003f3 (platform: ststm8; board: stm8s003f3; framework: spl; debug_tool: stlink)
------------------------------------------------------------------------------------------------------------------------------------------------
CONFIGURATION: https://docs.platformio.org/page/boards/ststm8/stm8s003f3.html
PLATFORM: ST STM8 (2.0.0) > ST STM8S003F3 chip
HARDWARE: STM8S003F3P6 16MHz, 1KB RAM, 8KB Flash
DEBUG: Current (stlink) External (stlink)
PACKAGES:
- framework-ststm8spl 0.20301.181217 (2.3.1)
- tool-stm8binutils 0.230.0 (2.30)
- toolchain-sdcc 1.40100.12072 (4.1.0)
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 0 compatible libraries
Scanning dependencies...
No dependencies
Building in debug mode
sdcc -o .pio\build\stm8s003f3\src\main.rel -c -mstm8 --debug --out-fmt-elf --opt-code-size -DF_CPU=16000000L -DPLATFORMIO=50101 -DSTM8S_003 -DSTM8S003 -DUSE_STDPERIPH_DRIVER -DUSE_STDINT -D__PLATFORMIO_BUILD_DEBUG__ -Iinclude -Isrc -IC:\Users\branderson\.platformio\packages\framework-ststm8spl\Libraries\STM8S_StdPeriph_Driver\inc -Isrc src\main.c
sdcc -o .pio\build\stm8s003f3\firmware.elf -mstm8 --nostdlib --code-size 8192 --iram-size 1024 --out-fmt-elf .pio\build\stm8s003f3\src\main.rel
.pio\build\stm8s003f3\src\stm8s_gpio.rel .pio\build\stm8s003f3\src\stm8s_it.rel -LC:\Users\branderson\.platformio\packages\toolchain-sdcc\lib\stm8 -lstm8
MethodWrapper(["checkprogsize"], [".pio\build\stm8s003f3\firmware.elf"])
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [ ] 0.2% (used 2 bytes from 1024 bytes)
Flash: [= ] 5.3% (used 438 bytes from 8192 bytes)
.pio\build\stm8s003f3\firmware.elf :
section size addr
INITIALIZED 2 1
SSEG 1 3
HOME 111 32768
GSINIT 26 32879
GSFINAL 3 32905
INITIALIZER 2 32908
CODE 296 32910
.debug_line 1538 0
.debug_loc 964 0
.debug_abbrev 271 0
.debug_info 1924 0
.debug_pubnames 775 0
.debug_frame 1501 0
Total 7414
stm8-objcopy -O ihex --remove-section=".debug*" --remove-section=SSEG --remove-section=INITIALIZED --remove-section=DATA .pio\build\stm8s003f3\firmware.elf .pio\build\stm8s003f3\firmware.hex
========================================================= [SUCCESS] Took 1.45 seconds =========================================================
full debug console output:
Processing stm8s003f3 (platform: ststm8; board: stm8s003f3; framework: spl)
--------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION:
PLATFORM: ST STM8 (2.0.0) > ST STM8S003F3 chip
HARDWARE: STM8S003F3P6 16MHz, 1KB RAM, 8KB Flash
DEBUG: Current (stlink) External (stlink)
PACKAGES:
- framework-ststm8spl 0.20301.181217 (2.3.1)
- tool-stm8binutils 0.230.0 (2.30)
- toolchain-sdcc 1.40100.12072 (4.1.0)
LDF: Library Dependency Finde
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 0 compatible libraries
Scanning dependencies...
No dependencies
Building in debug mode
Checking size .pio\build\stm8s003f3\firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [ ] 0.2% (used 2 bytes from 1024 bytes)
Flash: [= ] 5.3% (used 438 bytes from 8192 bytes)
========================= [SUCCESS] Took 0.83 seconds =========================
Reading symbols from C:\Users\branderson\OneDrive - Trek Bicycle Corporation\Documents\PlatformIO\Projects\TestDemo\.pio\build\stm8s003f3\firmware.elf...
done.
PlatformIO Unified Debugger ->
PlatformIO: debug_tool = stlink
PlatformIO: Initializing remote target...
xPack OpenOCD, x86_64 Open On-Chip Debugger 0.10.0+dev-00378-ge5be992df (2020-06-26-09:29)
Licensed under GNU GPL v2
For bug reports, read
srst_only separate srst_gates_jtag srst_open_drain connect_deassert_srst
Info : tcl server disabled
Info : telnet server disabled
Info : STLINK V2J29S7 (API v2) VID:PID 0483:3748
Info : Target voltage: 3.223127
Info : clock speed 800 kHz