Skip to main content

Messages

This section allows you to view all Messages made by this member. Note that you can only see Messages made in areas you currently have access to.

Messages - LaForge

1
Bus Pirate Support / Re: Testing UART with a Buspirate v3 board
Thanks for the reply. In the end I came to the same conclusion, namely that the processor, even when held in reset, must be holding something in a state where comms between the UART and device connected to pins 0/1 could not happen properly. I gather that the UNO R3 has only one serial port which is why pin 0/1 are shared with both the UART and CPU. I guess the only way serial comms can work on pin 0 and 1 is if USB is disconnected.

Thanks.
2
Bus Pirate Support / Re: Buspirate and Pickit 3
Thanks for the replies which are very helpful.

For the present I only have a requirement to program one chip on the BusPirate v3 and this is as a backup in case a firmware update goes horribly wrong and I'm left with a bricked board. I had a recent scare with it, which turned out to be a change in behaviour of the newer v6.3 firmware. At some point in the future I may have to purchase the BusPirate v4 but since this can also be programmed with the Pickit 2, I guess for now, I have no real need to go to the 3. In addition, from the replies it would seem that the Pickit 2 is more versatile, so I think I will probably stick with the Pickit 2.

Regarding the BusPirate firmware, I reverted back to v6.2, because 6.3 broke some things, including UART mode which I needed. I am aware that v7 of the firmware exists and will be giving that a try at some point.

Thanks.
3
Bus Pirate Support / Buspirate and Pickit 3
Can BusPirate be programmed with a Pickit 3? I had a scare earlier today when trying to revert my firmware to a previous version and couldn't get a response from the bootloader.

The board came with v5.1 but flashrom complained that it needed at least v6.2, so I upgraded to v6.3_r2151 from the community site. Enabling the bootloader required only that I open a terminal and type $. When I tried to downgrade, ds30 was complaining that it was not getting a response from the bootloader. It turned out that after this update I now needed to bridge PGC/PGND as well as go into terminal and type $. I was then able to flash v6.2.

While sorting this out I came across a tutorial on flashing the BP with a Pickit2. I guess this is similar to using an AVR programmer on an Arduino and means I can get out of trouble if the bootloader messes up for some reason, by being able to flash a new one. My Linux distro does not have the p2cmd program so I will need to find and compile it, but I have a look on eBay saw lots of Pickit3 devices. Some came with an additional board with a ZIF socket, but I believe that I only need the programmer?  It seems a retrograde step to get the older hardware if a new version is available. But assuming I can find the software, will the Pickit3 work the same?
4
Bus Pirate Support / Testing UART with a Buspirate v3 board
I recently acquired a BusPirate v3 and am still quite new to how it works. I have successfully used it to extract firmware from a EEPROM and have managed to update the firmware. It seems that v6.3 of the firmware has a broken Live monitor and Transparent bridge in UART mode (no comms at all) so I had to revert back to 6.2, but that's another story.

I am trying to test serial comms on an Arduino.The first step was to test the UART. For this I have held the Arduino processor in RESET by connecting RESET to GND to prevent it running a sketch and interfering. I have the BP connected to the Arduino with MISO->Rx(UART Tx) and MOSI->Tx(UART Rx). I amd connected with PuTTy to the Arduino and with another PuTTy session to the BP. Baud rates are the same for both sessions. I'm running in open collector mode with pullup resistors enabled.

When I type something on the BP terminal, it comes up in the Arduino terminal, but not the reverse. I have one way comms only. If I disconnect RESET from GND to start the processor and move MISO to Tx and leave MOSI disconnected, I can monitor the processor responses to serial comms using Live Monitor.

So why do I only have one way comms in Transparent bridge?

( ! ) Fatal error: Uncaught exception 'Elk_Exception' with message 'Please try again. If you come back to this error screen, report the error to an administrator.' in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
( ! ) Elk_Exception: Please try again. If you come back to this error screen, report the error to an administrator. in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
Call Stack
#TimeMemoryFunctionLocation
10.01192300184session_write_close ( )...(null):0
20.01222431784ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.01222432560Database_MySQL->query( ).../DatabaseHandler.php:119
40.05632571304Database_MySQL->error( ).../Db-mysql.class.php:273