PDA

View Full Version : PROBLEM ICD 18F26K22 no work



FRAN200
- 1st July 2016, 13:05
Hello.

After creating the boot loader and model icd all right.
The boot loader works ok, but not the icd connects and error out of time.





;----[18F26K22 Hardware Configuration]------------------------------------------
#IF __PROCESSOR__ = "18F26K22"
#DEFINE MCU_FOUND 1
#CONFIG
config FOSC = HSHP ; HS oscillator (high power > 16 MHz)
config PLLCFG = OFF ; 4xPLL Disabled (direct oscillator)
config PRICLKEN = ON ; Primary clock Enabled
config FCMEN = OFF ; Fail-Safe Clock Disabled
config IESO = OFF ; Oscillator Switchover Disabled
config PWRTEN = ON ; Powerup Timer Enabled
config HFOFST = OFF ; HFINTOSC delayed until oscillator stable
config BOREN = ON ; Brown Out Detector Enabled
config BORV = 250 ; VBOR set to 2.50 V nominal
config WDTEN = ON ; WDT Enabled; SWDTEN bit has no effect
config WDTPS = 512 ; WDT = 1:512 = 2048 ms
config CCP2MX = PORTB3 ; CCP2 i/o is multiplexed with RB3 (not RC1)
config CCP3MX = PORTB5 ; P3A/CCP3 i/o is multiplexed with RB5 (not RC6)
config T3CMX = PORTB5 ; T3CKI is on RB5 (not RC0)
config P2BMX = PORTC0 ; ECCP2 P2B is on RC0 (not RB5)
config PBADEN = OFF ; PORTB<5:0> pins configured as digital i/o (not analog)
config MCLRE = INTMCLR
config STVREN = ON ; Stack Overflow Reset Enabled
config XINST = OFF ; Extended Instructions Disabled
config LVP = OFF ; Low-Voltage-Programming Disabled
config CP0 = OFF ;Code Protect 00800-03FFF
config CP1 = OFF ;Code Protect 04000-07FFF
config CP2 = OFF ;Code Protect 08000-0BFFF
config CP3 = OFF ;Code Protect 0C000-0FFFF
config CPB = OFF ;Code Protect Boot
config CPD = OFF ;Data EE Read Protect
config WRT0 = OFF ;Table Write Protect 00800-03FFF
config WRT1 = OFF ;Table Write Protect 04000-07FFF
config WRT2 = OFF ;Table Write Protect 08000-0BFFF
config WRT3 = OFF ;Table Write Protect 0C000-0FFFF
config WRTC = OFF ;Config. Write Protect
config WRTB = OFF ;Table Write Protect Boot
config WRTD = OFF ;Data EE Write Protect
config EBTR0 = OFF ;Table Read Protect 00800-03FFF
config EBTR1 = OFF ;Table Read Protect 04000-07FFF
config EBTR2 = OFF ;Table Read Protect 08000-0BFFF
config EBTR3 = OFF ;Table Read Protect 0C000-0FFFF
config EBTRB = OFF ;Table Read Protect Boot
#ENDCONFIG


#ENDIF


;----[Verify Configs have been specified for Selected Processor]----------------
; Note: Only include this routine once, after all #CONFIG blocks
#IFNDEF MCU_FOUND
#ERROR "No CONFIGs found for [" + __PROCESSOR__ +"]"
#ENDIF








'DEFINES-----------------------------------------------------------------
DEFINE OSC 20
DEFINE LOADER_USED 1






ADCON0.0 = 0 'Disable ADC
ANSELA = 0
ANSELB = 0
ANSELC = 0
CM1CON0.7 = 0 'Disable comparator1
CM2CON0.7 = 0 'Disable comparator2


TRISA=%00100000
TRISB=%10000000
TRISC=%10011111

A VAR BYTE




ENLOOP:

A=0


GOTO ENLOOP
END




Someone tried icd this micro?


Any ideas?


a greeting
And thanks
Fran

FRAN200
- 1st July 2016, 17:41
As information, the hardware is correct.
I used a 16F876 and boot loader and icd work ok.

Regards
Fran

FRAN200
- 1st July 2016, 18:05
As information, the hardware is correct.
I used a 16F876 and boot loader and icd work ok.

Regards
Fran

Dave
- 1st July 2016, 19:23
Fran, are you saying the ICSP connection does not work or the Boot loader does not work or the ICD (In Circuit Debugger?

FRAN200
- 1st July 2016, 23:03
the boot loader is ok icd debug no work. hardware is ok.

I've used it with no problems 16F876.

After compiling with the icd and transfer the program to the boot loader. I give to run and says "connecting wait." and then message out of time. with the 16F876 when you give to run debug a message for you reboot the microprocessor but with the 18f .. nothing comes out.


Thanks for the help

FRAN200
- 1st July 2016, 23:09
the boot loader is ok icd debug no work. hardware is ok.

I've used it with no problems 16F876.

After compiling with the icd and transfer the program to the boot loader. I give to run and says "connecting wait." and then message out of time. with the 16F876 when you give to run debug a message for you reboot the microprocessor but with the 18f .. nothing comes out.


Thanks for the help

FRAN200
- 2nd July 2016, 17:01
hardware is ok.
I've used it with no problems 16F876.
when you give to run debug a message for you reboot the microprocessor
but with the 18f .. nothing comes out.
After compiling with the icd and transfer the program to the boot loader.
I give to run and says "connecting wait." and then message out of time.
with the 16F876 when you give to run debug a message for you reboot
the microprocessor but with the 18f... no
with 16f876 work good the boot loader is ok icd debug no work.

FRAN200
- 4th July 2016, 12:55
I downloaded settings http://www.mecanique-web.co.uk/downl.../build-config/
to create the boot loader pic and create the model builder icd.

The boot loader record the pic, but when I run the icd to always get error out of time.

I recorded the hex with a programmer directly without going through the boot and then the icd if it works.

but if I record with the boot loader will not start the icd.