INTL 3:770/1 3:770/3   
   REPLYADDR steveo@eircom.net   
   REPLYTO 3:770/3.0 UUCP   
   MSGID: <20240324072346.81064ff46570e669982a1f4e@eircom.net> e8da4bc3   
   REPLY: 5ebf554b   
   PID: SoupGate-Win32 v1.05   
   On Sat, 23 Mar 2024 22:20:34 +0000   
   The Natural Philosopher wrote:   
      
   > On 23/03/2024 18:37, Ahem A Rivet's Shot wrote:   
      
   > > 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.   
   > >   
   > Well I did. That's how I got this far.   
      
    Instrument /Inside/ gpio_get().   
      
   > I know it enters the routine, but never leaves, and the lack of GPIO   
   > voltage suggest it is being stuck where it is.   
      
    Right so the next step is the inside of the routine.   
      
   > > 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).   
   > >   
   > AIUI those are linux tools.   
      
    Unix tools but yes.   
      
   > We are running bare metal-ish here.   
      
    Ah - no way to attach a debugger via the SDK ?   
      
   > Back in the day I would have used a chip emulator with hardware break   
   > points.   
      
    An ICE is always nice if someone else is paying :)   
      
   > It's odd, it may be something to do with short ultrasonic distances. I   
   > have the PCB just lolling around on the desk, and facing a wall a few   
   > inches away seemed to make it crash moire predictably   
      
    Hmm is there a minimum range spec ?   
      
   --   
   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: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)   
   SEEN-BY: 15/0 19/38 90/1 105/81 106/201 128/260 129/305 135/225 153/757   
   SEEN-BY: 153/7715 218/700 840 220/70 226/17 30 100 227/114 229/110   
   SEEN-BY: 229/111 112 113 200 206 307 317 400 426 428 470 550 616 664   
   SEEN-BY: 229/700 266/512 267/800 282/1038 291/111 292/854 310/31 320/219   
   SEEN-BY: 322/757 342/200 396/45 460/58 633/280 281 412 418 420 509   
   SEEN-BY: 633/2744 712/848 770/1 3 100 330 340 772/210 220 230 5020/400   
   SEEN-BY: 5075/35   
   PATH: 770/3 1 633/280 229/426   
      
|