PROBLEM ICD 18F26K22 no work


Closed Thread
Results 1 to 8 of 8
  1. #1
    Join Date
    Jul 2016
    Posts
    7

    Default PROBLEM ICD 18F26K22 no work

    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

  2. #2
    Join Date
    Jul 2016
    Posts
    7


    Did you find this post helpful? Yes | No

    Default Re: PROBLEM ICD 18F26K22 no work

    As information, the hardware is correct.
    I used a 16F876 and boot loader and icd work ok.

    Regards
    Fran

  3. #3
    Join Date
    Jul 2016
    Posts
    7


    Did you find this post helpful? Yes | No

    Default Re: PROBLEM ICD 18F26K22 no work

    As information, the hardware is correct.
    I used a 16F876 and boot loader and icd work ok.

    Regards
    Fran

  4. #4
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default Re: PROBLEM ICD 18F26K22 no work

    Fran, are you saying the ICSP connection does not work or the Boot loader does not work or the ICD (In Circuit Debugger?
    Dave Purola,
    N8NTA
    EN82fn

  5. #5
    Join Date
    Jul 2016
    Posts
    7


    Did you find this post helpful? Yes | No

    Default Re: PROBLEM ICD 18F26K22 no work

    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

  6. #6
    Join Date
    Jul 2016
    Posts
    7


    Did you find this post helpful? Yes | No

    Default Re: PROBLEM ICD 18F26K22 no work

    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

  7. #7
    Join Date
    Jul 2016
    Posts
    7


    Did you find this post helpful? Yes | No

    Default Re: PROBLEM ICD 18F26K22 no work

    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.

  8. #8
    Join Date
    Jul 2016
    Posts
    7


    Did you find this post helpful? Yes | No

    Default Re: PROBLEM ICD 18F26K22 no work

    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.

Similar Threads

  1. Microcode Studio ICD serial comms problem
    By spreader in forum Serial
    Replies: 3
    Last Post: - 13th March 2009, 07:08
  2. MCSP ICD does not work
    By ardhuru in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 19th May 2008, 22:15
  3. Problem setting ICD comipiler to LPT port
    By freddayz in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 14th February 2008, 10:59
  4. ICD problem
    By JoeK in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 6th August 2007, 01:51
  5. How to set ICD-2 clone to work with PBP?
    By G-R-C in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 20th October 2006, 03:50

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts