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

77
Bus Pirate Development / Re: Bus Pirate LCD adapter v2
I'd take one as I'm ordering more of your "prototypes" :)

Oh, could Seeed include a female-female changer to the big row of pins. My LCD has male pins, so it would be easier to use...
78
Bus Pirate Support / Re: Bricked? Suggestions?
Hello again! I tried with a Windows Vista PC, it was quite huge pita to install the drivers :)

While I'm not sure if I did everything right, at least putty connects to BP. But it shows nothing, just blank screen. After a while of banging the keyboard and waiting the putty screen shows squares and X:s but nothing clear.
79
Bus Pirate Support / Re: Bricked? Suggestions?
python P24qp.py -s /dev/ttyUSB0 -a setfuses.hex.txt
Using Serial Port /dev/ttyUSB0 @ 9600
Reading 4 bytes from address 0x00FF0000
Found PIC24FJ64GA002
Erase Flash:
        Erasing 43 pages, starting at 0x00000000
        Erase complete
Write operation complete.
Verified Okay.
        Verification complete, switching to user mode

then removed and plugged again in
python P24qp.py -s /dev/ttyUSB0 -a BPv3/v3-Firmware-v3.5.hex

Everything looks like it should, but the problem stays, I can't connect to BP with screen. I tried 2nd time, but nothing changed.

I live in Eastern Finland...
82
Bus Pirate Support / Re: Bricked? Suggestions?
Yes, the MODE light is on and upload seems to work perfectly, but after uploading nothing has changed.

Edit: So I never get to see the upgrader greeting and type yes. Even firmware compatible with older bootloader fails to work.
83
Bus Pirate Support / Re: Bricked? Suggestions?
python P24qp.py -i -s /dev/ttyUSB0
Using Serial Port /dev/ttyUSB0 @ 9600
Reading 4 bytes from address 0x00FF0000
Found PIC24FJ64GA002
Reading Bootloader Version Information:
        Bootloader Version: 1.2
----
python P24qp.py -r -s /dev/ttyUSB0
Using Serial Port 2 @ 9600
Reading 4 bytes from address 0x00FF0000
Traceback (most recent call last):
  File "P24qp.py", line 696, in
    p = PIC24F_Prog(Config, SerialPort)
  File "P24qp.py", line 294, in __init__
    device = self.GetDevice()
  File "P24qp.py", line 335, in GetDevice
    device_data = self.ReadFlash(0xFF0000, 4)
  File "P24qp.py", line 637, in ReadFlash
    data += self.BootloaderCMD("RD_FLASH", args)
  File "P24qp.py", line 481, in BootloaderCMD
    self.TX_PKT(data)
  File "P24qp.py", line 360, in TX_PKT
    self.ser.write(STX)
  File "/usr/lib/python2.6/dist-packages/serial/serialposix.py", line 328, in write
    if self.fd is None: raise portNotOpenError
serial.serialutil.SerialException: Port not open
----

I don't know where the error.txt should be... Sorry that dumping doesn't work.
84
Bus Pirate Support / Re: Bricked? Suggestions?
Yes, "screen /dev/ttyUSB0 8N1 115200 8N1" gives blank terminal and only the PWR led is on. USB led DOESN'T flash during typing as it were when BP still worked. It worked when I got it, but I did something wrong during the upgrade to v4 bootloader or something.

I think I need an ICSP programmer, any suggestions?
85
Bus Pirate Support / Re: Bricked? Suggestions?
I uploaded the upgrader to BP with P24QP.py. Then pulled the BP out and back in, connecting with screen: no text, not even after typing. But when I typed something, the MODE led turns on and stays on for a while. Sorry, but I can't understand what is going on. Thanks for your help :)
86
Bus Pirate Support / Re: Bricked? Suggestions?
Hello, sorry for long delay, had to work & sleep most of the time.

BP connected to USB, no pins shorted:

LEDs: PWR on, USB flashes several times, then off, others off.
linux: detects FT232RL and assigns BP to /dev/ttyUSB0
Connecting with screen: gives blank screen. Typing has no effects. Pulling USB cable out closes the screen session (so it's connected to somewhere).


BP connected to USB, PGC+PGD shorted:
LEDs: PWR on, USB flashes several times, then off, MODE stays on, VREG off.
linux: detects FT232RL and assigns BP to /dev/ttyUSB0
Connecting with screen: gives blank screen. Typing has no effects. Pulling USB cable out closes the screen session (so it's connected to somewhere).
For example the following seems to work
Code: [Select]
$ sudo python P24qp.py -a BPv3/v3-STK500v2-v0a-hiz.hex -s /dev/ttyUSB0
Using Serial Port /dev/ttyUSB0 @ 9600
Reading 4 bytes from address 0x00FF0000
Found PIC24FJ64GA002
Erase Flash:
        Erasing 43 pages, starting at 0x00000000
        Erase complete
Writing 256 bytes to address 0x00000000
....
Writing 256 bytes to address 0x0000AB80
Write operation complete.
Verified Okay.
        Verification complete, switching to user mode
$
During programming the PWR is on and USB flashes, MODE is also on.
Hope that helps.
87
Bus Pirate Support / Re: Bricked? Suggestions?
Hello everyone!

I have somewhat bricked BPv3a. Upgrade to v4 bootloader was not successful, never got it to the "yes", if I remember correctly. It has been dead for few months, but now it would be nice to fix it.

So, do I need a PIC programmer (can I build one, if so, which?) or another BP or a friend with one? I'm a bit new to uCs, and I may need some how-to for programming my dead BP.

Thank you for replies, everything helps :)

( ! ) 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.01682396328session_write_close ( )...(null):0
20.01722527944ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.01722528720Database_MySQL->query( ).../DatabaseHandler.php:119
40.05992667472Database_MySQL->error( ).../Db-mysql.class.php:273