Workshop Update for January 29th, 2013

Posted on Tuesday, January 29th, 2013 in Workshop Update by DP


Today we worked on implementing a debugging UART mode for the Bus Pirate v4. To talk to your computer the Bus Pirate v4 uses a software USB stack coded in the firmware. While this gives us some advantages, it has a disadvantage of hanging if in-circuit debugging is needed. The USB simply fails and no communication with the PC is possible from that point on.

To tackle this problem we are adding a special debugging mode to the Bus Pirate v4 firmware, which will transfer the communication protocol to UART accessible through the AUX1 and AUX2 pins.  As a further development we might add this mode as a selectable menu option, giving you the possibility to connect to the Bus Pirate over USB, or through UART.

This entry was posted on Tuesday, January 29th, 2013 at 11:00 pm and is filed under Workshop Update. You can follow any responses to this entry through the RSS 2.0 feed. You can skip to the end and leave a response. Pinging is currently not allowed.

3 Responses to “Workshop Update for January 29th, 2013”

  1. Honken says:

    Do what I have always done.
    Use the PPS function to route the debug UART through the PGC/PGD pins on the ICSP.
    Then use pk2serial to watch the debug prints.

    That is how I debuged the usb stack when developing it.

  2. Dan says:

    Any chance, if you keep that mode, that you can monitor multiple serial ports at once? Provided the baud was low, you would just append the inbound data with a 1 or a 2.

    It would only really be good for receiving ‘\n’ terminated lines so you would end up with:
    1) Powering On
    2) AT
    2) ATE0
    2) Module powered

Leave a Reply

Notify me of followup comments via e-mail. You can also subscribe without commenting.

Recent Comments

  • Drone: The LM7171 used in this very simple design can be simulated in LTspice with reasonable results at 10MHz using the non-encrypted PSPICE model from TI...
  • Jon Jackson: I would be interested in 1 or 2 of your circuit boards. Jon
  • Max: An actual Saturday "detector" built with the same hardware would use the precisely timed slightly varying length of the day (and some built-in astronomy data)...
  • KH: In the old days, these things remained on paper forever as whimsical scrawls. Today, they are brandished about on blogs for the entire world to...
  • KH: So he doesn't really know what he's doing. Yawn. It's sensor-controlled. It's not an oscillator. A leaf covers the window, you're toast. TLV3702? Overkill. The...