element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Embedded and Microcontrollers
  • Technologies
  • More
Embedded and Microcontrollers
Pic Microcontrollers Forum trying to programm a 12F617 with picKIT3, getting verification errors and the device sometimes locks up
  • Blog
  • Forum
  • Documents
  • Quiz
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Embedded and Microcontrollers to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Suggested Answer
  • Replies 7 replies
  • Answers 2 answers
  • Subscribers 193 subscribers
  • Views 1990 views
  • Users 0 members are here
  • verification
  • up
  • 8.92
  • failure
  • pickit3
  • mplab
  • error
  • locking
  • 12f617
Related

trying to programm a 12F617 with picKIT3, getting verification errors and the device sometimes locks up

Former Member
Former Member over 11 years ago

Hey guys first off not only am I new here I'm also new to PIC (coming over from AVR), I hope I've included all info you guys may need to help me but let me know any other info you need.

 

I have several different uses for 12F617's (digikey is shipping 6171's) and in all the previous boards the chips can be programmed ISP but for this newest project I have only been able to program off the board (not a big issue at all) however also with this new project I'm getting an error trying to verify. I've went back to multiple other projects and have tried this very chip (actually tried several chips) and they all work fine so I think it must be code related however I sent my buddy the code and he assembled it and emailed the hex back and that flashes (in a new project) and it verifies just fine, what the heck!?

 

I've been searching for a couple days while I remembered my login here and waited on my verification email and the closest thing I have found was this thread at microchip's forum (I'm not aboe to post a thread there, some crazy forum issue that lots of people are having) but its not the same issue and there wasnt much to use, it did lead me to check my config bit's and I made sure code protection was off but now I'm lost. Just to be clear the device is running, its just having a seemingly random issue where it gets stuck I believe to be a memory issue related to this.

 

MPLAB IDE v8.92

windows vista business x32 (running on a dell laptop from 2008)

picKIT3, making the connection with an SOIC clip with leads from the pickit <6", again programming with the chip free in the air...

 


PICkit 3 detected
Connecting to PICkit 3...
Firmware Suite Version...... 01.28.90
Firmware type......................Midrange
PICkit 3 Connected.
Device ID Revision = 00000000

Programming...
Programming/Verify complete

Verifying...
The following memory regions failed to verify correctly
Program Memory
Address: 00000000 Expected Value: 00002886 Received Value: 00000000
Verify failed

 

However when I read the chip after programming THEN verify it comes back correct, also blank check (obviously after an erase) comes back good.

 

PICkit 3 detected
Connecting to PICkit 3...
Firmware Suite Version...... 01.28.90
Firmware type......................Midrange
PICkit 3 Connected.
Device ID Revision = 00000000

Programming...
Programming/Verify complete

Verifying...
The following memory regions failed to verify correctly
Program Memory
Address: 00000000 Expected Value: 00002886 Received Value: 00000000
Verify failed

Reading...
Read Complete

Verifying...
Verify complete

 

This is a controller for a 4 channel RGBW LED driver and sometimes (quite often) the light will get stuck in one particular loop or even more specifically at one random output level, the program has memory threw power cycles so it will be stuck there till I erase the chip and reflash (it has wear leveling so I'm thinking it runs fine when it writes to different bit's but when it writes to that one spot it locks up). Other than those random times when that happens the device runs as programmed, thats why I think the issues are one in the same. As I mention I've tried several different chips and all of them run perfectly in other similar devices (but with totally different code), its ONLY this project they do this issue.

 

I dont know what more info you guys might need, I can post the instructions file I'm using if you need that, just let me know.

 

thanks in advance.

 

P.s. after reading some more while typing just thought I should mention, I'm not using MCLR for anything, there is physically n/c when in service, looks like some people have some issues locking the PIC up trying to run MCLR as an I/O but I'm not doing that here.

 

Message was edited by: me clarificati'n and spellin'

  • Sign in to reply
  • Cancel
Parents
  • MicrochipRTCfr
    0 MicrochipRTCfr over 11 years ago

    Hi,

     

    Can you please add the ICSP connector ? I don't see it on your schematic.

    With PICs, it is compulsory to connect all the 5 signals : Vdd, Vss, MCLR, PGC, PGD (look at the nice poster you got with Pickit3)

    As far as I can see the MCLR pin (reset) is floating...Please make sur to attach a 10K pull-up resistor to this pin. MCLR is an essential signal for the PIC as well as the programming as Vpp voltage (13V) is applied on that pin

     

    With Pickit3 you must select power target or not depending if your circuit is powered or not. I recommend alsways to use the board power supply because some issues are due to power supply and it is better to see them early in the development.

     

    Regards

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Reply
  • MicrochipRTCfr
    0 MicrochipRTCfr over 11 years ago

    Hi,

     

    Can you please add the ICSP connector ? I don't see it on your schematic.

    With PICs, it is compulsory to connect all the 5 signals : Vdd, Vss, MCLR, PGC, PGD (look at the nice poster you got with Pickit3)

    As far as I can see the MCLR pin (reset) is floating...Please make sur to attach a 10K pull-up resistor to this pin. MCLR is an essential signal for the PIC as well as the programming as Vpp voltage (13V) is applied on that pin

     

    With Pickit3 you must select power target or not depending if your circuit is powered or not. I recommend alsways to use the board power supply because some issues are due to power supply and it is better to see them early in the development.

     

    Regards

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Children
  • Former Member
    0 Former Member over 11 years ago in reply to MicrochipRTCfr

    sure, sorry On the board both pin 2 (GP5) and pin4 (MCLR) are floating, I will add a 10k pull up ASAP

    6931A45D-1E78-4B83-9327-6D693701B0BF.jpg

     

    I got my pK3 off the bay sans poster, is that info somewhere on microchip's site?

    Since I'm programming the chip off the board I have to power it from the PK3...

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • MicrochipRTCfr
    0 MicrochipRTCfr over 11 years ago in reply to Former Member

    Hi,

     

    You can find all the Pickit3 documentation here : http://www.microchip.com/pickit3

    The poster is here .

     

    Regarding GP5, a pull-up is not necessary. Just program this pin as output and put a logic 0

     

    BTW : PIC12F617 is a very old device. There are much more powerful 8 pins PIC12/PIC16 which have lots of PWM and are particularily suited for led driving

    e.g PIC12F1572

     

    Regards

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube