ICD2 error
Attila Sass
attila.sass at palettainvent.hu
Fri Mar 10 14:48:50 CET 2006
> Már jópár éve nézegetem ezt a hibajelzést, de ettől
> függetlenül rendesen
> működik a programozás:
>
> ICDWarn0033: MPLAB ICD 2 does not support programming this
> device if both
> the internal oscillator and internal MCLR are selected. You
> may continue
> programming, but you are encouraged to cancel, reconfigure
> your device, and
> try again.
>
> Tudja valaki, miért írja ki ezt?
>
A help ezt írja:
ICDWarn0033: You have selected Internal MCLR and Internal Oscillator in
your configuration settings. If your code makes use of port pins that
correspond to Clock and Data pins in programming mode, you may not be
able to reprogram your device. See on-line help for this warning for
more information. (OK/Cancel)
When Internal MCLR is used with MPLAB ICD 2 for programming, both Vpp
and Vdd are powered together, and then Vpp is pulled high to Vihh to
enter programming mode. This means that your code will be running before
Vpp goes to Vihh. If that code makes use of port pins that correspond to
Clock and Data pins in programming mode, there is a chance their values
may not be 0, as necessary to enter programming mode. Therefore, the
device could not be reprogrammed.
Click OK to continue programming or click Cancel to cancel the
programming operation.
Work-Around
When External MCLR is used, this is not a problem, as Vpp can go
directly to Vihh. Also, if External Oscillator is used, the external
oscillator can be kept from running, thus keeping the code from running,
until Vpp is at Vihh.
Vagyis a programod rövid időre elindul a programozáskor, és ha ilyenkor
a program használja a programozáskor használatos clock/data pineket
(B6,7 szokott lenni), akkor nem lehet ICD-vel újraprogramozni az
eszközt, mert ha ezek nem 0-k, akkor nem megy programozási módba.
--
sassi
More information about the Elektro
mailing list