Searching \ for '[PIC] My Blink a led program will not be loaded by' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/displays.htm?key=led
Search entire site for: 'My Blink a led program will not be loaded by'.

Exact match. Not showing close matches.
PICList Thread
'[PIC] My Blink a led program will not be loaded by'
2007\01\20@084857 by Schintz.Schotman

flavicon
face
Hello,

I am trying to test my new wisp628 programmer and first (breadboarded)
'design', but the program will not get loaded.

Purpose: try to load and run blink a led program in PIC 16f877a
Hardware: laptop, USB-Serial converter, wisp628 programmer (new,  assembled
from kit, never tested before), breadboard with PIC 16f877a  (new, first
trial)
Software: Windows XP (cmd.exe window), Xwisp2w, b877-2.hex


LoG from Xwisp2:

xwisp2 version 1.9.2 for Windows   /   Sat Jan 20 13:35:24 2007

Commandline:
  K:\XWisp2\EXECUT~1\XWISP2~1\xwisp2w.exe port 5 verbose log abc target
16f877a beep go b877-2

    time    event
----------+--------------------------------
   +0.651 | WbusHello echotest failure: sent 'a' received: '',  unexpected.
   +0.881 | {break}
   +0.891 | WbusHello()
   +1.132 | WbusType(Wisp628)
   +1.242 | WbusVersion(1.09)
   +1.252 | WbusPassThrough(0044)
   +1.352 | WbusProgram(004f)
   +1.362 | WbusJump(00400c)
   +1.412 | WbusRead(00400c : 0000)
   +1.422 | WbusProgram(003f)
   +1.462 | WbusJump(3ffffe)
   +1.512 | WbusRead(3ffffe : FF)
   +1.542 | WbusRead(3fffff : FF)
   +1.562 | WbusProgram(002e)
   +1.602 | WbusProgram(002c)
   +1.622 | WbusWrite(000000 : 2804)
   +1.643 | WbusIncrement()
   +1.653 | WbusIncrement()
   +1.673 | WbusIncrement()
   +1.683 | WbusIncrement()
   +1.703 | WbusWrite(000008 : 30ff)
   +1.723 | WbusWrite failure, rc 21

In DOS Window:


xwisp2 version 1.9.2 for Windows <Dec 04 2006, Open Watcom C 1.50>
Reading file 'b877-2'
File b877-2.hex loaded and is Intel Hex format conforming
Total of program and data memory: 204 bytes
Initializing serial port: COM5
Portspeed min: 50, max 115200, cur 1200
Portspeeds new: 19200
DTR On, RTS Off
DTR Off, RTS Off
Programmer not active, trying to activate
Portspeed min: 50, max 115200, cur 19200
Detected programmer: Wisp628, firmware version 1.09
Switching communications speed from 19200 to 115200 bps
Portspeed min: 50, max115200, cur 19200
Portspeeds new: 115200
Trying 14 bits core family (provisional target 12F629)
Detected target deviceID: FFFF
Trying 16 bits core family (provisional target 18F1220)
Detected target deviceID: 0000
Target not auto-detected, using specified target: 16F877a
Programming algorithm 2 (PIC16B)
Target erased
Transferring program to 16F877A via Wisp628
Transferring program memory...Wbus command failure
Write-Verify operation failed after 0.17 seconds, rc21!
Portspeed min: 50, max 115200, cur 115200
Portspeeds new: 1200
DTR Off, RTS Off
xwisp2 failed after 2.72 seconds, rc 21!



Other findings:

Led stays OFF
Tx and Rx leds in Usb to serial converter both flash
MCLR rises to 12.5 Volt and stays 12.5 V



I did check all wiring a hundred times now. Can anybody  help me further?

Thanks Jos

2007\01\20@091716 by Wouter van Ooijen

face picon face
> I am trying to test my new wisp628 programmer and first (breadboarded)
> 'design', but the program will not get loaded.

the programmer does not 'see' the target chip. obvious possible problems
are:
- too much load on the /MCLR (what is the voltage on this line after a
programming attempt?)
- bad connections and/or too mmuch load on RB6 and RB7
- LVP (white wire) not connect and/or high
- bad ground connection
- 5V is too low or not sufficiently decoupled

Wouter van Ooijen

-- -------------------------------------------
Van Ooijen Technische Informatica: http://www.voti.nl
consultancy, development, PICmicro products
docent Hogeschool van Utrecht: http://www.voti.nl/hvu


2007\01\20@092800 by Jan-Erik Söderholm

face picon face
5V ??

Jan-Erik.

2007\01\20@104712 by Schintz.Schotman

flavicon
face
Thanks for your quick reply,

Unfortunately these suggestions are not the solution yet.
- MCLR has only 33k resistor to +5V as in your blink-a-led circuit. During
the first attempt it gets 12.5 V and stays 12.5 V until removal of the main
+5 V supply

- RB6 and RB7 are only connected with the blue and green wires of the
programmer. Measuring the resistance between the programmer and the PIC pins
doesn't show any abnormalities.

- the white LVP wire is connected to pin 36 and stays low

- measuring resistance between all pins used and the parts connected to
shows nothing abnormal so connections in the breadboard seems to be OK

- +5 V supply is 4.96 V. even rebuilding the supply with several other power
transformers did not help. Several capacitors are added: 0.10, 0.15, 400
microF.

Any other suggestions?

Thanks Jos

2007\01\20@115053 by Wouter van Ooijen

face picon face
> Any other suggestions?

Measure the resistance between the target PIC pins and the corresponding
PIC pins in the progger. This should identify all kinds of bad contacts
(and exchanged wire colors).

Take a good look at the solder side of the PCB, compare it to the
picture at the back of the card in the kit, check carefully for solder
bridges.


If everything else fails, send it to me.

Wouter van Ooijen

-- -------------------------------------------
Van Ooijen Technische Informatica: http://www.voti.nl
consultancy, development, PICmicro products
docent Hogeschool van Utrecht: http://www.voti.nl/hvu


2007\01\20@120033 by Tsu Do Nimh

picon face
On 1/20/07, Schintz.Schotman <spam_OUTSchintz.SchotmanTakeThisOuTspamhccnet.nl> wrote:

> Hardware: laptop, USB-Serial converter, wisp628 programmer (new,  assembled
                            ^^^^^^^^^^^^^^^^^^^^^^^^

I was bad, and bought a Belkin usb-serial before finding out it didn't
faithfully reproduce rs232, and was useless for anything other than
PDA syncs with their driver.

Tsu
--
There's no .sig like the present

2007\01\20@123614 by Schintz.Schotman

flavicon
face
You were right!! There was a bad soldering connection indeed. Finally I
found it and everything is working now.

Thanks

Jos


2007\01\20@124915 by Wouter van Ooijen

face picon face
> > Hardware: laptop, USB-Serial converter, wisp628 programmer
> (new,  assembled
>                              ^^^^^^^^^^^^^^^^^^^^^^^^
> I was bad, and bought a Belkin usb-serial before finding out it didn't
> faithfully reproduce rs232, and was useless for anything other than
> PDA syncs with their driver.

I am not sure what you mean by 'faithfully'. Anyway, I have yet to see
an USB-serial converter that does *not* work with a Wisp628.

Wouter van Ooijen

-- -------------------------------------------
Van Ooijen Technische Informatica: http://www.voti.nl
consultancy, development, PICmicro products
docent Hogeschool van Utrecht: http://www.voti.nl/hvu


2007\01\20@131233 by Vasile Surducan

face picon face
On 1/20/07, Tsu Do Nimh <.....tsudonimhKILLspamspam@spam@gmail.com> wrote:
> On 1/20/07, Schintz.Schotman <Schintz.SchotmanspamKILLspamhccnet.nl> wrote:
>
> > Hardware: laptop, USB-Serial converter, wisp628 programmer (new,  assembled
>                             ^^^^^^^^^^^^^^^^^^^^^^^^
>
> I was bad, and bought a Belkin usb-serial before finding out it didn't
> faithfully reproduce rs232, and was useless for anything other than
> PDA syncs with their driver.

Belkin USB/serial adapter is a bull(sh_t) with a microcontroller inside.
Is good for nothing (I have one too).
Vasile

More... (looser matching)
- Last day of these posts
- In 2007 , 2008 only
- Today
- New search...