• AVR Freaks

Hot!PIC16F15244 Programming

Author
Cary
Starting Member
  • Total Posts : 21
  • Reward points : 0
  • Joined: 2021/01/19 12:17:11
  • Location: 0
  • Status: offline
2021/01/19 20:43:55 (permalink)
0

PIC16F15244 Programming

I am a new to PIC uControllers and trying to program a PIC16F244 to blink the onboard LED.  I wrote some basic code based on a utube video that was clean for the "MISRA check" and "Build", but when I try to program the device, I don't see the device as an option to program.  I get a pop up window shown in the attachment. I can click on a box to the right that says "show all" but none of these seem to work.  
 
I am wondering if my PC even recognizes the PIC16F2444 board.  I don't see it identified but it is plugged into a PC USB port. I have tried unplugging it and restarting numerous times. 

Attached Image(s)

#1

12 Replies Related Threads

    Aussie Susan
    Super Member
    • Total Posts : 3827
    • Reward points : 0
    • Joined: 2008/08/18 22:20:40
    • Location: Melbourne, Australia
    • Status: offline
    Re: PIC16F15244 Programming 2021/01/20 18:51:27 (permalink)
    0 (2)
    There is a lot more information required:
    - what is the IDE you are using
    - how are you connecting the chip to the IDE
    - you talk about the PIC16F15244 chip but also the 'PIC16F2444 board' - assuming the 'PIC16F2444' is a typo, is the chip mounted on a development board or your own PCB or what
    Susan
    #2
    Cary
    Starting Member
    • Total Posts : 21
    • Reward points : 0
    • Joined: 2021/01/19 12:17:11
    • Location: 0
    • Status: offline
    Re: PIC16F15244 Programming 2021/01/20 22:44:40 (permalink)
    0
    Thank you for following up - the advice is appreciated.  Here are the answers to your questions:
     
    - IDE: MPLAB X IDE v5.45
    - The PIC16F15244 (yes, 2444 was a typo) is mounted on a development board.  It's this Curiosity Nano board:
     
    https://ww1.microchip.com/downloads/en/DeviceDoc/PIC16F15244-Curiosity-Nano-Hardware-User-Guide-DS50003045A.pdf
     
    This board has an on-board debugger, so it does not use PICKIT 3/4.  It plugs directly into the PC USB2.0 port via a USB cable connected to the microUSB connector.  Pls see section 2.1.2 in the above link to confirm.
     
    It should be straight forward, but simply is not connecting.  When I plug it into the USB cable, the "On-Board Debugger LED" (section 3.1 in link above) immediately turns solid green and does not change even when I try the "Make and Program Device Main Project" button in MPLAB X IDE.  In section 3.1, it says the LED should blink when programming but it always stays solid green when plugged in.
     
    The board does not seem to be found by MPLAB X IDE.  I think the green LED is ON simply because the USB port applies power to peripherals.  Is there some sort of driver that I need to install or process to make MPLAB X IDE recognize that the board is connected to the PC?
    #3
    Howard Long
    Super Member
    • Total Posts : 887
    • Reward points : 0
    • Joined: 2005/04/04 08:50:32
    • Status: offline
    Re: PIC16F15244 Programming 2021/01/21 03:15:43 (permalink)
    +2 (2)
    Can you confirm that it's not in the list at all? i.e., is it grayed out?
     
    If it is grayed out, there is a "feature" of MPLAB X 5.40 and 5.45 where some kits aren't recognised as functional with certain devices, they show up grayed out.
     
    Tools => Options => Embedded tab => Generic Settings sub tab => Exclude device checks for kits (2nd from bottom on mine) => Check
     
    If it doesn't appear at all, does it show up in Device Manager?
    post edited by Howard Long - 2021/01/21 03:17:00

    Attached Image(s)

    #4
    Cary
    Starting Member
    • Total Posts : 21
    • Reward points : 0
    • Joined: 2021/01/19 12:17:11
    • Location: 0
    • Status: offline
    Re: PIC16F15244 Programming 2021/01/21 09:16:00 (permalink)
    +1 (1)
    Thanks for the feedback. 
     
    It is not showing up at all in the list.  Under the "Tool not Found" menu from my original post, there is an option to select "Show All".  When I select this, there is nothing relevant greyed out, and it has a couple of seemingly relevant items that are not greyed out (see attached image):
         - Curiosity/Starter Kits (PKOB4)
         - PKOB nano
    However, selecting either of these options does not do anything different (solid green LED stays constant).
     
    I checked the Windows "Device Manager" also.  Reading online showed it should be listed under "Other Devices".  There was nothing relevant under that category (see second attached image) or any other category (not shown in the image).  I tried plugging and unplugging the device to see if it appears - no change.  I have also rebooted my computer earlier to try to make this device be recognized.
     

    Attached Image(s)

    #5
    Cary
    Starting Member
    • Total Posts : 21
    • Reward points : 0
    • Joined: 2021/01/19 12:17:11
    • Location: 0
    • Status: offline
    Re: PIC16F15244 Programming 2021/01/21 09:33:21 (permalink)
    0
    I rechecked the Windows "Device Manager" again.  Under "Universal Serial Bus controllers", there is an "Unknown USB Device (Device Descriptor Request Failed)".  
     
    Is this the device?  Four images from the Windows "Device Manager" are attached with more information.  The date of the events associated with this device look relevant.

    Attached Image(s)

    #6
    Howard Long
    Super Member
    • Total Posts : 887
    • Reward points : 0
    • Joined: 2005/04/04 08:50:32
    • Status: offline
    Re: PIC16F15244 Programming 2021/01/21 10:38:48 (permalink)
    +1 (1)
    Presumably the port works fine with other devices?
     
    Always worth trying a different port.
     
    Long shot: I had very similar symptoms with a PICkit 4 where there was an intermittent short underneath its micro USB receptacle. It worked with some cables but not others. I removed the receptacle and placed a small piece of shaped Kapton tape on the board underneath the receptacle, and soldered the receptacle back on.
     
    If you can, it might be worth checking continuity and shorts on the USB receptacle with the cable inserted and removed.
    #7
    Cary
    Starting Member
    • Total Posts : 21
    • Reward points : 0
    • Joined: 2021/01/19 12:17:11
    • Location: 0
    • Status: offline
    Re: PIC16F15244 Programming 2021/01/21 10:43:15 (permalink)
    +1 (1)
    Hi Howard.  Yes, these ports work fine with other devices.
     
    I have tried 3 of the USB ports and 2+ different cables.  This didn't change anything.  It does look like you are correct that this is an issue with Windows recognizing the device, but I cannot find any help on how to resolve that issue online.  
    #8
    dan1138
    Super Member
    • Total Posts : 4242
    • Reward points : 0
    • Joined: 2007/02/21 23:04:16
    • Location: 0
    • Status: offline
    Re: PIC16F15244 Programming 2021/01/21 12:44:40 (permalink)
    +1 (1)
    The EV09Z19A PIC16F15244 Curiosity Nano Evaluation_Kit: 


    These Curiosity Nano Evaluation kit enumerate as a disk drive and a virtual COM port. 

    I have the DM182029 PIC18F47Q10 Curiosity Nano Evaluation kit. 

    When my Windows7 laptop USB host enumerates it, the Device Manager shows this:

    Can you see anything like this?
    post edited by dan1138 - 2021/01/21 12:51:26

    Attached Image(s)

    #9
    Cary
    Starting Member
    • Total Posts : 21
    • Reward points : 0
    • Joined: 2021/01/19 12:17:11
    • Location: 0
    • Status: offline
    Re: PIC16F15244 Programming 2021/01/21 12:51:52 (permalink)
    +1 (1)
    Progress!  I tried a 4th cable and it is now connecting...  Thank you for the help!
    #10
    Howard Long
    Super Member
    • Total Posts : 887
    • Reward points : 0
    • Joined: 2005/04/04 08:50:32
    • Status: offline
    Re: PIC16F15244 Programming 2021/01/21 12:53:50 (permalink)
    +1 (1)
    #11
    Cary
    Starting Member
    • Total Posts : 21
    • Reward points : 0
    • Joined: 2021/01/19 12:17:11
    • Location: 0
    • Status: offline
    Re: PIC16F15244 Programming 2021/01/21 13:08:55 (permalink)
    0
    Dan - yes, I now see that same device.  It looks like the connection issue was the cable.  The PIC16F15244 now shows up as a connected hardware device.   
     
    However, my green LED is still statically "ON", no matter what I do.  Basically, the "Programming" LED blinking shown the attached file (a snippet from the "Hardware User Guide") is still not happening.
     

    Attached Image(s)

    #12
    Cary
    Starting Member
    • Total Posts : 21
    • Reward points : 0
    • Joined: 2021/01/19 12:17:11
    • Location: 0
    • Status: offline
    Re: PIC16F15244 Programming 2021/01/21 14:47:16 (permalink)
    +3 (3)
    Success!   Thank you all for the help!!!  The cable was ultimately the problem.
    #13
    Jump to:
    © 2021 APG vNext Commercial Version 4.5