# MKS Robin: MCU 'mcu' shutdown: Timer too close

**URL:** https://klipper.discourse.group/t/mks-robin-mcu-mcu-shutdown-timer-too-close/4833
**Category:** General Discussion
**Created:** [November 8, 2022, 12:16pm UTC](https://klipper.discourse.group/t/mks-robin-mcu-mcu-shutdown-timer-too-close/4833 "2022-11-08T12:16:04Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![madejackson](https://avatars.discourse-cdn.com/v4/letter/m/54ee81/32.png) [@madejackson](https://klipper.discourse.group/u/madejackson)
#### Post date: [November 8, 2022, 12:16pm UTC](https://klipper.discourse.group/t/mks-robin-mcu-mcu-shutdown-timer-too-close/4833/1 "2022-11-08T12:16:04Z")

</div>

### Basic Information:

Printer Model: [Hypercube Evolution](https://www.thingiverse.com/thing:2254103)  
 MCU / Printerboard: [MKS Robin V2.2](https://github.com/makerbase-mks/MKS-Robin/tree/master/MKS%20Robin) (OG, NOT nano) 3x TMC2209, 1x TMC2100, Rpi 3 B+, Raspicam capped at 10fps  
 [klippy.log](https://klipper.discourse.group/uploads/short-url/2KpOGpZmpd4a8NeL9AKduMhpEoU.log) (1.2 MB)

### Describe your issue:

My Printer works fine for hours, even days none stop printing. But suddenly had this happen 2x times now:

While checking mainsail in Browser, it suddenly resets with following error while klippy.log shows nothing:

```auto
MCU 'mcu' shutdown: Timer too close
This often indicates the host computer is overloaded. Check
for other processes consuming excessive CPU time, high swap
usage, disk errors, overheating, unstable voltage, or
similar system problems on the host computer.
Once the underlying issue is corrected, use the
"FIRMWARE_RESTART" command to reset the firmware, reload the
config, and restart the host software.
Printer is shutdown

```

I already replaced USB-Cable with High Quality one including ferrit-core. Also reduced baud to 115200. My board uses 8mhz crystal and firmware is flashed accordingly. My board uses a CH341 usb controller.

What is the reason for this?

Next thing I’ll test is to reduce microsteps of steppers and enable interpolation, maybe I overload the STM32F103ZET6 with true 256 microsteps?

---

<div class="post-metadata">

### Author: ![LifeOfBrian](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/lifeofbrian/32/2380_2.png) [@LifeOfBrian](https://klipper.discourse.group/u/LifeOfBrian)
#### Post date: [November 8, 2022, 3:26pm UTC](https://klipper.discourse.group/t/mks-robin-mcu-mcu-shutdown-timer-too-close/4833/2 "2022-11-08T15:26:39Z")

</div>

> [@madejackson](#):
>
> maybe I overload the STM32F103ZET6 with true 256 microsteps?

This should be the case…

---

<div class="post-metadata">

### Author: ![madejackson](https://avatars.discourse-cdn.com/v4/letter/m/54ee81/32.png) [@madejackson](https://klipper.discourse.group/u/madejackson)
#### Post date: [November 9, 2022, 3:35pm UTC](https://klipper.discourse.group/t/mks-robin-mcu-mcu-shutdown-timer-too-close/4833/4 "2022-11-09T15:35:37Z")

</div>

So far no issues with microsteps: 32  
2nd 10-hour print just completed.  
If this really is the case as it seems, this is really bad error-handling from klipper side.

I believe on marlin, if the microcontroller was behind, it was just spitting out warnings, not aborting the print, destroying the part and wasting hours of print time.

---

<div class="post-metadata">

### Author: ![LifeOfBrian](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/lifeofbrian/32/2380_2.png) [@LifeOfBrian](https://klipper.discourse.group/u/LifeOfBrian)
#### Post date: [November 9, 2022, 3:51pm UTC](https://klipper.discourse.group/t/mks-robin-mcu-mcu-shutdown-timer-too-close/4833/5 "2022-11-09T15:51:46Z")

</div>

I had the same issue with my OrangePi and high µsteps. It was much better with the RasPi4.  
The reason for this was handled in another thread if I remember properly…  
But I think comparing Marlin with Klipper is not applicable. If the MCU is overloaded with Marlin you’ll see blobs during prints as it waits until the queue is processed.  
Under Klipper such tasks will overload the RasPi or what ever you are using. I don’t know whether one could implement an exception handler that does not halt the MCU…

---

<div class="post-metadata">

### Author: ![L29Ah](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/l29ah/32/153_2.png) [@L29Ah](https://klipper.discourse.group/u/L29Ah)
#### Post date: [December 13, 2022, 6:49pm UTC](https://klipper.discourse.group/t/mks-robin-mcu-mcu-shutdown-timer-too-close/4833/6 "2022-12-13T18:49:16Z")

</div>

Thanks for your report. Observed the same problem with stm32f401 @ 256 microsteps, works fine at 64.

---

<div class="post-metadata">

### Author: ![EddyMI3D](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/eddymi3d/32/1981_2.png) [@EddyMI3D](https://klipper.discourse.group/u/EddyMI3D)
#### Post date: [April 24, 2024, 1:55pm UTC](https://klipper.discourse.group/t/mks-robin-mcu-mcu-shutdown-timer-too-close/4833/7 "2024-04-24T13:55:53Z")

</div>


