Closed riacob closed 1 month ago
Console output before:
PS C:\Users\iacob\My Drive\Electronics\Projects\CH32VLibs> pio run -v -e genericCH32V203C8T6
Processing genericCH32V203C8T6 (board: genericCH32V203C8T6; platform: https://github.com/Community-PIO-CH32V/platform-ch32v.git; framework: ch32v003fun; upload_protocol: wch-link)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------CONFIGURATION: https://docs.platformio.org/page/boards/ch32v/genericCH32V203C8T6.html
PLATFORM: WCH CH32V (1.1.0+sha.b7397c2) (git+https://github.com/Community-PIO-CH32V/platform-ch32v.git) > Generic CH32V203C8T6
HARDWARE: CH32V203C8T6 144MHz, 20KB RAM, 64KB Flash
DEBUG: Current (wch-link) On-board (wch-link) External (minichlink)
PACKAGES:
- framework-ch32v003fun @ 0.0.0+sha.31a231f (git+https://github.com/Community-PIO-CH32V/ch32v003fun.git)
- tool-openocd-riscv-wch @ 2.1100.240729+sha.0986a46 (git+https://github.com/Community-PIO-CH32V/tool-openocd-riscv-wch.git#main)
- tool-wlink @ 0.22.240627+sha.030572c (git+https://github.com/Community-PIO-CH32V/tool-wlink.git#windows)
- toolchain-riscv @ 1.80200.190731+sha.8ee4117 (git+https://github.com/Community-PIO-CH32V/toolchain-riscv-windows.git)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 0 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
riscv-none-embed-gcc -o .pio\build\genericCH32V203C8T6\FrameworkCh32v003fun\ch32v003fun.o -c -std=gnu11 -Os -g -Wall -msmall-data-limit=8 -msave-restore -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fno-common -Wunused -Wuninitialized -Wno-comment -march=rv32imacxw -mabi=ilp32 -flto -static-libgcc -nostdlib -DPLATFORMIO=60116 -DCH32V203C8 -DCH32V20X -DCH32V20x -DCH32V203 -DCH32V20x_D6 -D__PIO_BUILD_CH32V003FUN__ -IC:\Users\iacob\.platformio\packages\framework-ch32v003fun\ch32v003fun -IC:\Users\iacob\.platformio\packages\framework-ch32v003fun\extralibs -Isrc C:\Users\iacob\.platformio\packages\framework-ch32v003fun\ch32v003fun\ch32v003fun.c
riscv-none-embed-gcc -o .pio\build\genericCH32V203C8T6\src\blink.o -c -std=gnu11 -Os -g -Wall -msmall-data-limit=8 -msave-restore -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fno-common -Wunused -Wuninitialized -Wno-comment -march=rv32imacxw -mabi=ilp32 -flto -static-libgcc -nostdlib -DPLATFORMIO=60116 -DCH32V203C8 -DCH32V20X -DCH32V20x -DCH32V203 -DCH32V20x_D6 -D__PIO_BUILD_CH32V003FUN__ -Iinclude -Isrc -IC:\Users\iacob\.platformio\packages\framework-ch32v003fun\ch32v003fun -IC:\Users\iacob\.platformio\packages\framework-ch32v003fun\extralibs -Isrc src\blink.c
riscv-none-embed-gcc -E -P -x c -DTARGET_MCU=CH32V203 -DMCU_PACKAGE=1 -DTARGET_MCU_LD=2 C:\Users\iacob\.platformio\packages\framework-ch32v003fun\ch32v003fun\ch32v003fun.ld > C:\Users\iacob\My Drive\Electronics\Projects\CH32VLibs\.pio\build\genericCH32V203C8T6\ldscript.ld
riscv-none-embed-gcc: error: Drive\Electronics\Projects\CH32VLibs\.pio\build\genericCH32V203C8T6\ldscript.ld: No such file or directory
*** [.pio\build\genericCH32V203C8T6\firmware.elf] Error 1
====================================================================================== [FAILED] Took 1.63 seconds ======================================================================================
Environment Status Duration
------------------- -------- ------------
ch32v003f4p6_evt_r0 IGNORED
genericCH32V003A4M6 IGNORED
genericCH32V103C6T6 IGNORED
genericCH32V203F6T6 IGNORED
genericCH32V203C8T6 FAILED 00:00:01.631
genericCH32V208CBU6 IGNORED
ch32v307_evt IGNORED
genericCH32V305FBP6 IGNORED
genericCH32V307WCU6 IGNORED
genericCH32X035G8U6 IGNORED
================================================================================= 1 failed, 0 succeeded in 00:00:01.631 =================================================================================
Console output after fix:
PS C:\Users\iacob\My Drive\Electronics\Projects\CH32VLibs> pio run -v -e genericCH32V203C8T6
Processing genericCH32V203C8T6 (board: genericCH32V203C8T6; platform: https://github.com/Community-PIO-CH32V/platform-ch32v.git; framework: ch32v003fun; upload_protocol: wch-link)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------CONFIGURATION: https://docs.platformio.org/page/boards/ch32v/genericCH32V203C8T6.html
PLATFORM: WCH CH32V (1.1.0+sha.b7397c2) (git+https://github.com/Community-PIO-CH32V/platform-ch32v.git) > Generic CH32V203C8T6
HARDWARE: CH32V203C8T6 144MHz, 20KB RAM, 64KB Flash
DEBUG: Current (wch-link) On-board (wch-link) External (minichlink)
PACKAGES:
- framework-ch32v003fun @ 0.0.0+sha.31a231f (git+https://github.com/Community-PIO-CH32V/ch32v003fun.git)
- tool-openocd-riscv-wch @ 2.1100.240729+sha.0986a46 (git+https://github.com/Community-PIO-CH32V/tool-openocd-riscv-wch.git#main)
- tool-wlink @ 0.22.240627+sha.030572c (git+https://github.com/Community-PIO-CH32V/tool-wlink.git#windows)
- toolchain-riscv @ 1.80200.190731+sha.8ee4117 (git+https://github.com/Community-PIO-CH32V/toolchain-riscv-windows.git)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 0 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
riscv-none-embed-gcc -o .pio\build\genericCH32V203C8T6\firmware.elf -T \ldscript.ld -Os -march=rv32imacxw -mabi=ilp32 -ffunction-sections -fdata-sections -Wl,-gc-sections --specs=nano.specs --specs=nosys.specs -nostartfiles -Wl,-Map="C:\Users\iacob\My Drive\Electronics\Projects\CH32VLibs\.pio\build\genericCH32V203C8T6\CH32VLibs.map" -flto -static-libgcc -nostdlib C:\FrameworkCh32v003fun\ch32v003fun.o .pio\build\genericCH32V203C8T6\src\blink.o -L.pio\build\genericCH32V203C8T6 -Wl,--start-group -lm -lgcc -Wl,--end-group
MethodWrapper(["checkprogsize"], [".pio\build\genericCH32V203C8T6\firmware.elf"])
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [ ] 0.0% (used 0 bytes from 20480 bytes)
Flash: [ ] 1.1% (used 708 bytes from 65536 bytes)
.pio\build\genericCH32V203C8T6\firmware.elf :
section size addr
.init 224 0x0
.text 484 0xe0
.fini 0 0x2c4
.dalign 0 0x20000000
.dlalign 0 0x2c4
.data 0 0x20000000
.bss 0 0x20000000
Total 708
riscv-none-embed-objcopy -O binary .pio\build\genericCH32V203C8T6\firmware.elf .pio\build\genericCH32V203C8T6\firmware.bin
====================================================================================== [SUCCESS] Took 1.97 seconds ======================================================================================
Environment Status Duration
------------------- -------- ------------
ch32v003f4p6_evt_r0 IGNORED
genericCH32V003A4M6 IGNORED
genericCH32V103C6T6 IGNORED
genericCH32V203F6T6 IGNORED
genericCH32V203C8T6 SUCCESS 00:00:01.969
genericCH32V208CBU6 IGNORED
ch32v307_evt IGNORED
genericCH32V305FBP6 IGNORED
genericCH32V307WCU6 IGNORED
genericCH32X035G8U6 IGNORED
====================================================================================== 1 succeeded in 00:00:01.969 ======================================================================================
Tested and works for all enviroments except ch32v003f4p6_evt_r0 and genericCH32V003A4M6, like #25 ?:
PS C:\Users\iacob\My Drive\Electronics\Projects\CH32VLibs> pio run -v
Processing ch32v003f4p6_evt_r0 (board: ch32v003f4p6_evt_r0; platform: https://github.com/Community-PIO-CH32V/platform-ch32v.git; framework: ch32v003fun; upload_protocol: wch-link)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------CONFIGURATION: https://docs.platformio.org/page/boards/ch32v/ch32v003f4p6_evt_r0.html
PLATFORM: WCH CH32V (1.1.0+sha.b7397c2) (git+https://github.com/Community-PIO-CH32V/platform-ch32v.git) > CH32V003F4P6-EVT-R0
HARDWARE: CH32V003F4P6 48MHz, 2KB RAM, 16KB Flash
DEBUG: Current (wch-link) On-board (wch-link) External (minichlink)
PACKAGES:
- framework-ch32v003fun @ 0.0.0+sha.31a231f (git+https://github.com/Community-PIO-CH32V/ch32v003fun.git)
- tool-openocd-riscv-wch @ 2.1100.240729+sha.0986a46 (git+https://github.com/Community-PIO-CH32V/tool-openocd-riscv-wch.git#main)
- tool-wlink @ 0.22.240627+sha.030572c (git+https://github.com/Community-PIO-CH32V/tool-wlink.git#windows)
- toolchain-riscv @ 1.80200.190731+sha.8ee4117 (git+https://github.com/Community-PIO-CH32V/toolchain-riscv-windows.git)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 0 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
riscv-none-embed-gcc -o .pio\build\ch32v003f4p6_evt_r0\firmware.elf -T \ldscript.ld -Os -march=rv32ecxw -mabi=ilp32e -ffunction-sections -fdata-sections -Wl,-gc-sections --specs=nano.specs --specs=nosys.specs -nostartfiles -Wl,-Map="C:\Users\iacob\My Drive\Electronics\Projects\CH32VLibs\.pio\build\ch32v003f4p6_evt_r0\CH32VLibs.map" -flto -static-libgcc -nostdlib C:\FrameworkCh32v003fun\ch32v003fun.o .pio\build\ch32v003f4p6_evt_r0\src\blink.o -L.pio\build\ch32v003f4p6_evt_r0 -Wl,--start-group -lm C:\Users\iacob\.platformio\packages\framework-ch32v003fun\misc\libgcc.a -Wl,--end-group
c:/users/iacob/.platformio/packages/toolchain-riscv/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: C:\Users\iacob\AppData\Local\Temp\cc1tAHLudebugobjtem: can't link RVE
with other target
c:/users/iacob/.platformio/packages/toolchain-riscv/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: failed to merge target specific data of file C:\Users\iacob\AppData\Local\Temp\cc1tAHLudebugobjtem
collect2.exe: error: ld returned 1 exit status
lto-wrapper.exe: fatal error: riscv-none-embed-gcc returned 1 exit status
compilation terminated.
c:/users/iacob/.platformio/packages/toolchain-riscv/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: error: lto-wrapper failed
collect2.exe: error: ld returned 1 exit status
*** [.pio\build\ch32v003f4p6_evt_r0\firmware.elf] Error 1
====================================================================================== [FAILED] Took 1.58 seconds ======================================================================================
Processing genericCH32V003A4M6 (board: genericCH32V003A4M6; platform: https://github.com/Community-PIO-CH32V/platform-ch32v.git; framework: ch32v003fun; upload_protocol: wch-link)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------CONFIGURATION: https://docs.platformio.org/page/boards/ch32v/genericCH32V003A4M6.html
PLATFORM: WCH CH32V (1.1.0+sha.b7397c2) (git+https://github.com/Community-PIO-CH32V/platform-ch32v.git) > Generic CH32V003A4M6
HARDWARE: CH32V003A4M6 48MHz, 2KB RAM, 16KB Flash
DEBUG: Current (wch-link) On-board (wch-link) External (minichlink)
PACKAGES:
- framework-ch32v003fun @ 0.0.0+sha.31a231f (git+https://github.com/Community-PIO-CH32V/ch32v003fun.git)
- tool-openocd-riscv-wch @ 2.1100.240729+sha.0986a46 (git+https://github.com/Community-PIO-CH32V/tool-openocd-riscv-wch.git#main)
- tool-wlink @ 0.22.240627+sha.030572c (git+https://github.com/Community-PIO-CH32V/tool-wlink.git#windows)
- toolchain-riscv @ 1.80200.190731+sha.8ee4117 (git+https://github.com/Community-PIO-CH32V/toolchain-riscv-windows.git)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 0 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
riscv-none-embed-gcc -o .pio\build\genericCH32V003A4M6\firmware.elf -T \ldscript.ld -Os -march=rv32ecxw -mabi=ilp32e -ffunction-sections -fdata-sections -Wl,-gc-sections --specs=nano.specs --specs=nosys.specs -nostartfiles -Wl,-Map="C:\Users\iacob\My Drive\Electronics\Projects\CH32VLibs\.pio\build\genericCH32V003A4M6\CH32VLibs.map" -flto -static-libgcc -nostdlib C:\FrameworkCh32v003fun\ch32v003fun.o .pio\build\genericCH32V003A4M6\src\blink.o -L.pio\build\genericCH32V003A4M6 -Wl,--start-group -lm C:\Users\iacob\.platformio\packages\framework-ch32v003fun\misc\libgcc.a -Wl,--end-group
c:/users/iacob/.platformio/packages/toolchain-riscv/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: C:\Users\iacob\AppData\Local\Temp\cc1iDVm4debugobjtem: can't link RVE
with other target
c:/users/iacob/.platformio/packages/toolchain-riscv/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: failed to merge target specific data of file C:\Users\iacob\AppData\Local\Temp\cc1iDVm4debugobjtem
collect2.exe: error: ld returned 1 exit status
lto-wrapper.exe: fatal error: riscv-none-embed-gcc returned 1 exit status
compilation terminated.
c:/users/iacob/.platformio/packages/toolchain-riscv/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: error: lto-wrapper failed
collect2.exe: error: ld returned 1 exit status
*** [.pio\build\genericCH32V003A4M6\firmware.elf] Error 1
====================================================================================== [FAILED] Took 1.56 seconds ======================================================================================
Processing genericCH32V103C6T6 (board: genericCH32V103C6T6; platform: https://github.com/Community-PIO-CH32V/platform-ch32v.git; framework: ch32v003fun; upload_protocol: wch-link)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------CONFIGURATION: https://docs.platformio.org/page/boards/ch32v/genericCH32V103C6T6.html
PLATFORM: WCH CH32V (1.1.0+sha.b7397c2) (git+https://github.com/Community-PIO-CH32V/platform-ch32v.git) > Generic CH32V103C6T6
HARDWARE: CH32V103C6T6 72MHz, 10KB RAM, 32KB Flash
DEBUG: Current (wch-link) On-board (wch-link) External (minichlink)
PACKAGES:
- framework-ch32v003fun @ 0.0.0+sha.31a231f (git+https://github.com/Community-PIO-CH32V/ch32v003fun.git)
- tool-openocd-riscv-wch @ 2.1100.240729+sha.0986a46 (git+https://github.com/Community-PIO-CH32V/tool-openocd-riscv-wch.git#main)
- tool-wlink @ 0.22.240627+sha.030572c (git+https://github.com/Community-PIO-CH32V/tool-wlink.git#windows)
- toolchain-riscv @ 1.80200.190731+sha.8ee4117 (git+https://github.com/Community-PIO-CH32V/toolchain-riscv-windows.git)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 0 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
riscv-none-embed-gcc -o .pio\build\genericCH32V103C6T6\firmware.elf -T \ldscript.ld -Os -march=rv32imac -mabi=ilp32 -ffunction-sections -fdata-sections -Wl,-gc-sections --specs=nano.specs --specs=nosys.specs -nostartfiles -Wl,-Map="C:\Users\iacob\My Drive\Electronics\Projects\CH32VLibs\.pio\build\genericCH32V103C6T6\CH32VLibs.map" -flto -static-libgcc -nostdlib C:\FrameworkCh32v003fun\ch32v003fun.o
.pio\build\genericCH32V103C6T6\src\blink.o -L.pio\build\genericCH32V103C6T6 -Wl,--start-group -lm -lgcc -Wl,--end-group
MethodWrapper(["checkprogsize"], [".pio\build\genericCH32V103C6T6\firmware.elf"])
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [ ] 0.0% (used 0 bytes from 10240 bytes)
Flash: [ ] 2.2% (used 708 bytes from 32768 bytes)
.pio\build\genericCH32V103C6T6\firmware.elf :
section size addr
.init 224 0x0
.text 484 0xe0
.fini 0 0x2c4
.dalign 0 0x20000000
.dlalign 0 0x2c4
.data 0 0x20000000
.bss 0 0x20000000
Total 708
====================================================================================== [SUCCESS] Took 1.87 seconds ======================================================================================
Processing genericCH32V203F6T6 (board: genericCH32V203F6T6; platform: https://github.com/Community-PIO-CH32V/platform-ch32v.git; framework: ch32v003fun; upload_protocol: wch-link)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------CONFIGURATION: https://docs.platformio.org/page/boards/ch32v/genericCH32V203F6T6.html
PLATFORM: WCH CH32V (1.1.0+sha.b7397c2) (git+https://github.com/Community-PIO-CH32V/platform-ch32v.git) > Generic CH32V203F6T6
HARDWARE: CH32V203F6T6 144MHz, 10KB RAM, 32KB Flash
DEBUG: Current (wch-link) On-board (wch-link) External (minichlink)
PACKAGES:
- framework-ch32v003fun @ 0.0.0+sha.31a231f (git+https://github.com/Community-PIO-CH32V/ch32v003fun.git)
- tool-openocd-riscv-wch @ 2.1100.240729+sha.0986a46 (git+https://github.com/Community-PIO-CH32V/tool-openocd-riscv-wch.git#main)
- tool-wlink @ 0.22.240627+sha.030572c (git+https://github.com/Community-PIO-CH32V/tool-wlink.git#windows)
- toolchain-riscv @ 1.80200.190731+sha.8ee4117 (git+https://github.com/Community-PIO-CH32V/toolchain-riscv-windows.git)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 0 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
riscv-none-embed-gcc -o .pio\build\genericCH32V203F6T6\firmware.elf -T \ldscript.ld -Os -march=rv32imacxw -mabi=ilp32 -ffunction-sections -fdata-sections -Wl,-gc-sections --specs=nano.specs --specs=nosys.specs -nostartfiles -Wl,-Map="C:\Users\iacob\My Drive\Electronics\Projects\CH32VLibs\.pio\build\genericCH32V203F6T6\CH32VLibs.map" -flto -static-libgcc -nostdlib C:\FrameworkCh32v003fun\ch32v003fun.o .pio\build\genericCH32V203F6T6\src\blink.o -L.pio\build\genericCH32V203F6T6 -Wl,--start-group -lm -lgcc -Wl,--end-group
MethodWrapper(["checkprogsize"], [".pio\build\genericCH32V203F6T6\firmware.elf"])
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [ ] 0.0% (used 0 bytes from 10240 bytes)
Flash: [ ] 2.2% (used 708 bytes from 32768 bytes)
.pio\build\genericCH32V203F6T6\firmware.elf :
section size addr
.init 224 0x0
.text 484 0xe0
.fini 0 0x2c4
.dalign 0 0x20000000
.dlalign 0 0x2c4
.data 0 0x20000000
.bss 0 0x20000000
Total 708
====================================================================================== [SUCCESS] Took 1.86 seconds ======================================================================================
Processing genericCH32V203C8T6 (board: genericCH32V203C8T6; platform: https://github.com/Community-PIO-CH32V/platform-ch32v.git; framework: ch32v003fun; upload_protocol: wch-link)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------CONFIGURATION: https://docs.platformio.org/page/boards/ch32v/genericCH32V203C8T6.html
PLATFORM: WCH CH32V (1.1.0+sha.b7397c2) (git+https://github.com/Community-PIO-CH32V/platform-ch32v.git) > Generic CH32V203C8T6
HARDWARE: CH32V203C8T6 144MHz, 20KB RAM, 64KB Flash
DEBUG: Current (wch-link) On-board (wch-link) External (minichlink)
PACKAGES:
- framework-ch32v003fun @ 0.0.0+sha.31a231f (git+https://github.com/Community-PIO-CH32V/ch32v003fun.git)
- tool-openocd-riscv-wch @ 2.1100.240729+sha.0986a46 (git+https://github.com/Community-PIO-CH32V/tool-openocd-riscv-wch.git#main)
- tool-wlink @ 0.22.240627+sha.030572c (git+https://github.com/Community-PIO-CH32V/tool-wlink.git#windows)
- toolchain-riscv @ 1.80200.190731+sha.8ee4117 (git+https://github.com/Community-PIO-CH32V/toolchain-riscv-windows.git)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 0 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
riscv-none-embed-gcc -o .pio\build\genericCH32V203C8T6\firmware.elf -T \ldscript.ld -Os -march=rv32imacxw -mabi=ilp32 -ffunction-sections -fdata-sections -Wl,-gc-sections --specs=nano.specs --specs=nosys.specs -nostartfiles -Wl,-Map="C:\Users\iacob\My Drive\Electronics\Projects\CH32VLibs\.pio\build\genericCH32V203C8T6\CH32VLibs.map" -flto -static-libgcc -nostdlib C:\FrameworkCh32v003fun\ch32v003fun.o .pio\build\genericCH32V203C8T6\src\blink.o -L.pio\build\genericCH32V203C8T6 -Wl,--start-group -lm -lgcc -Wl,--end-group
MethodWrapper(["checkprogsize"], [".pio\build\genericCH32V203C8T6\firmware.elf"])
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [ ] 0.0% (used 0 bytes from 20480 bytes)
Flash: [ ] 1.1% (used 708 bytes from 65536 bytes)
.pio\build\genericCH32V203C8T6\firmware.elf :
section size addr
.init 224 0x0
.text 484 0xe0
.fini 0 0x2c4
.dalign 0 0x20000000
.dlalign 0 0x2c4
.data 0 0x20000000
.bss 0 0x20000000
Total 708
====================================================================================== [SUCCESS] Took 1.86 seconds ======================================================================================
Processing genericCH32V208CBU6 (board: genericCH32V208CBU6; platform: https://github.com/Community-PIO-CH32V/platform-ch32v.git; framework: ch32v003fun; upload_protocol: wch-link)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------CONFIGURATION: https://docs.platformio.org/page/boards/ch32v/genericCH32V208CBU6.html
PLATFORM: WCH CH32V (1.1.0+sha.b7397c2) (git+https://github.com/Community-PIO-CH32V/platform-ch32v.git) > Generic CH32V208CBU6
HARDWARE: CH32V208CBU6 144MHz, 64KB RAM, 128KB Flash
DEBUG: Current (wch-link) On-board (wch-link) External (minichlink)
PACKAGES:
- framework-ch32v003fun @ 0.0.0+sha.31a231f (git+https://github.com/Community-PIO-CH32V/ch32v003fun.git)
- tool-openocd-riscv-wch @ 2.1100.240729+sha.0986a46 (git+https://github.com/Community-PIO-CH32V/tool-openocd-riscv-wch.git#main)
- tool-wlink @ 0.22.240627+sha.030572c (git+https://github.com/Community-PIO-CH32V/tool-wlink.git#windows)
- toolchain-riscv @ 1.80200.190731+sha.8ee4117 (git+https://github.com/Community-PIO-CH32V/toolchain-riscv-windows.git)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 0 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
riscv-none-embed-gcc -o .pio\build\genericCH32V208CBU6\firmware.elf -T \ldscript.ld -Os -march=rv32imacxw -mabi=ilp32 -ffunction-sections -fdata-sections -Wl,-gc-sections --specs=nano.specs --specs=nosys.specs -nostartfiles -Wl,-Map="C:\Users\iacob\My Drive\Electronics\Projects\CH32VLibs\.pio\build\genericCH32V208CBU6\CH32VLibs.map" -flto -static-libgcc -nostdlib C:\FrameworkCh32v003fun\ch32v003fun.o .pio\build\genericCH32V208CBU6\src\blink.o -L.pio\build\genericCH32V208CBU6 -Wl,--start-group -lm -lgcc -Wl,--end-group
MethodWrapper(["checkprogsize"], [".pio\build\genericCH32V208CBU6\firmware.elf"])
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [ ] 0.0% (used 0 bytes from 65536 bytes)
Flash: [ ] 0.5% (used 708 bytes from 131072 bytes)
.pio\build\genericCH32V208CBU6\firmware.elf :
section size addr
.init 224 0x0
.text 484 0xe0
.fini 0 0x2c4
.dalign 0 0x20000000
.dlalign 0 0x2c4
.data 0 0x20000000
.bss 0 0x20000000
Total 708
====================================================================================== [SUCCESS] Took 1.86 seconds ======================================================================================
Processing ch32v307_evt (board: ch32v307_evt; board_upload.maximum_size: 294912; board_upload.maximum_ram_size: 32768; platform: https://github.com/Community-PIO-CH32V/platform-ch32v.git; framework: ch32v003fun; upload_protocol: wch-link)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------CONFIGURATION: https://docs.platformio.org/page/boards/ch32v/ch32v307_evt.html
PLATFORM: WCH CH32V (1.1.0+sha.b7397c2) (git+https://github.com/Community-PIO-CH32V/platform-ch32v.git) > CH32V307 EVT
HARDWARE: CH32V307VCT6 144MHz, 32KB RAM, 288KB Flash
DEBUG: Current (wch-link) On-board (wch-link) External (minichlink)
PACKAGES:
- framework-ch32v003fun @ 0.0.0+sha.31a231f (git+https://github.com/Community-PIO-CH32V/ch32v003fun.git)
- tool-openocd-riscv-wch @ 2.1100.240729+sha.0986a46 (git+https://github.com/Community-PIO-CH32V/tool-openocd-riscv-wch.git#main)
- tool-wlink @ 0.22.240627+sha.030572c (git+https://github.com/Community-PIO-CH32V/tool-wlink.git#windows)
- toolchain-riscv @ 1.80200.190731+sha.8ee4117 (git+https://github.com/Community-PIO-CH32V/toolchain-riscv-windows.git)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 0 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
riscv-none-embed-gcc -o .pio\build\ch32v307_evt\firmware.elf -T \ldscript.ld -Os -march=rv32imacxw -mabi=ilp32 -ffunction-sections -fdata-sections -Wl,-gc-sections --specs=nano.specs --specs=nosys.specs -nostartfiles -Wl,-Map="C:\Users\iacob\My Drive\Electronics\Projects\CH32VLibs\.pio\build\ch32v307_evt\CH32VLibs.map" -flto -static-libgcc -nostdlib C:\FrameworkCh32v003fun\ch32v003fun.o .pio\build\ch32v307_evt\src\blink.o -L.pio\build\ch32v307_evt -Wl,--start-group -lm -lgcc -Wl,--end-group
MethodWrapper(["checkprogsize"], [".pio\build\ch32v307_evt\firmware.elf"])
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [ ] 0.0% (used 0 bytes from 32768 bytes)
Flash: [ ] 0.2% (used 708 bytes from 294912 bytes)
.pio\build\ch32v307_evt\firmware.elf :
section size addr
.init 224 0x0
.text 484 0xe0
.fini 0 0x2c4
.dalign 0 0x20000000
.dlalign 0 0x2c4
.data 0 0x20000000
.bss 0 0x20000000
Total 708
====================================================================================== [SUCCESS] Took 1.86 seconds ======================================================================================
Processing genericCH32V305FBP6 (board: genericCH32V305FBP6; platform: https://github.com/Community-PIO-CH32V/platform-ch32v.git; framework: ch32v003fun; upload_protocol: wch-link)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------CONFIGURATION: https://docs.platformio.org/page/boards/ch32v/genericCH32V305FBP6.html
PLATFORM: WCH CH32V (1.1.0+sha.b7397c2) (git+https://github.com/Community-PIO-CH32V/platform-ch32v.git) > Generic CH32V305FBP6
HARDWARE: CH32V305FBP6 144MHz, 32KB RAM, 128KB Flash
DEBUG: Current (wch-link) On-board (wch-link) External (minichlink)
PACKAGES:
- framework-ch32v003fun @ 0.0.0+sha.31a231f (git+https://github.com/Community-PIO-CH32V/ch32v003fun.git)
- tool-openocd-riscv-wch @ 2.1100.240729+sha.0986a46 (git+https://github.com/Community-PIO-CH32V/tool-openocd-riscv-wch.git#main)
- tool-wlink @ 0.22.240627+sha.030572c (git+https://github.com/Community-PIO-CH32V/tool-wlink.git#windows)
- toolchain-riscv @ 1.80200.190731+sha.8ee4117 (git+https://github.com/Community-PIO-CH32V/toolchain-riscv-windows.git)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 0 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
riscv-none-embed-gcc -o .pio\build\genericCH32V305FBP6\firmware.elf -T \ldscript.ld -Os -march=rv32imacxw -mabi=ilp32 -ffunction-sections -fdata-sections -Wl,-gc-sections --specs=nano.specs --specs=nosys.specs -nostartfiles -Wl,-Map="C:\Users\iacob\My Drive\Electronics\Projects\CH32VLibs\.pio\build\genericCH32V305FBP6\CH32VLibs.map" -flto -static-libgcc -nostdlib C:\FrameworkCh32v003fun\ch32v003fun.o .pio\build\genericCH32V305FBP6\src\blink.o -L.pio\build\genericCH32V305FBP6 -Wl,--start-group -lm -lgcc -Wl,--end-group
MethodWrapper(["checkprogsize"], [".pio\build\genericCH32V305FBP6\firmware.elf"])
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [ ] 0.0% (used 0 bytes from 32768 bytes)
Flash: [ ] 0.5% (used 708 bytes from 131072 bytes)
.pio\build\genericCH32V305FBP6\firmware.elf :
section size addr
.init 224 0x0
.text 484 0xe0
.fini 0 0x2c4
.dalign 0 0x20000000
.dlalign 0 0x2c4
.data 0 0x20000000
.bss 0 0x20000000
Total 708
====================================================================================== [SUCCESS] Took 1.92 seconds ======================================================================================
Processing genericCH32V307WCU6 (board: genericCH32V307WCU6; platform: https://github.com/Community-PIO-CH32V/platform-ch32v.git; framework: ch32v003fun; upload_protocol: wch-link)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------CONFIGURATION: https://docs.platformio.org/page/boards/ch32v/genericCH32V307WCU6.html
PLATFORM: WCH CH32V (1.1.0+sha.b7397c2) (git+https://github.com/Community-PIO-CH32V/platform-ch32v.git) > Generic CH32V307WCU6
HARDWARE: CH32V307WCU6 144MHz, 64KB RAM, 256KB Flash
DEBUG: Current (wch-link) On-board (wch-link) External (minichlink)
PACKAGES:
- framework-ch32v003fun @ 0.0.0+sha.31a231f (git+https://github.com/Community-PIO-CH32V/ch32v003fun.git)
- tool-openocd-riscv-wch @ 2.1100.240729+sha.0986a46 (git+https://github.com/Community-PIO-CH32V/tool-openocd-riscv-wch.git#main)
- tool-wlink @ 0.22.240627+sha.030572c (git+https://github.com/Community-PIO-CH32V/tool-wlink.git#windows)
- toolchain-riscv @ 1.80200.190731+sha.8ee4117 (git+https://github.com/Community-PIO-CH32V/toolchain-riscv-windows.git)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 0 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
riscv-none-embed-gcc -o .pio\build\genericCH32V307WCU6\firmware.elf -T \ldscript.ld -Os -march=rv32imacxw -mabi=ilp32 -ffunction-sections -fdata-sections -Wl,-gc-sections --specs=nano.specs --specs=nosys.specs -nostartfiles -Wl,-Map="C:\Users\iacob\My Drive\Electronics\Projects\CH32VLibs\.pio\build\genericCH32V307WCU6\CH32VLibs.map" -flto -static-libgcc -nostdlib C:\FrameworkCh32v003fun\ch32v003fun.o .pio\build\genericCH32V307WCU6\src\blink.o -L.pio\build\genericCH32V307WCU6 -Wl,--start-group -lm -lgcc -Wl,--end-group
MethodWrapper(["checkprogsize"], [".pio\build\genericCH32V307WCU6\firmware.elf"])
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [ ] 0.0% (used 0 bytes from 65536 bytes)
Flash: [ ] 0.3% (used 708 bytes from 262144 bytes)
.pio\build\genericCH32V307WCU6\firmware.elf :
section size addr
.init 224 0x0
.text 484 0xe0
.fini 0 0x2c4
.dalign 0 0x20000000
.dlalign 0 0x2c4
.data 0 0x20000000
.bss 0 0x20000000
Total 708
====================================================================================== [SUCCESS] Took 1.90 seconds ======================================================================================
Processing genericCH32X035G8U6 (board: genericCH32X035G8U6; platform: https://github.com/Community-PIO-CH32V/platform-ch32v.git; framework: ch32v003fun; upload_protocol: wch-link)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------CONFIGURATION: https://docs.platformio.org/page/boards/ch32v/genericCH32X035G8U6.html
PLATFORM: WCH CH32V (1.1.0+sha.b7397c2) (git+https://github.com/Community-PIO-CH32V/platform-ch32v.git) > Generic CH32X035G8U6
HARDWARE: CH32X035G8U6 48MHz, 20KB RAM, 62KB Flash
DEBUG: Current (wch-link) On-board (wch-link) External (minichlink)
PACKAGES:
- framework-ch32v003fun @ 0.0.0+sha.31a231f (git+https://github.com/Community-PIO-CH32V/ch32v003fun.git)
- tool-openocd-riscv-wch @ 2.1100.240729+sha.0986a46 (git+https://github.com/Community-PIO-CH32V/tool-openocd-riscv-wch.git#main)
- tool-wlink @ 0.22.240627+sha.030572c (git+https://github.com/Community-PIO-CH32V/tool-wlink.git#windows)
- toolchain-riscv @ 1.80200.190731+sha.8ee4117 (git+https://github.com/Community-PIO-CH32V/toolchain-riscv-windows.git)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 0 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
riscv-none-embed-gcc -o .pio\build\genericCH32X035G8U6\firmware.elf -T \ldscript.ld -Os -march=rv32imacxw -mabi=ilp32 -ffunction-sections -fdata-sections -Wl,-gc-sections --specs=nano.specs --specs=nosys.specs -nostartfiles -Wl,-Map="C:\Users\iacob\My Drive\Electronics\Projects\CH32VLibs\.pio\build\genericCH32X035G8U6\CH32VLibs.map" -flto -static-libgcc -nostdlib C:\FrameworkCh32v003fun\ch32v003fun.o .pio\build\genericCH32X035G8U6\src\blink.o -L.pio\build\genericCH32X035G8U6 -Wl,--start-group -lm -lgcc -Wl,--end-group
MethodWrapper(["checkprogsize"], [".pio\build\genericCH32X035G8U6\firmware.elf"])
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [ ] 0.0% (used 0 bytes from 20480 bytes)
Flash: [ ] 1.1% (used 708 bytes from 63488 bytes)
.pio\build\genericCH32X035G8U6\firmware.elf :
section size addr
.init 224 0x0
.text 484 0xe0
.fini 0 0x2c4
.dalign 0 0x20000000
.dlalign 0 0x2c4
.data 0 0x20000000
.bss 0 0x20000000
Total 708
====================================================================================== [SUCCESS] Took 1.90 seconds ======================================================================================
Environment Status Duration
------------------- -------- ------------
ch32v003f4p6_evt_r0 FAILED 00:00:01.580
genericCH32V003A4M6 FAILED 00:00:01.559
genericCH32V103C6T6 SUCCESS 00:00:01.867
genericCH32V203F6T6 SUCCESS 00:00:01.862
genericCH32V203C8T6 SUCCESS 00:00:01.857
genericCH32V208CBU6 SUCCESS 00:00:01.859
ch32v307_evt SUCCESS 00:00:01.858
genericCH32V305FBP6 SUCCESS 00:00:01.924
genericCH32V307WCU6 SUCCESS 00:00:01.897
genericCH32X035G8U6 SUCCESS 00:00:01.902
================================================================================= 2 failed, 8 succeeded in 00:00:18.165 =================================================================================
Fixes the compilation error due to the presence of space characters in the path. I suspect a more broad fix could be implemented just by editing the line where platformio-core gets the paths: https://github.com/platformio/platformio-core/blob/3a576612306f12fcdfa951f37aea23353a80303c/platformio/project/helpers.py#L28 I will try to make a pull request on that repo too, if you suggest so.