Closed Muoshy closed 1 year ago
Ah, the "update branch" I did on the repo https://github.com/Community-PIO-CH32V/arduino-wch32v003/commit/fdac06b35f28b7c194483d20ea9f334a5ec6fe7d broke it. Thanks for reporting the breakage, will fix asap.
However, there's also https://github.com/Community-PIO-CH32V/platform-ch32v/tree/develop/examples/blinky-arduino which uses the more official OpenWCH core. This one should work, but the generated binaries are a bit on the heavier side.
CI confirmed good run.
To get to a clean updated state, I would just recommend to
C:\Users\qdaniel\.platformio\packages\framework-arduinoch32v003
C:\Users\qdaniel\.platformio\platforms\ch32v
Hi!
Thanks for the great work on this platform. I have some issues building using the arduino framework. Installed according to https://pio-ch32v.readthedocs.io/en/latest/installation.html Cloned the example repo and opened "blinky-arduino-ch32v003" in PIO.
Straight out of the box, I get an include error for "arduino.h".
Tried building anyway. Got the following error:
Found "pins.arduino.h" and included it manually through build flags in platform.ini.
Tried building again and "ch32v003fun.h" was missing this time. Added it to the build flags and built again:
No include errors anymore but seems to be a problem with the linking.
Checked "C:\Users\qdaniel.platformio\packages\framework-arduinoch32v003\cores\arduino\ch32v003fun\ch32v003fun-stack.ld:" and neither the linker script file nor the "ch32v003fun" folder exists for me. Not sure where to continue from here on.
I have tried reinstalling platform-ch32v and updating it along with PIO. Still same problem. Examples using none-os framework build and flash without any issues straight out of the box.
Win10 Version 10.0.19045 Build 19045 PlatformIO 6.1.11 ch32v@1.0.0 framework-arduinoch32v003@0.0.0 framework-wch-noneos-sdk@2.10000.0 tool-openocd-riscv-wch@2.1100.230329 toolchain-riscv@1.80200.190731