Duet3D / RepRapFirmware

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

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

Closed dc42 closed 4 months ago

dc42 commented 4 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 4 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 4 months ago

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