Announcement

Collapse
No announcement yet.

Invalid programmer port selected OR Unable to access any ports

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Invalid programmer port selected OR Unable to access any ports

    I had a copy of PBP3, MeLabs U2 and MCSPX on both my laptop and desktop PC. I spilt a cup of tea into the laptop keyboard but felt all was OK as I had backups. The laptop is beyond repair but backups of the active MCSPX files work on my desktop PC. I can compile but I cannot program anything with my U2 Programmer.

    MCSPX files compile just fine but when I try to program I get "Invalid programmer port selected".
    After enabling AUTO port selection the error message now changes to "Unable to access any ports".

    Can anyone suggest how to get around these problems?

    Thank you.
    Brian

  • #2
    You might try plugging the programmer into different USB ports on your computer.

    When you plug it in, does the LED turn-on GREEN?
    Do you hear the Ding-Dong from Windows?

    Try a different USB cable.
    And try using a powered USB HUB, or without the HUB if already using one.
    PBP3 Manual : Microchip Datasheets - 10F, 12F, 16F, 18F
    Never download a PIC datasheet from anywhere but microchip.com

    Comment


    • #3
      Still no go

      Hi Darrel, Thanks for jumping in so quickly.
      I get a 'dong ding' at plug-in and 'ding dong' when I remove the U2 programmer. The U2 LED glows green. The LED never goes red when I try to program and an error message 'unable to access any ports' appears.

      In the mean time I have resurrected an old laptop (WIN XP) which allows me to program the PIC10F222 chips but the screen is failing so I want to get back on my main PC ASAP.

      I suspect my WIN 7 computer needs a USB driver of some sort. I will try reloading the Melabs Programmer code again which will no doubt revert from paid to trial mode complete with the nag screen.

      Cheers
      Brian

      Originally posted by Darrel Taylor View Post
      You might try plugging the programmer into different USB ports on your computer.

      When you plug it in, does the LED turn-on GREEN?
      Do you hear the Ding-Dong from Windows?

      Try a different USB cable.
      And try using a powered USB HUB, or without the HUB if already using one.

      Comment


      • #4
        The U2 programmer uses the HID drivers built-in to Windows.
        There are no "Drivers" to install.

        To see if the HID drivers are installed, and the programmer itself is working ... you can run this program I wrote that will show any HID devices.
        http://www.pbpgroup.com/files/HIDmonitor.exe

        Click image for larger version

Name:	HIDmon_U2.jpg
Views:	1
Size:	88.1 KB
ID:	5233

        There is also an .OCX file that is supposed to be registered during the installation.
        It may have been blocked by Anti-Virus programs or user permissions.

        To register the .ocx, open a DOS window "AS ADMINSTRATOR".
        Navigate to the melabs programmer folder using CD, then run this command.

        regsvr32 HIDagentXControl1.ocx
        PBP3 Manual : Microchip Datasheets - 10F, 12F, 16F, 18F
        Never download a PIC datasheet from anywhere but microchip.com

        Comment


        • #5
          HID drivers

          I have two U2 programmers and both behave the same.

          I downloaded and ran your HID check program. I did not load the .ocx and the code runs so I guess I don't need it.

          The message shows six wireless desktop devices and the last entry is
          Vendor name microEngineering
          Product name melabs U2 Programmer
          Version $0500 = 1280
          Vendor ID $1846 = 6214
          Product ID $0002 = 2
          Serial number is blank
          In report length 64
          Out report length 64

          Does this look normal?

          Brian

          Comment


          • #6
            Darrel, I tried your application but it did not show all the USB connected devices on my laptop. I have currently: 2 FTDI TTL232 cables, a PICKit3, and MPLAB ICD2, also a USB mouse. All that shows up when running your app is the PICKit3 and the mouse. All devices showup when I run usbview.exe. I just thought you might like to know.

            Dave Purola,

            PS, I am running XP.
            Dave Purola,
            N8NTA
            EN82fn

            Comment


            • #7
              Dave,

              It's not supposed to show all your USB devices like serial dongles.
              It's an HID monitor (Human Interface Device). That's all it shows.
              The U2 programmers are HID devices.

              HIDmonitor does not require any .ocx or .dll files, so I like to use it to test if the programmers are working when other windows components are not.

              Brian,

              That's good! It shows your U2 programmer, so the HID drivers are loaded and the U2 is enumerating.

              The .OCX was not for the HID monitor.
              It's for the meProg programmer software.

              Since Windows can see the programmer, but meProg can't talk to the driver ...
              You should try to register the HIDagentXControl1.ocx file to see if that fixes your problem.

              Make sure meProg is closed when you register it.
              PBP3 Manual : Microchip Datasheets - 10F, 12F, 16F, 18F
              Never download a PIC datasheet from anywhere but microchip.com

              Comment


              • #8
                How to run HIDagentXControl1.ocx ?

                Hi Darrel,
                Have you an explicit way to run HIDagentxxx. When I click on it I get 'windows cannot open his file'

                thanks
                Brian

                Comment


                • #9
                  Hello Darrel,

                  I am running Win 7 Home Premium.

                  a/ I copied HIDagentXControl1.ocx to C: and then typed HIDagentXControl1.ocx into the START search box then pressed enter. I get HIDxx.ocx failed to load.

                  b/ At the prompt C:\ I typed regsvr32 HIDagentXControl1.ocx then pressed enter. I get HIDxxx.ocx was loaded but the call to DIIRegisterServer failed with error code 0x80004005.

                  It's beyond my WIN skills I am afraid.

                  Cheers
                  Brian

                  Comment


                  • #10
                    Open the Start menu and type CMD in the search box at the bottom, hold Shift + Ctrl and press Enter.
                    This will start a DOS window as Administrator.
                    Click Yes in the User Account Control window.

                    If your computer is a 64-bit system, type ...
                    CD "C:\Program Files (x86)\melabs Programmer"

                    For 32-bit computers use ...
                    CD "C:\Program Files\melabs Programmer"

                    Type the command ...
                    regsvr32 HIDagentXControl1.ocx

                    A small dialog should open showing that it succeeded.
                    It should look like this (my system is a 64-bit) ...

                    Click image for larger version

Name:	Reg_OCX.gif
Views:	1
Size:	32.0 KB
ID:	5234
                    PBP3 Manual : Microchip Datasheets - 10F, 12F, 16F, 18F
                    Never download a PIC datasheet from anywhere but microchip.com

                    Comment


                    • #11
                      regsvr32 HIDxxxx.ocx works but still getting unable to access any ports

                      Hi Darrel,
                      Thanks for the explicit help. I followed your instructions and got the dialog box just like you said. I am running a Dell Inspiron ONE all-in-one desktop which I think is also 64 bit.

                      I then tried to fire up melabs Programmer but still no joy. "unable to access any ports" is all I get.

                      Cheers
                      Brian

                      Comment


                      • #12
                        GOT IT! melabs Programmer and U2 now working - needed a reboot

                        Hi Darrel,
                        I tried to load the 32 bit instructions you gave - no go which confirmed to me tat my system is 64 bits. I then reloaded the 64 bit instructions which gave the correct dialog box but no working.
                        The maching has been up for a few days so I did a reboot.

                        Your instructions work after the reboot.

                        Thank you very much for your perseverence and help.
                        Brian Taylor

                        Comment


                        • #13
                          Awesome!

                          Thanks for the update, and the final step that I missed.
                          PBP3 Manual : Microchip Datasheets - 10F, 12F, 16F, 18F
                          Never download a PIC datasheet from anywhere but microchip.com

                          Comment


                          • #14
                            Return of "Unable to access any ports" problem

                            I have just started a new project and to my great surprise the "Unable to access any ports" messages are back. I have gone through all the steps outlined above, with and without reboots. I get the DLL successful message when I run regsvr32 HIDxxx but I cannot program PIC10F222 any more.

                            No doubt Microsoft have attempted to do me a favour and installed numerous 'important updates' in the last few weeks.

                            Does anyone have any idea where to start looking for this problem?

                            Cheers
                            BrianT

                            Comment


                            • #15
                              This may not help ... but it's worth a try.

                              In meProg, go to File > Port and uncheck Auto.
                              Go back into File > Port and select USB1.
                              PBP3 Manual : Microchip Datasheets - 10F, 12F, 16F, 18F
                              Never download a PIC datasheet from anywhere but microchip.com

                              Comment

                              Working...
                              X