home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.sys.raspberry-pi      Raspberry Pi computers & related hardwar      26,127 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 24,323 of 26,127   
   Ahem A Rivet's Shot to The Natural Philosopher   
   Re: Need help with PI PICO...   
   23 Mar 24 18:37:23   
   
   From: steveo@eircom.net   
      
   On Sat, 23 Mar 2024 17:45:05 +0000   
   The Natural Philosopher  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   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca