Warning: mysqli::__construct(): (HY000/1203): User howardkn already has more than 'max_user_connections' active connections in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\includes\artfuncs.php on line 21
Failed to connect to MySQL: (1203) User howardkn already has more than 'max_user_connections' active connections
Warning: mysqli::query(): Couldn't fetch mysqli in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\index.php on line 66
Article <20240323183723.b2902fb94d75422b924c1bc7@eircom.net>
Deutsch   English   Français   Italiano  
<20240323183723.b2902fb94d75422b924c1bc7@eircom.net>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!news.misty.com!weretis.net!feeder6.news.weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Ahem A Rivet's Shot <steveo@eircom.net>
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Need help with PI PICO...
Date: Sat, 23 Mar 2024 18:37:23 +0000
Organization: A noiseless patient Spider
Lines: 30
Message-ID: <20240323183723.b2902fb94d75422b924c1bc7@eircom.net>
References: <utn4f2$3p985$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: dont-email.me; posting-host="79565a0993ffefb7f4117c28b181083d";
	logging-data="4010522"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18lUoSzCwMKC0zdVt3hIY/qQTWEEvu1xvk="
Cancel-Lock: sha1:YkTPWgAgV8l+b1E061tsRcq3Uss=
X-Newsreader: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd13.1)
X-Clacks-Overhead: "GNU Terry Pratchett"
Bytes: 2068

On Sat, 23 Mar 2024 17:45:05 +0000
The Natural Philosopher <tnp@invalid.invalid> wrote:

> It would seem from the pin states that it gets permanently stuck in
> 	
> 
> while(!gpio_get(ULTRASONIC_IN))
> 		;
> 
> Can anyone cast any light on this one?
> 
> Or suggest a bug hunting methodology?

	Assuming you have access to the source of gpio_get() instrument the
inside of it with tracers (I'd use printf if there's anything listening to
stdout - otherwise find somewhere to put breadcrumbs that you can see in
real time (in ancient times I'd just watch the blinkenlights). Wait for it
to lock up and see what it's doing.

	Alternatively run it under strace or similar and wait for it to
lock up or wait for it to lock up and attach gdb (you'll want to compile
with -g for that).

	There's three - hopefully one of them will shed some light.

-- 
Steve O'Hara-Smith
Odds and Ends at http://www.sohara.org/
For forms of government let fools contest
Whate're is best administered is best - Alexander Pope