You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am finding difficulties in configuring system clock on ch32 platform with noneos-sdk.
As far as I can judge startup code, it enforces calling SetSysClock, which is configured by SYSCLK_FREQ_* constants.
The way these constants are set, I find it impossible to have HSI clock, without changing source of the package in platformio directory.
Or am I missing some configuration option for doing this ?
Unfortunately, changing package sources will affects all projects based on this framework, which is very unfortunate.
Thus it would be very nice to have more flexible way of configuring system clock.
I find couple of possibilities, how to address this issue:
Configure SetSysClock function as weak, so that defining own function will override any default behavior
Have HSI clock default
Have SYSCLK_FREQ_ option set unless it is already provided by build flags
The text was updated successfully, but these errors were encountered:
I agree, there needs to be a better way to configure this ( and other ) features. Perhaps a configuration file that can be provided by the application.
For the moment, you might be able to change the clock by defining the value in the the build flags in platformio. One of these should do what you want:
Hello,
I am finding difficulties in configuring system clock on ch32 platform with noneos-sdk.
As far as I can judge startup code, it enforces calling
SetSysClock
, which is configured bySYSCLK_FREQ_*
constants.The way these constants are set, I find it impossible to have HSI clock, without changing source of the package in platformio directory.
Or am I missing some configuration option for doing this ?
Unfortunately, changing package sources will affects all projects based on this framework, which is very unfortunate.
Thus it would be very nice to have more flexible way of configuring system clock.
I find couple of possibilities, how to address this issue:
SetSysClock
function as weak, so that defining own function will override any default behaviorSYSCLK_FREQ_
option set unless it is already provided by build flagsThe text was updated successfully, but these errors were encountered: