Workshop Update for January 29th, 2013

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 Workshop Update.

Comments
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.
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
That should actually be:
1) Powering On
2) AT
2) ATE0
1) Module powered