Duet3D / RepRapFirmware

OO C++ RepRap Firmware
GNU General Public License v3.0
945 stars 535 forks source link

Task CPU usage in M122 report can exceed 100% #1005

Closed dc42 closed 6 months ago

dc42 commented 6 months ago

In the M122 report the total reported CPU usage and individual task CPU usage can exceed 100% if the machine has been running for more than about 90 minutes. This is caused by the 32-bit CPU time counter overflowing.

dc42 commented 6 months ago

Fixed in projects FreeRTOS, RepRapFirmware and Duet3Expansion but not yet committed, pending testing. The tick counter and associated variables are now 64 bit.

dc42 commented 6 months ago

Tested and working in 3.5-second-alt-is branch, using the code merged from the 3.5-dev branch.