Invalid calibration data

Software e Hardware para uC PIC

Moderadores: andre_luis, 51, guest2003, Renie

Invalid calibration data

Mensagempor elton de souza » 17 Set 2010 10:31

Senhores,

Tenho um programa que utiliza o device PIC16F506 com OSC interno...

Enfim, ao tentar programar este device fazendo uso do ICD3, tal problema ocorre: "ICD3Err0085: The target has invalid calibration data (8e9)."

Com o ICD2 tal erro também é demonstrado (o texto é diferente, mas o erro é o mesmo!).

Já fiz atualizei ('n' vezes) o firmware do ICD2 e ICD3!!!

Sei que posso determinar o valor "calibration data" via MPLAB, mas estou enfrentando problemas de funcionamento em uma versão de firmware já anteriormente validada!

Alguém tem uma luz?

Abraço


Apenas para ilustrar. Estas são as mensagens que aparecem no ICD2:

Connecting to MPLAB ICD 2
...Connected
Setting Vdd source to MPLAB ICD 2
ICDWarn0044: Target has an invalid calibration memory value (0x0). Continue?
...Reading ICD Product ID
Running ICD Self Test
...Passed
MPLAB ICD 2 ready for next operation
Programming Target...
ICDWarn0052: MPLAB ICD 2 cannot validate a target device. Please make sure that the target device is connected and properly powered. Select "OK" to continue, or "CANCEL" to abort the operation
ICD0200: Operation Aborted (Warning 52).
ICD0275: Programming failed.
MPLAB ICD 2 ready for next operation
elton de souza
Nibble
 
Mensagens: 58
Registrado em: 16 Out 2006 08:48
Localização: Florianópolis - SC

Mensagempor Djalma Toledo Rodrigues » 20 Set 2010 14:27

1. Module: Invalid FSR Power-up
Initialization on PIC16F506 ICD
Devices
When using the ICD to debug software with the
PIC16F506, bits 5 and 6 in the FSR register must
be cleared to ‘0’.
The power-up defaults are 1’s
which causes the device to attempt to access bank
3. This bank is not available on the PIC16F506
devices so the results are invalid.

The power-up defaults are correct on the non-ICD
version of the PIC16F506.
Work around:
Add the following two lines of code early in your
initialization.
BCF FSR,5
BCF FSR,6
This will have no affect on a non-ICD device, but
will correct the initialization errata on ICD devices.
The CONFIG data must be assigned in two
locations within the assembly code to ensure
proper Configuration Word placement in the hex
file. This is only required for MPLAB® IDE version
6.61 and earlier.

http://ww1.microchip.com/downloads/en/D ... 80270B.pdf

Verifique isso

DJ
Avatar do usuário
Djalma Toledo Rodrigues
Dword
 
Mensagens: 2334
Registrado em: 03 Ago 2008 13:22


Voltar para PIC

Quem está online

Usuários navegando neste fórum: Nenhum usuário registrado e 1 visitante

x