Closed RathBee closed 9 months ago
You are right, this does not work in this platform currently because we are using V1.0.0
of the CH32X035 SPL, while the latest one is V1.0.1
and has the USB-PD header and code. I will update the base package shortly.
Fixed in https://github.com/Community-PIO-CH32V/framework-wch-noneos-sdk/commit/1ee8c787bcda01cf5130f878b01022437404c4f2. This added USB-PD support to the SPL.
I've also added the USBPD-SINK project into our examples, test-compiling them in the CI works fine (https://github.com/Community-PIO-CH32V/platform-ch32v/commit/693fb7a5381e7f0e75dcba9a7a141161b4655031).
Just update your platform and you should be fine (CLI -> pio pkg update -g -p ch32v
)
Steps to reproduce: 1.Download CH32X035EVT.zip from WCH's website, extract EVT/EXAM/USBPD/USBPD_SNK/User 2.Create a project in pio, choose any CH32X035-based board. 3.place all source code in pio /src folder 4.pio build
Expected behavior: Code complies without any issue
Actual behavior:
Compilation fails.
Error log: