Workshop Update for January 29th, 2013

in Workshop Update by DP | 3 comments

bp-v4-W600

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 in Workshop Update and tagged .

Comments

  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 Comment

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

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