[En-Nut-Discussion] Debugging the CPU load
bon at elektron.ikp.physik.tu-darmstadt.de
bon at elektron.ikp.physik.tu-darmstadt.de
Thu Sep 3 18:05:34 CEST 2020
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 at elektron.ikp.physik.tu-darmstadt.de
Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt
--------- Tel. 06151 1623569 ------- Fax. 06151 1623305 ---------
More information about the En-Nut-Discussion
mailing list