Deutsch English Français Italiano |
<QZq*P8aGz@news.chiark.greenend.org.uk> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!weretis.net!feeder6.news.weretis.net!feeder8.news.weretis.net!newsfeed.xs3.de!nntp-feed.chiark.greenend.org.uk!ewrotcd!.POSTED.chiark.greenend.org.uk!not-for-mail From: Theo <theom+news@chiark.greenend.org.uk> Newsgroups: comp.sys.raspberry-pi Subject: Re: Need help with PI PICO... Date: 24 Mar 2024 14:45:58 +0000 (GMT) Organization: University of Cambridge, England Message-ID: <QZq*P8aGz@news.chiark.greenend.org.uk> References: <utn4f2$3p985$1@dont-email.me> <QZq*00-Fz@news.chiark.greenend.org.uk> <utp3l0$bcu6$1@dont-email.me> Injection-Info: chiark.greenend.org.uk; posting-host="chiark.greenend.org.uk:212.13.197.229"; logging-data="27059"; mail-complaints-to="abuse@chiark.greenend.org.uk" User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (Linux/5.10.0-22-amd64 (x86_64)) Originator: theom@chiark.greenend.org.uk ([212.13.197.229]) Bytes: 1775 Lines: 18 The Natural Philosopher <tnp@invalid.invalid> wrote: > As you can see from my last reply that is roughly where I am headed. Or > similar. Lacking full ICE., its all a bit 'poke the black box with > different sized sticks, and try and infer from what it does, what is > happening inside it' One of the challenges with embedded debugging is that printf can be a very slow thing, because it's spitting out characters on a slow UART. Adding printfs can thus screw up timing. Other techniques include writing things to memory you pick up later (don't forget that string handling and especially sprintf formatting can be slow) and wiggling GPIOs (eg output a different number in each stage of the program). sigrok is logic analyser software that works with cheap (<$10) capture hardware - seems it can now use a Pi Pico for that as well. Theo