Skip to main content

Topics

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

Topics - varesa

1
Open Bench Logic Sniffer / Can't update OLS
Now that I have managed to fix the bootloader, I am back to my original problem: I can't get it to update.

Code: [Select]
[root@acer2 ols-loader]# ./ols-loader -status -p:/dev/ttyACM0 
Logic Sniffer ROM loader v0.3 (November 9, 2010)
Opening serial port '/dev/ttyACM0' @ 921600 ... OK
Found OLS HW: 1, FW: 2.1, Boot: 2
Error - unknown flash type (48 01 46 02)

Code: [Select]
[root@acer2 fw_update]# ./fw_update -ver  -vid 0x04D8 -pid 0xFC90
fw_update Version: 0.2.0
U2IO BootLoader Version reading: FAILED.
Segmentation fault (core dumped)

Code: [Select]
[root@acer2 OLS_Upgrader]# ./ols-upgrader.sh 

...

Logic Sniffer ROM loader v0.3 (November 9, 2010)
Opening serial port '/dev/ttyACM0' @ 921600 ... OK
Found OLS HW: 1, FW: 2.1, Boot: 2
Error - unknown flash type (48 01 46 02)
Logic Sniffer ROM loader v0.3 (November 9, 2010)
Opening serial port '/dev/ttyACM0' @ 921600 ... OK
Found OLS HW: 1, FW: 2.1, Boot: 2
Error - unknown flash type (48 01 46 02)
Press any key to continue...

...

U2IO flash erasing: FAILED.
Device is not found.
Operation aborted.

Code: [Select]
[root@acer2 OLS_Upgrader]# ols_fwloader -f BOOT -n -P /dev/ttyACM0 -V -W -w PIC_firmware/OLSv1.firmware.v3.0.hex
Found OLS HW: 1, FW: 2.1, Boot: 2
Error - unknown flash type (48 01 46 02)
Is OLS in update mode ??
Unable to read Flash ID
Unable to open OLS

Code: [Select]
[root@acer2 OLS_Upgrader]#  dmesg

...

[68749.318714] usb 2-1.2: USB disconnect, device number 34
[68755.132925] usb 2-1.2: new full-speed USB device number 35 using ehci-pci
[68755.222412] usb 2-1.2: New USB device found, idVendor=04d8, idProduct=fc92
[68755.222422] usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[68755.222428] usb 2-1.2: Product: Logic Sniffer CDC-232
[68755.222432] usb 2-1.2: Manufacturer: Microchip Technology Inc.
[68755.223487] cdc_acm 2-1.2:1.0: This device cannot do calls on its own. It is not a modem.
[68755.223521] cdc_acm 2-1.2:1.0: ttyACM0: USB ACM device
[69023.732215] fw_update[28839]: segfault at ffffffffffffffff ip 0000003f17402c09 sp 00007fffcc7d9b90 error 5 in libusb-0.1.so.4.4.4[3f17400000+4000]
[69500.569512] fw_update[28978]: segfault at ffffffffffffffff ip 0000003f17402c09 sp 00007fff236bf940 error 5 in libusb-0.1.so.4.4.4[3f17400000+4000]

Code: [Select]
[esa@acer2 ~]$ lsusb
Bus 002 Device 035: ID 04d8:fc92 Microchip Technology, Inc. Open Bench Logic Sniffer
Bus 002 Device 031: ID 04d8:900a Microchip Technology, Inc. PICkit3
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 1bcf:288a Sunplus Innovation Technology Inc.
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Code: [Select]
[root@acer2 OLS_Upgrader]# uname -a
Linux acer2.ikioma 3.10.9-200.fc19.x86_64 #1 SMP Wed Aug 21 19:27:58 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

[root@acer2 OLS_Upgrader]# rpm -q libusb
libusb-0.1.5-2.fc19.x86_64
libusb-0.1.5-2.fc19.i686

The board is v1.04 and I have programmed the PIC with svn trunk/PIC-firmware-dumps/PIC-firmware-dumps/OLSv1-DUMP-FW21BL2-16MHz.hex with a PICKIT3 after I screwed the bootloader up.

Any ideas?
2
Open Bench Logic Sniffer / [SOLVED] Rescue bootloader with PICKIT 3
While trying to get both the firmware and bitstream to successfully update, I think I broke the bootloader (can't get to update mode). I tried to program the hex file in OLSv1-bootloader-v2-16MHz.zip from the thread linked to in the bootloader rescue thread, but it still doesn't go to update mode.

Pickit 3 successfully programs the chip and also verifies it ok, but I am not getting any kind of USB insertion message in dmesg and the ACT led does not get lit, even if I power up with the UPDATE button pressed down. What am I doing wrong with reflashing the bootloader?

EDIT: Are the configuration bits included in the bootloader .hex file, or do I have to set them up manually? If so that might well be my problem
note to self: configuration bits are on page 417

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