Re: Debugging the CPU load
bon-1JbLm1bU5j5ZIx36JBfelj3+ndqKAYMe9FMPySWZwLkb1SvskN2V4Q@public.gmane.org Thu, 3 Sep 2020 18:05:34 +0200
| Newsgroups | gmane.comp.hardware.microcontrollers.ethernut |
|---|---|
| Message-ID | <[email protected]> |
Philipp Burch writes: > Hi everyone, > > we have an Ethernut heartbeat LED connected to our MCUs as a quick check > of the global CPU/thread load. Despite the firmware runs without issues, > we recently found that some projects exhibit a constantly-on LED, i.e. a > 100% CPU load. The available diagnosing facilities show that all threads > are in the SLEEP state (except for the idle thread) most of the time, so > it is not apparent that a single thread just eats up all available CPU time. > > Is there some functionality available to find the CPU load per thread? > Can you debug with a debugger: Source ethernut/nut/tools/gdb/nutos.py in xxx-gdb-py and have a look at the thread. Otherwise the SWO tools at https://github.com/orbcode/orbuculum.git, especially opbtop can be of help. Bye -- Uwe Bonnes bon-1JbLm1bU5j5ZIx36JBfelj3+ndqKAYMe9FMPySWZwLkb1SvskN2V4Q@public.gmane.org Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt --------- Tel. 06151 1623569 ------- Fax. 06151 1623305 --------- _______________________________________________ http://lists.egnite.de/mailman/listinfo/en-nut-discussion