Stuck on first attempt using MPLAB X (PICkit4)


+ Reply to Thread
Results 1 to 40 of 40

Hybrid View

  1. #1
    Join Date
    Aug 2011
    Posts
    460


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

    Default Re: Stuck on first attempt using MPLAB X

    All of the "Transmission on endpoint 2 failed (err = -109)" messages typically indicate that the PK4 wasn't fully updated.

    There are three parts to the firmware inside the PK4, and whenever you change MPLABX versions it's important that all three sections get updated to match the version of MPLABX you're using. This applies to a PK4 right out of the box since there's a good chance it was built with a different set of firmware than the version you're trying to use (you'd think a brand new one would work, but no).

    This is supposed to happen automatically, but on all the PC's I've ever used it doesn't... each time you open MPLABX IPE it'll update one part and then hang. You have to let it timeout, close MPLABX, reopen it and it'll proceed to the next part. It takes about three or four whacks at this until it finally loads all the firmware and magically everything works. During this process I've seen MPLABX produce almost every conceivable bogus error message you can imagine.

    That's why you'll see a lot of posts about rebooting, unplugging the tool, closing/reopening etc. It doesn't always happen quite the same way, but for me it's been this way since day one with MPLABX and ANY of the programming tools. It's even worse if you have one of the older tools (PK2, PK3) and you switch back and forth between the old MPLAB 8.92 and MPLABX.

    It's a good idea to make sure the tool isn't connected to your target hardware while it does this dance, just the USB cable.

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


    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

    I updated my summary in post #1. Spaces in the folder/filename will most definitely cause problems.

    I wasn't sure cause I was trying more than one thing at a time. But I am now; it just back and bit me. The command window just flashes and it's gone.

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


    Did you find this post helpful? Yes | No

    Default Re: Stuck on first attempt using MPLAB X (PICkit4)

    Couldn't even find my own thread on how to get PK4 working with MCS+ ... D'OH!

    I can't stress enough the importance of NO SPACES IN FOLDERNAME AND FILENAME.

    Here's a pic of how to set the programmer for those that are visual (like me):

    Name:  PK4 settings.png
Views: 13305
Size:  46.9 KB
    Last edited by Demon; - 10th March 2025 at 21:35.
    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!

  4. #4
    Join Date
    Jan 2009
    Location
    Miami, Florida USA
    Posts
    704


    Did you find this post helpful? Yes | No

    Default Re: Stuck on first attempt using MPLAB X (PICkit4)

    Ooh, I didn't know I could setup MCS+ to open the PICkit4 software instead of the U2 Melabs programmer. I'll give it a try this week. Thanks a lot.
    "No one is completely worthless. They can always serve as a bad example."

    Anonymous

Similar Threads

  1. Replies: 19
    Last Post: - 16th May 2023, 18:06
  2. My serial to parallel attempt
    By johndoug in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 4th January 2013, 05: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, 02:15
  4. MPLAB Quickbuild stuck on
    By RichardBowser in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 9th July 2006, 03:52
  5. First attempt at coding
    By bartman in forum mel PIC BASIC
    Replies: 0
    Last Post: - 10th November 2004, 18:52

Members who have read this thread : 12

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