Update mode is not activated June 19, 2013, 09:01:24 am I'm trying to do firmware upgrade for OBLS. When I press UPDATE and RESET buttons ACT led does not turn on like it is said in the manuals. What are my options ? Is the device hardware damaged ? Will I get refund ? Last Edit: January 01, 1970, 01:00:00 am by Guest
Re: Update mode is not activated Reply #1 – June 19, 2013, 12:56:41 pm Ok, so I jumpered PGC and PGD pins and press reset. Nothing happens. Port status from Usbtreeview program: =========================== USB Port3 ===========================Connection Status : Device failed enumerationPort Chain : 1-3 ======================== USB Device ======================== ---------------- Connection Information ---------------Connection Index : 0x03Connection Status : 0x02 (DeviceFailedEnumeration)Current Config Value : 0x00Device Address : 0x00Is Hub : 0x00 (no)Number Of Open Pipes : 0x00 (0)Device Bus Speed : 0x00 (Low-Speed) ------------- Device Qualifier Descriptor -------------bLength : 0x00 (0 bytes)Where can I get the latest .hex to update the bootloader? I seem to be having v 1.04 board Last Edit: January 01, 1970, 01:00:00 am by Guest
Re: Update mode is not activated Reply #2 – June 19, 2013, 02:15:11 pm I was able to update the bootloader with Bus Pirate from BP-OLS-bootloaderrescue-v1.zip according to these instructions:http://dangerousprototypes.com/2010/06/ ... er-rescue/I checked before and after programming that PIC is read correctly in the program. Programming really should have some verification function even it is slow.Still no go: I then tried to update firmware with fw_update:D:UserslainemiDownloadsOLSBP-OLS-bootloaderrescue-v1Firmware-0506update>fw_update -e -w -m flash -vid 0x04D8 -pid 0xFC90 -ix OLSv1-firmware-v05-20MHz.hexU2IO flash erasing: FAILED.Device is not found.Operation aborted.D:UserslainemiDownloadsOLSBP-OLS-bootloaderrescue-v1Firmware-0506update>pausePress any key to continue . . .Again usbtreeview does not identify OBLS bootloader: =========================== USB Port1 ===========================Connection Status : Device failed enumerationPort Chain : 3-1-5-1 ======================== USB Device ======================== +++++++++++++++++ Device Information ++++++++++++++++++Device Description : Unknown DeviceDevice ID : USBVID_0000&PID_00007&34A5C852&0&1Driver KeyName : {36fc9e60-c465-11cf-8056-444553540000} 033Legacy BusType : PNPBusClass : USBService : Enumerator : USBLocation Info : Port_#0001.Hub_#0005Manufacturer Info : (Standard USB Host Controller)Capabilities : Removable, RawDeviceOKAddress : 1Problem Code : 43 (CM_PROB_FAILED_POST_START)Power State : D3 (supported: D0, D2, D3, wake from D0, wake from D2) ---------------- Connection Information ---------------Connection Index : 0x01Connection Status : 0x02 (DeviceFailedEnumeration)Current Config Value : 0x00Device Address : 0x00Is Hub : 0x00 (no)Number Of Open Pipes : 0x00 (0)Device Bus Speed : 0x00 (Low-Speed) ------------- Device Qualifier Descriptor -------------bLength : 0x00 (0 bytes) Last Edit: January 01, 1970, 01:00:00 am by Guest
Re: Update mode is not activated Reply #3 – June 19, 2013, 07:28:59 pm Ok. Finally got the bootloader to run. Turns out my OBLS has 16MHZ and NOT 20MHZ crystal !! I was flashing 20MHZ bootloader with BP like it says in the rescue information. I highly suggest to add note there to first check what crystal is in OBLS and then choose the correct bootloader! Last Edit: January 01, 1970, 01:00:00 am by Guest
Re: Update mode is not activated Reply #4 – June 19, 2013, 10:55:28 pm Hi Knockerd,Glad you worked it out! :)You generally do not start reflashing bootloaders without a good reason and from the initial problem you have mentioned in viewtopic.php?f=23&t=5613it looked like you had a software problem more than a hw one as you were actually able to have the device enumerated before you started updating the bootloader.The recovery guide you read was for OLS v1.01 while you have v1.04.Obviously if the crystal is the wrong freq, that can affect all usb communication as well. I have been in a similar situation as you as I soldered myself my OLS and the first time I tried to flash it was with bootloader v2 for 16 MHz but I had a 20Mhz crystal (as stated in the v1.04 partlist so maybe that needs updating) so basically I had the same problem but just the other way around. :) Anyway, the important part is to have the matching bootloader AND configuration bits for the crystal you have if the hex file you want to use does not have them exported from mplab. Have you updated the firmware to v3 and bitstreams to v3.07?And if you did, do you still have problems connecting from the OLS client as you mentioned in the other thread?I did a test on a Win64 bit machine in realterm and after connecting, sending 0x02 (type it as that using the textbox from the Send tab and press send numbers) should return 1ALS if the OLS device was in normal mode.Regards,tkg Last Edit: January 01, 1970, 01:00:00 am by Guest
Re: Update mode is not activated Reply #5 – June 20, 2013, 08:39:37 am Thanks! I'm going to do some tests today and record a video. QuoteAnyway, the important part is to have the matching bootloader AND configuration bits for the crystal you have if the hex file you want to use does not have them exported from mplab.I believe I now have the correct bootloader because I was able to flash new firmware. OLSv1-bootloader-v2-16MHzBut what are the configuration bits ?Also could you check from Device Manager - communications port - driver details. What files it is using ? Mine is using:hhdspmc62.sysusbser.sys Last Edit: January 01, 1970, 01:00:00 am by Guest
Re: Update mode is not activated Reply #6 – June 20, 2013, 10:45:39 am Hi Knockerd,For my Win7 64bit pc, I only have usbser.sys. That is really what is needed as the OLS presents itself as a Serial CDC and widows already has drivers for it, but it still needs the proper OLS inf file to match the PID/VID.I have no idea what hhdspmc62.sys is (or more exactly from where) but it might be a filter driver that could end up filtering/blocking your communication. It might be part of your antivirus or maybe even part of a virus. I don't want to be alarmist but it is possible there is a good chance for it to be your main problem.The configuration bits are described in section 27.1 from http://ww1.microchip.com/downloads/en/D ... 39931d.pdfThe short story is that they describe how your PIC is configured and if they are not set up consistently you can also have problems from there, but again I still think your current problem is more software.Regards,tkg Last Edit: January 01, 1970, 01:00:00 am by Guest