Stuck on first attempt using MPLAB X (PICkit4)


+ Reply to Thread
Results 1 to 40 of 40

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,115


    Did you find this post helpful? Yes | No

    Default Re: Stuck on first attempt using MPLAB X

    Its free for you!

    Ioannis

  2. #2
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,154


    Did you find this post helpful? Yes | No

    Default Re: Stuck on first attempt using MPLAB X

    Quote Originally Posted by Ioannis View Post
    Its free for you!

    Ioannis
    Nope, $50. Or am I missing out on "special promotion to forum moderators"?

    https://store.melabs.com/cat/PBPUP.html
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

  3. #3
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,115


    Did you find this post helpful? Yes | No

    Default Re: Stuck on first attempt using MPLAB X

    Well, there is no moderator offer.

    Did you try to down load and install the later version and then auto activate it?

    I do not really remember when was my upgrade that I had to pay. Then on, I just updated the compiler and it auto activated.

    Ioannis

  4. #4
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,154


    Did you find this post helpful? Yes | No

    Default Re: Stuck on first attempt using MPLAB X

    I was missing a pull-up on MCLR, and my soldering job was dodgey. I made a new harness, looks much nicer.

    Still going nowhere in MCS+5; keep seeing HEX FILE MISSING before the command line window closes.


    Managed to program using MPLAB IPE, I just don't get any blinky action on my Lab X-1.

    Connecting to MPLAB PICkit 4

    Currently loaded versions:
    Application version...........00.08.54
    Boot version..................01.00.00
    Script version................00.05.35
    Script build number...........86fedc5c2e
    Tool pack version ............1.13.1519
    PICkit 4 is supplying power to the target (5.00 volts).
    Target device PIC16F877 found.
    Device Revision Id = 0x6
    Device Id = 0x9a0
    2023-04-04 19:42:56 -0400 - Programming...
    ************************************************** ***
    Calculating memory ranges for operation...

    Erasing...

    The following memory area(s) will be programmed:
    program memory: start address = 0x0, end address = 0x39
    configuration memory

    Programming/Verify complete
    2023-04-04 19:42:59 -0400 - Programming complete
    *** Release From Reset mode is enabled ***
    I'm gonna set up a breadboard, got a feeling something is wonky on my Lab-X1 (either OSC setting, jumpers, or that programmer header.

  5. #5
    Join Date
    Aug 2011
    Posts
    453


    1 out of 1 members found this post helpful. Did you find this post helpful? Yes | No

    Default Re: Stuck on first attempt using MPLAB X

    Get rid of the config DEBUG_ON.
    If you ever get to the point of hdw debugging that will be managed by the tool for you.

    Also, when you were creating the IDE custom programmer entry, once you get to the step of setting the parameters there is no "Next" step... just "Finish"

  6. #6
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,154


    Did you find this post helpful? Yes | No

    Default Re: Stuck on first attempt using MPLAB X

    Quote Originally Posted by tumbleweed View Post
    Get rid of the config DEBUG_ON.
    If you ever get to the point of hdw debugging that will be managed by the tool for you.

    Also, when you were creating the IDE custom programmer entry, once you get to the step of setting the parameters there is no "Next" step... just "Finish"

    Thanks, had already turned it off. Waiting for a reply from MeLabs forum to get the custom programmer working in MCS+5.


    Kept playing with the Lab X-1 and MPLAB IPE, played with OSC, added PORT, used bits like I did in one of my programs; now the proper LED comes on, but no blinking on the Lab X-1.

    Code:
    #CONFIG
        __config _HS_OSC & _WDT_OFF & _WRT_OFF & _BODEN_ON & _LVP_OFF  & _CPD_OFF & _PWRTE_OFF & _DEBUG_OFF
    #ENDCONFIG
    
    DEFINE  OSC     20
    
    ADCON1 = 7              ' A/D off, all digital
    
    PORTD = %00000000
    TRISD = %00000000
    
    START:  PORTD = %00000001
            PAUSE   500      
            PORTD = %00000000
            GOTO    START
    
    Finish: end
    Tried using another PIC just in case, no difference.

    But get this, I copied an old example of writing to the LCD and that worked, a bit wonky, but I can't get a solitary LED to blink.

  7. #7
    Join Date
    May 2013
    Location
    australia
    Posts
    2,631


    1 out of 1 members found this post helpful. Did you find this post helpful? Yes | No

    Default Re: Stuck on first attempt using MPLAB X

    You won't see a 1uS blink
    Code:
    START:  PORTD = 000001       
            PAUSE   500      
            PORTD = 000000
            GOTO    START
    you probably meant

    Code:
    START:  PORTD = 000001
            PAUSE   500      
            PORTD = 000000
            PAUSE   500  
            GOTO    START
    Warning I'm not a teacher

Similar Threads

  1. Replies: 19
    Last Post: - 16th May 2023, 17:06
  2. My serial to parallel attempt
    By johndoug in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 4th January 2013, 04:15
  3. Upgraded to MPLAB IDE 8.14 and now I'm stuck
    By BlueHairBob in forum General
    Replies: 2
    Last Post: - 20th August 2008, 01:15
  4. MPLAB Quickbuild stuck on
    By RichardBowser in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 9th July 2006, 02:52
  5. First attempt at coding
    By bartman in forum mel PIC BASIC
    Replies: 0
    Last Post: - 10th November 2004, 17:52

Members who have read this thread : 10

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