Newbie help. PIC18F45k20 pickit debug express


Closed Thread
Results 1 to 20 of 20

Hybrid View

  1. #1
    Join Date
    Aug 2011
    Posts
    12


    Did you find this post helpful? Yes | No

    Default Re: Newbie help. PIC18F45k20 pickit debug express

    Quote Originally Posted by HenrikOlsson View Post
    Hi,

    Is it a demo version of 2.4, 2.5, 2.6, 3.0 or what? As long as it's not 3.0 editing the .inc file like I showed should work. In 3.0 Melabs have provided us with a better way to handle the CONFIG bits but lets not get into that if you're not using 3.0.

    /Henrik.
    Im using PBP3.0 the latest release.

    I still ween into the INC file for PIC18f45k20 and made the changes like you stated, however it still didn't work. I tryed some other PBP example codes that came with the installation files and those didn't work either so I feel like theres something else in the INC file that needs to be changed because as I said before, all the hex example codes that are for the pic18f45k20 debug kit work fine. Only the PBP example ones don't. I scanned over the datasheet last night to try and see if there was any other config bits that looked like they might need to be changed but alot of them are over my head right now and I don't really understand them. Got any other suggestions?

    Thanks
    I am microcontroller stupid!!

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default Re: Newbie help. PIC18F45k20 pickit debug express

    with PBP3 you no longer need to edit the .INC files. you need to use the new method stated in the migration document.(#CONFIG, #ENDCONFIG)

    http://www.pbp3.com/downloads/Migrat...0to%20PBP3.pdf
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    Join Date
    Aug 2011
    Posts
    12


    Did you find this post helpful? Yes | No

    Default Re: Newbie help. PIC18F45k20 pickit debug express

    Quote Originally Posted by mister_e View Post
    with PBP3 you no longer need to edit the .INC files. you need to use the new method stated in the migration document.(#CONFIG, #ENDCONFIG)

    What is the configuration block. Is that a insert of the program code?

    For example

    ;***************header

    #CONFIG
    __config _XT_OSC & _WDT_ON & _LVP_OFF & _CP_OFF
    #ENDCONFIG

    Main:

    bla bla bla bla bla

    Goto Main
    End

    ????
    I am microcontroller stupid!!

  4. #4
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default Re: Newbie help. PIC18F45k20 pickit debug express

    Yes, that's how you do it, as long as it's indented. Looks like the forum takes out the formatting.... so you probably had it perfect to begin with...
    Code:
    #CONFIG
        __config _XT_OSC & _WDT_ON & _LVP_OFF & _CP_OFF
    #ENDCONFIG
    But the rest is perfect!

    Except the 45K20 will want it in this format:
    Code:
    #CONFIG
            __CONFIG    _CONFIG1H, _FOSC_HS_1H & _FCMEN_OFF_1H & _IESO_OFF_1H
            __CONFIG    _CONFIG2H, _WDTEN_ON_2H & _WDTPS_512_2H
            __CONFIG    _CONFIG3H, _CCP2MX_PORTC_3H & _PBADEN_OFF_3H & _LPT1OSC_OFF_3H & _HFOFST_ON_3H & _MCLRE_ON_3H
            __CONFIG    _CONFIG4L, _STVREN_ON_4L & _LVP_OFF_4L & _XINST_OFF_4L
    #ENDCONFIG
    Last edited by ScaleRobotics; - 10th August 2011 at 00:11.

  5. #5
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default Re: Newbie help. PIC18F45k20 pickit debug express

    OR anything else list in the p18F45k20.inc file with the new CONFIG directive
    Code:
    #CONFIG
    CONFIG FOSC = INTIO7, FCMEN = OFF, IESO = OFF, PWRT = OFF, BOREN = OFF CONFIG BORV = 18, WDTEN = OFF, WDTPS = 1, MCLRE = ON, HFOFST = ON CONFIG LPT1OSC = OFF, PBADEN = OFF, CCP2MX = PORTC, STVREN = OFF CONFIG LVP = OFF, XINST = OFF, CP0 = OFF, CP1 = OFF, CP2 = OFF CONFIG CP3 = OFF, CPB = OFF, CPD = OFF, WRT0 = OFF, WRT1 = OFF CONFIG WRT2 = OFF, WRT3 = OFF, WRTB = OFF, WRTC = OFF, WRTD = OFF CONFIG EBTR0 = OFF, EBTR1 = OFF, EBTR2 = OFF, EBTR3 = OFF CONFIG EBTRB = OFF
    #ENDCONFIG
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  6. #6
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default Re: Newbie help. PIC18F45k20 pickit debug express

    All config are now also available in
    C:\PBP3\DEVICE_REFERENCE
    for each device, you have a .INFO file

    Slick!

    Well, Section 4.9 of the manual will explain...
    Last edited by mister_e; - 10th August 2011 at 01:55.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  7. #7
    Join Date
    Aug 2011
    Posts
    12


    Did you find this post helpful? Yes | No

    Default Re: Newbie help. PIC18F45k20 pickit debug express

    Just wanted to think you guys for your help. I never did get it to work, however I think I have decided to not purchase the PBP3. My trial is about to expire anyway.

    The main reason for not purchasing it is due to the price. I also just learned that the PBP3 gold edition is the only one that will support my pic18f45k20 debug kit and I feel like the gold edition is really more then I need. I think the product is outstanding though, but for a hobbiest, its more then I want to spend. I have some other hobbys that I need to use the money for. I have decided to try and find another solution.

    Im sure I can take what Iv learned here and apply it.
    Thanks again
    I am microcontroller stupid!!

Members who have read this thread : 0

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