Skip to content

Fix clock on PlatformIO build - #5

Merged
RoboDurden merged 1 commit into
RoboDurden:mainfrom
hoverboardhavoc:hoverboardhavoc/Fix_Clock
May 7, 2025
Merged

RoboDurden merged 1 commit into
RoboDurden:mainfrom
hoverboardhavoc:hoverboardhavoc/Fix_Clock

Conversation

@hoverboardhavoc

Copy link
Copy Markdown
Contributor

The PlatformIO build was unintentionally running at the wrong clock source, causing motors to emit a metallic noise.

Use __SYSTEM_CLOCK_72M_PLL_IRC8M_DIV2 (as used by the Keil build)

This required a little change to gd32-pio-spl-package to add support for PIO_DONT_SET_CLOCK_SOURCE

See CommunityGD32Cores/gd32-pio-spl-package#13

The PlatformIO build was unintentionally running at the wrong clock
source, causing motors to emit a metallic noise.

Use __SYSTEM_CLOCK_72M_PLL_IRC8M_DIV2 (as used by the Keil build)

This required a little change to gd32-pio-spl-package to add support for __PIO_DONT_SET_CLOCK_SOURCE__

See CommunityGD32Cores/gd32-pio-spl-package#13
@RoboDurden

RoboDurden commented May 5, 2025

Copy link
Copy Markdown
Owner

Great that you test the platform.io framework!

But is it necessary to use your personal GitHub: @https://github.com/hoverboardhavoc/gd32-pio-spl-package.git#hoverboardhavoc/add__PIO_DONT_SET_CLOCK_SOURCE__ ?

Maybe I can wait until your pull request over there is accepted.
Should I leave a supporting comment there ?

@hoverboardhavoc

hoverboardhavoc commented May 5, 2025

Copy link
Copy Markdown
Contributor Author

Yes please, add a supporting comment!

I thought it would be OK to use my repo until the PR is accepted. It's better than the current situation.

@RoboDurden

Copy link
Copy Markdown
Owner

Done. I will wait 24h now :-)

@hoverboardhavoc

Copy link
Copy Markdown
Contributor Author

I wonder if Max has moved on to other things? CommunityGD32Cores/gd32-pio-spl-package#13 was Max's own fix that he applied to the Arduino repo. There is another PR that's been there since last August 😢 CommunityGD32Cores/gd32-pio-spl-package#12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants