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

Timer too close #382

Closed
eliasbakken opened this issue Sep 9, 2023 · 9 comments
Closed

Timer too close #382

eliasbakken opened this issue Sep 9, 2023 · 9 comments
Labels

Comments

@eliasbakken
Copy link

I've experienced an issue where I get the "timer too close" during probing of the bed on a Voron 2.4. It is not consistent when the error happens, it can happen early or late in the probing process or not at all. The CPU usage on my printer is around 20-30%, mostly due to the transcoding of the webcam data I think (a Logitech C270).

@eliasbakken eliasbakken added the bug label Sep 9, 2023
@eliasbakken eliasbakken added this to the Refactor v3.2.0 milestone Sep 9, 2023
@goeland86
Copy link
Member

I've had that recently on the 3.2.0-RC3, what fixed it was to edit /etc/init.d/cpufrequtil and change the governor from ondemand to performance. It locks the CPU at full speed after a reboot. This means you need a heatsink on the CPU and airflow around it to avoid thermal throttling later on though.
Debating about whether to issue a PR for that, or whether we should experiment with the userspace governor and have the user choose what clock speed to use based on the cooling available?

@shuffleznl
Copy link

Happens to me on A5 on 3.1.3 (I think, currently not near machine) too.
Specifically in Arc G3 during fast infill. Repeatable (thrice) to the exact same point in print.

@eduncan911
Copy link

Try disconnecting the webcam on a repeatable print. Also, too high of microstepping could be an issue (try 16 or 32 for a while).

@goeland86
Copy link
Member

Also if you have a good cooling setup on the main a64 chip, you can try setting the CPU frequency to static high speed instead of dynamic with

cpufreq-set -c 0 -g performance

Repeat for CPU 1,2 and 3 by updating the parameter for -c.

Since doing it on a startup script I've not been able to trigger the issue... but the main chip does heat up more as a result.

@shuffleznl
Copy link

Try disconnecting the webcam on a repeatable print. Also, too high of microstepping could be an issue (try 16 or 32 for a while).

Dont have a webcam connected. Will test other microsteps!

@shuffleznl
Copy link

Also if you have a good cooling setup on the main a64 chip, you can try setting the CPU frequency to static high speed instead of dynamic with

cpufreq-set -c 0 -g performance

Repeat for CPU 1,2 and 3 by updating the parameter for -c.

Since doing it on a startup script I've not been able to trigger the issue... but the main chip does heat up more as a result.

Have a 120mm fan blowing on the board, should I add heatsink for this?

@goeland86
Copy link
Member

goeland86 commented Sep 28, 2023 via email

@shuffleznl
Copy link

shuffleznl commented Sep 30, 2023

Changing govenor sadly doesnt fix issue on A5 with 3.1.3.
Btw; I used one of the more recent Klipper versions, possibly the AR100 issue comes from there (the last update broke A5 support, reflashing now).
image

eliasbakken added a commit that referenced this issue Oct 27, 2023
)

* Submitting a proposed fix for the timer too close issue from #382.

* Updating the config files to include missing code size optimization features.

* Fixing the STM32 config file.

* Fixing permissions on the Klipper repo from error during compilation of the firmware.

* Update stm32 and ar100 configs

* Build stops due to need for feedback from user. This change should answer without user interaction

* Use right name for cpu frequency script. Simplify script

---------

Co-authored-by: Elias Bakken <elias@iagent.no>
@eliasbakken
Copy link
Author

This has been merged in master. It seems to work on A7, not yet tested on A6. Closing for now, and it can be opened again it necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants