Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to set the clock speed #29

Closed
tve opened this issue Aug 3, 2018 · 6 comments
Closed

how to set the clock speed #29

tve opened this issue Aug 3, 2018 · 6 comments

Comments

@tve
Copy link

tve commented Aug 3, 2018

How do I set the desired clock speed for a sketch? Is there a way to dynamically change it?

@GrumpyOldPizza
Copy link
Owner

GrumpyOldPizza commented Aug 3, 2018 via email

@tve
Copy link
Author

tve commented Aug 3, 2018

Ugh. I'm using platform.io. Can't stand the IDE... DO you happen to know how it gets passed in? Else I'll have to make sense out of all the stm32l0_system.c clock code...

@tve
Copy link
Author

tve commented Aug 3, 2018

Ok, found it: SYSTEM_CORE_CLOCK
Looks like I need to dig through the platform.txt and board.txt stuff to extract the configuration options in general...

@tve tve closed this as completed Aug 3, 2018
@GrumpyOldPizza
Copy link
Owner

GrumpyOldPizza commented Aug 4, 2018 via email

@rmeldo
Copy link

rmeldo commented Oct 30, 2018

Hi,
If through the Arduino I choose the 4.2MHz, which doesn't support the USB, will I still be able to upload the sketches through the USB or is that functionality disabled as well?
I guess I will find out when I try but will my delays and sleep times have to change accordingly?
Thanks
Riccardo

@GrumpyOldPizza
Copy link
Owner

You have to hold BOOT while toggeling RESET to put the chip again into bootloader mode, if you use lower clocks.

delays and sleep times do not have to be changed.

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

No branches or pull requests

3 participants