Categories

Workshop Update for January 29th, 2013

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

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 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

  • Bob: Free PCB for me!
  • Drone: Nice - but I'm most interested in the enclosure with the finger-leaf cover. Where did that come from? How to buy more?
  • Dave B: Got two of them. If you let the battery run flat, they don't charge! You have to pull the battery, and get enough charge in...
  • Bill F: My turn?
  • Chris: Ok!