Skip to main content
Topic: Problems updating firmware. (Read 12492 times) previous topic - next topic

Re: Problems updating firmware.

Reply #15
I just received my OLS last week and I also seem to not have the bootloader installed.

-status returns:
Found PUMP HW: 1, FW: 0.1, Boot: 255

When I ordered they were backordered so I think that mine is part of the second batch that was shipped.

Re: Problems updating firmware.

Reply #16
Hi Dean - I'm sorry to see that. I don;t think the actual second batch of hardware has not started shipping yet, it will report FW 0.4 and has a 16MHz crystal in Q1.

If you have access to a PIC programmer or Bus Pirate you can program the bootloader yourself. If not, please PM me your address and I'll give you the nearest address of someone who can repair it for you.
Got a question? Please ask in the forum for the fastest answers.

Re: Problems updating firmware.

Reply #17
A rescue package and instructions for reprogramming the Logic Sniffer bootloader with a Bus Pirate are now posted here.

If you don't have access to a Bus Pirate or PIC programmer to replace your bootloader please contact me. I'll put you in touch with someone nearby who can reprogram the bootloader, or send a Bus Pirate, depending on your location.

I'm sorry about this bug, it really hit us by surprise. We're still not sure how it happened, or the extent of the problem. Hopefully it was a minor mistake that doesn't effect too many people.
Got a question? Please ask in the forum for the fastest answers.

Re: Problems updating firmware.

Reply #18
Hallo,

I have my OLS since May 2010 without Bootloader. But i cant flash the Bootloader with ICD2. I dont become connection to the PIC. What is with my OLS? The ICD2 is okay and I have upload the newest update to the ICD2. But the ICD2 can not find the PIC18F24J50. Who can help me??

sorry for my bad english..
Greatings Steffen

Re: Problems updating firmware.

Reply #19
Hi Steffen - Make sure that the USB cable is attached when you try to connect to the PIC, the ICD2 cannot provide the 3.3volt supply it needs. I'm not sure why else the PIC wouldn't be found, maybe a ICSP pin is swapped or the PIC is broken. Does the PIC work normally otherwise?
Got a question? Please ask in the forum for the fastest answers.

Re: Problems updating firmware.

Reply #20
Yes, normely the OLS and the PIC is working. My Friend say, that maybe programmed the secure Fuses? We have search for a failure but we dont some found. The device is every powerd by usb and i have 3.3V on the Power-Pins. I am end of my latinum..

Re: Problems updating firmware.

Reply #21
The security bits would prevent reading, but it should still be detected as a pic.

Connect both the ICD and the OLS to the USB. Also connect the GND, PGC, PGD and MCLR.

You could try to swap the PGC and PGD lines as Ian suggested.

BTW dutch?

Re: Problems updating firmware.

Reply #22
 IPenguin pokes Sjaak: I think he might be German ;)

Hmm, Steffen sounds like he knows how to use an ICD 2. ian uses an ICD 2 for development and programming and used it for OLS development.
The important thing is that the OLS must be connected to USB for power before selecting the ICD 2 as the programmer in MPLAB and he confirmed that the PIC18F24J50 still won't be found ... unless it's not an original Microchip ICD 2 ... some "ICD 2 clones" don't support/recognize the newer low-power PICs even when the newest firmware is loaded.

@Steffen if you are in Germany or The Netherlands you can send the OLS to ian or Sjaak (Netherlands) or me (Germany) and we can check an most likely fix it and ship it back the same day it arrives.

Re: Problems updating firmware.

Reply #23
 Sjaak slaps IPenguin with a trout!

I always though the clones were the same (they using the same schematic from microchip? )

Re: Problems updating firmware.

Reply #24
fish, jummy fish :)

There seem to be quite a few different "ICD 2" clones out there. The schematics look different, they use different bootloaders ... some are PIC18F876/877 based, others are 876A/877A based (the A version requiering a differnt bootloader) ... they use different designs to generate the 13V programming volatge (some use discrete while others use integrated voltage converters) ... some come with a RS232 interface while others use a FTDI FT232 serial/USB bridge then others use the PIC18F4550 (like in the 2nd version of the original ICD 2) or even the Cypress CY7C64613  (like in the first "original" ICD 2 version). They come in about any falvour you can imagine.

In the end most seem to cook down to slightly different flavours of one of the following 3 designs:

- Lothar Stolz's Few parts In-Circuit-Debugger for MPLAB-6 (either with RS232 Interface or with a FT232 USB-serial bridge)
- ICD2 Clone 1.4/2.1 and ICD2 Clone 3.4 (this link is referenced on many sites for the modified 876A/877A bootloader)
- potyo's ICD2 - Project to replace CY7C64613 in the ICD2 which is summarized on potyo's Hungarian site/board

So all seem to have no problems with firmware updates via MPLAB and will program older PICs that require 13V programming voltage well, some seem to have issues to recognise and program new low-volatge devices ...

Commercial ICD2 "clones" like the PIC16-MCD2 for example don't have such issues as their voltage conversion circuitry is in most cases a copy of the original Microchip design (supports for low voltage down to 2.0 volts) - they can be considered ICD 2 compatible clones.

Re: Problems updating firmware.

Reply #25
Ok didn't know that.

 Sjaak confesses he just bought an [s:]ICD3[/s:]Pickit3 clone (or is it clown?)

I'm trying to dive into the provided schematics. But it is to fuzzy (low res) to tell how the interfacing is. I don't have the programmer yet so I can't test it either. Will let you know.

Re: Problems updating firmware.

Reply #26
Sjaak inspired me to look at some "ICD2 clones" in more detail. There are some clones that draw 5V from the target board/system! It must be assumed that those operating with a PIC18F8x7(A) at 20MHz won't program 3.5V PIC targets because the ICD2 MCU won't work properly.

One example is the "elektor ICD2" - it has a RS232 interface only but needs no external power. It draws 5V from the target via the ICSP header and has 20MHz crystal.

Since most ICD2 clones use PIC16F876/7-4, PIC16F876/7-20 or a PIC16F876/7A MCUs with a 20 MHz oscillator those that draw power from the taget and have no external power supply won't work with the 3.5V provided by the OLS' ICSP interface (check voltage-frequency graph in the PIC16F87XA Datasheet p. 174 or the  PIC16F873/4/6/7 Datasheet p. 150 ff).

An ICD2 clone with a PIC16LF87X-04 at 4MHz should work, so.

Re: Problems updating firmware.

Reply #27
My first ICD2 was a DIY PiCs REV B:
http://www.icd2clone.com/wiki/Main_Page

It was limited to 5volt targets because it doesn't have any interface buffer at all (as I recall). About the time I tried to build an external buffer I just decided it would be better to buy a real ICD2 and spend my time hacking something else :)
Got a question? Please ask in the forum for the fastest answers.

Re: Problems updating firmware.

Reply #28
[quote author="IPenguin"]
Sjaak inspired me to look at some "ICD2 clones" in more detail. There are some clones that draw 5V from the target board/system! It must be assumed that those operating with a PIC18F8x7(A) at 20MHz won't program 3.5V PIC targets because the ICD2 MCU won't work properly.

One example is the "elektor ICD2" - it has a RS232 interface only but needs no external power. It draws 5V from the from the target via the ICSP header and has 20MHz crystal.

Since most ICD2 clones use PIC16F876/7-4, PIC16F876/7-20 or a PIC16F876/7A MCUs with a 20 MHz oscillator those that draw the power from the taget and have no external power supply won't work with the 3.5V provided by the OLS' ICSP interface (check voltage-frequency graph in the PIC16F87XA Datasheet p. 174 or the  PIC16F873/4/6/7 Datasheet p. 150 ff).

An ICD2 clone with a PIC16LF87X-04 at 4MHz should work, so.
[/quote]

Use an external +5 and a logic shifter would do the trick I guess? Sparkfun (and I guess many others) is selling logic shifter for a few bucks. However if you use it frequent the real deal is the best. For me the use will be occasional.

Hacking it till it works is hacking isn't? :S ;)

BTW I ordered a pickit3 instead of icd3. Dunno why i keep messing those two up :S it stil is a clone :D

Re: Problems updating firmware.

Reply #29
I have two orginal ICD 2 but both work with the OLS. Warn20: device ID = 0. I dont will destroy the OLS. Who or were can programm the bootloader in my OLS?