-
Notifications
You must be signed in to change notification settings - Fork 16
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
Does changing RP2040 clock speed change file read/write times? #91
Comments
Based on my tesst:
>>> import microcontroller
>>> microcontroller.cpu.frequency = 125000000
>>> print(microcontroller.cpu.frequency)
125000000
>>> microcontroller.cpu.frequency = 62500000 Looks like there's no difference in read/write speed based on cpu clock speed |
@yudataguy I think based on my read of that console output there is a very minor reduction in read/write speeds when we drop the clock speed? Only a difference of 349 bytes/s which isn't too much, but maybe you'd still feel it as a couple seconds over the course of a few megabytes? |
Depends on how you reading it. By the number itself, the decrease is minimum. If you We need more tests |
I think that power consumption is not really a big concern when we are just copying files over on the ground. I figure a good amendment to the code would be to default the clock speed to the standard 125Mhz when it is on the ground and only change it down to the 62.5Mhz when we are going for flight and looking to save power. Perhaps an amendment to if seld.debug:
self.turbo=True
else:
self.turbo=False |
@Mikefly123 got another idea. Using altimeter and temperature sensor (if available on board), under certain condition, the lower clock speed is automatically activated. |
Hey @nateinaction do you think we should just update Trying to close some of the stale issues haha |
If it's only a marginal improvement, let's keep it in "flight mode." Going to close. Feel free to reopen. |
Summary
It takes about 170 seconds to load the flight software onto the board with
make install
. Can it be done faster? We reduce the CPU clock speed on the satellite as a power saving feature, let's see what kind of impact it has on development speed.Suggested testing methodology
Board mount location may differ. You can find out how to find the volume in the
README.md
.The text was updated successfully, but these errors were encountered: