Maximilian Gerhardt

Results 564 comments of Maximilian Gerhardt

They denied my request for the source code "at the moment" because "they are in a phase of rapid iteration". I gave them 4 weeks of time to comply with...

Sorry, we currently have an issue with the clock initialization. Can you add ``` -DSYSCLK_FREQ_48MHz_HSE=48000000 ``` or ``` -DSYSCLK_FREQ_48MHz_HSI=48000000 ``` to the `build_flags` of your `platformio.ini` so that the chip...

But in the Arduino IDE it works for 5V and clock source (in the Arduino IDE -> Tools menu) set to HSI 48MHz?

Please post the full project of your NoneWCH project in which I2C does not work normally and state which device you connect it to. Do you have traces of the...

This is really not enough to be reproducable. Can you upload your PlatformIO project to Github as a whole? `-Os` is already the default flag. No need to add it...

We do have a TinyUSB + Arduino example for CH32V307 right in this platform at https://github.com/Community-PIO-CH32V/platform-ch32v/blob/develop/examples/tinyusb-arduino/platformio.ini. The main configuration macro for USB highspeed or fullspeed is https://github.com/Community-PIO-CH32V/platform-ch32v/blob/74097c0adb830b3301a80aa4135a7d126afaa66b/examples/tinyusb-arduino/platformio.ini#L35-L41 Can you try...

There is indeed a fault in maybe the PlatformIO builder script for the Arduino core. The clock source is not set correctly. With no further configuration, the chip stays at...

Another quirk is that the CH32V307 can be setup to multiple different ROM + RAM size configurations. But the Arduino core's linkerscript is hardcoded for the 64K RAM definition. This...

Very interesting, maybe the buffer bug was just a randomness on my side. Will need to recheck. The clock configuration was restructued in https://github.com/Community-PIO-CH32V/platform-ch32v/commit/58b22212830cd2d4f7bd6f1a9ee4203ad7cd2074, and is documented in https://pio-ch32v.readthedocs.io/en/latest/clock%20source%20configuration.html. As...

Do you use the high speed (HS) or full speed (FS) USB? USB is notorious for requiring a spot-on 48 MHz clock to work. The reference manual of the CH32V3x...