Closed hacktronics closed 3 months ago
you havea CDC device profile example in the sdk, obviously not in this arduino core. You can run the SDK example in an arduino project.
Sorry for this but did you meant this: https://github.com/openwch/ch32v20x/blob/main/EVT/EXAM/USB/USBD/SimulateCDC/User/UART/UART.c How to run this SDK example in Arduino.
yes sure, well to run it in arduino you just have to integrate this into your project. Or make a library with it? I would not advise to try porting this to CPP, there is zero advantage and a large code ize penalty. Keep it in C and declare the calls you need to make from CPP as extern C
tried copying the USBLib to Arduino, but unfortunately its doesn't work and there are lot of things, which are beyond my understanding.
In mounriver, I was able to emulate a serial port, but didn't understand what the program does. THere is no docs or comments. Is there any sample that just create a serial port, and have interrupt on data receive, even in core sdk.
I will consider adapting the USB characteristics of the chip later. If I have enough time, I plan to abstract a USB layer to be compatible with all chips or provide library files for independent chips.
Does the CH32V203 USB support CDC profiles, I want to emulate as a serial port. Is there any example for the same. How can I connect to my computer the CH32V203 and exchange sensor readings.