Searching \ for '[PIC]: Wisp628 write verification error' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: techref.massmind.org/techref/microchip/devprogs.htm?key=wisp
Search entire site for: 'Wisp628 write verification error'.

Exact match. Not showing close matches.
PICList Thread
'[PIC]: Wisp628 write verification error'
2003\05\20@143933 by John Nall

flavicon
face
The MPLAB package has a template routine (in c:\program files\mplab
ide\templates) by the name of F452TEMP.ASM.

When I assemble this all by itself, with no changes whatsoever, and then
use the Wisp628 programmer to program an 18F426 chip running at 10 MHZ
(ceramic resonator) then I consistently get the following error from xwisp:

  "IO Error: Verification failure.  Different data at 300007.  File=FF
Target=00"

Now, I can load Wouter's little LED program, compiled with JAL, into the
chip and it runs fine.  Which tells me that the Wisp628 is working and that
the PIC is working.  Therefore, there must be something about the Wisp628
and/or xwisp, and that template file.  But darned if I can figure what it
might be.  Anyone have any ideas?

(Someone is bound to wonder why I even want to assemble that template
program and load it?  Because my original program consists of more than
just that, but I have narrowed it down to just the template part
causing  the problem.  I think, :-)

John

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email spam_OUTlistservTakeThisOuTspammitvma.mit.edu with SET PICList DIGEST in the body

2003\05\20@145858 by

flavicon
face
I had problems with the config settings in the 18F252.
The thing is that Wisp628 programs the "right" config
settings, *but* when read back, some of the bits (unused)
in the config words are always read back as "1" (or "0",
can't remember). Now, this might be different from what
Wisp628 wrote to the chip and the verify fails.

The problem isn't with Wisp628 as such, but with the
definitions of the config words in the MPLAB include files.

I solved it by changing the include files. Wouter also said
that he could change the Xwisp software to mask this bits out
when doing the verify.

JAL uses it's own include files, and possibly has this
fixed already...

Would you like a copy of my _CONFIG settings from my
changed include files? (I *do* expect a *YES YES* :-) )

Jan-Erik.

John Nall wrote:
> The MPLAB package has a template routine (in c:\program files\mplab
> ide\templates) by the name of F452TEMP.ASM.
>
> When I assemble this all by itself, with no changes whatsoever, and then
> use the Wisp628 programmer to program an 18F426 chip running at 10 MHZ
> (ceramic resonator) then I consistently get the following error from xwisp:
>
>    "IO Error: Verification failure.  Different data at 300007.  File=FF
> Target=00"

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email .....listservKILLspamspam@spam@mitvma.mit.edu with SET PICList DIGEST in the body

2003\05\20@152533 by Wouter van Ooijen

face picon face
>    "IO Error: Verification failure.  Different data at
> 300007.  File=FF
> Target=00"

This something that I have fixed by not yet put on the xwisp page. What
happens is that the chip has some bits in the configuration word
hard-wired to 0 or 1 or whatever. When the value you specify differs the
programmer reads back and the compare fails. The solution is to ignore
those bits (or know what value they will have).

I think attachements on the list are not appreciated, so I have sent it
to the OP privately.

Wouter van Ooijen

-- -------------------------------------------
Van Ooijen Technische Informatica: http://www.voti.nl
consultancy, development, PICmicro products

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email listservspamKILLspammitvma.mit.edu with SET PICList DIGEST in the body

2003\05\20@160858 by erholm (QAC)

flavicon
face
Hi again.
Checked again, and it wasn't the include file I changed.
It was the config setting in the code itself. Here's an
example. Note that each config byte is AND'ed with a mask
to explicitly clear all unused bits.
Regards,
Jan-Erik.


processor      18f252
LIST           P=PIC18F252, b=4, n=45
#include       <p18f252.inc>

__CONFIG       _CONFIG1L, 0x00
__CONFIG       _CONFIG1H, 0x27 & _OSCS_OFF_1H & _HS_OSC_1H
__CONFIG       _CONFIG2L, 0x0F & _BOR_OFF_2L & _BORV_20_2L & _PWRT_OFF_2L
__CONFIG       _CONFIG2H, 0x0F & _WDT_OFF_2H & _WDTPS_128_2H
__CONFIG       _CONFIG3L, 0x00
__CONFIG       _CONFIG3H, 0x01 & _CCP2MX_ON_3H
__CONFIG       _CONFIG4L, 0x85 & _STVR_ON_4L & _LVP_OFF_4L & _DEBUG_OFF_4L
__CONFIG       _CONFIG4H, 0x00
__CONFIG       _CONFIG5L, 0x0F & _CP0_OFF_5L & _CP1_OFF_5L & _CP2_OFF_5L & _CP3_OFF_5L
__CONFIG       _CONFIG5H, 0xC0 & _CPB_OFF_5H & _CPD_OFF_5H
__CONFIG       _CONFIG6L, 0x0F & _WRT0_OFF_6L & _WRT1_OFF_6L & _WRT2_OFF_6L & _WRT3_OFF_6L
__CONFIG       _CONFIG6H, 0xE0 & _WRTC_OFF_6H & _WRTB_OFF_6H & _WRTD_OFF_6H
__CONFIG       _CONFIG7L, 0x0F & _EBTR0_OFF_7L & _EBTR1_OFF_7L & _EBTR2_OFF_7L & _EBTR3_OFF_7L
__CONFIG       _CONFIG7H, 0x40 & _EBTRB_OFF_7H

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email .....listservKILLspamspam.....mitvma.mit.edu with SET PICList DIGEST in the body

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