Skip to content

Commit c319176

Browse files
authored
[CH32VM00X] Update SDK to apply correct clock #198
I ran the CH32V006 in an Arduino environment and noticed that the delay() function was waiting longer than it should. Assuming that there was a problem with the clock settings, I first looked at the SDK and noticed that it was fixed in the latest SDK, so I synchronized it with this SDK. https://www.wch.cn/downloads/CH32V006EVT_ZIP.html (Ver.1.4) $ cp /path/to/EVT/EXAM/GPIO/GPIO_Toggle/User/* /path/to/arduino_core_ch32/system/CH32VM00X/USER/ $ cd /path/to/arduino_core_ch32/system/CH32VM00X/USER/ $ find . -type f | xargs file |grep CRLF | awk -F: '{print $1}' | xargs nkf -Lu --overwrite   The SDK source code and the code in this repository use different line endings, so I converted them using a command.. openwch/arduino_core_ch32#198
1 parent c41432c commit c319176

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

boards.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,9 @@ CH32VM00X_EVT.menu.upload_method.ispMethod.upload.tool=wchisp
160160

161161
# Clock Select
162162
CH32VM00X_EVT.menu.clock.48MHz_HSI=48MHz Internal
163-
CH32VM00X_EVT.menu.clock.48MHz_HSI.build.flags.clock=-DSYSCLK_FREQ_48MHz_HSI=48000000 -DF_CPU=48000000
163+
CH32VM00X_EVT.menu.clock.48MHz_HSI.build.flags.clock=-DSYSCLK_FREQ_48MHZ_HSI=48000000 -DF_CPU=48000000
164164
CH32VM00X_EVT.menu.clock.24MHz_HSI=24MHz Internal
165-
CH32VM00X_EVT.menu.clock.24MHz_HSI.build.flags.clock=-DSYSCLK_FREQ_24MHz_HSI=24000000 -DF_CPU=24000000
165+
CH32VM00X_EVT.menu.clock.24MHz_HSI.build.flags.clock=-DSYSCLK_FREQ_24MHZ_HSI=24000000 -DF_CPU=24000000
166166
CH32VM00X_EVT.menu.clock.8MHz_HSI=8MHz Internal
167167
CH32VM00X_EVT.menu.clock.8MHz_HSI.build.flags.clock=-DSYSCLK_FREQ_8MHz_HSI=8000000 -DF_CPU=8000000
168168
CH32VM00X_EVT.menu.clock.48MHz_HSE=48MHz External

0 commit comments

Comments
 (0)