Sign Up

Unlock the Gateway: Join the Embed Threads

Have an account? Sign In

Captcha Click on image to update the captcha.

Have an account? Sign In Now

Sign In

Unlock the Possibilities: Dive In with Login Access

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

Embed Threads

Embed Threads

Embed Threads Navigation

  • Blogs
  • Forum
  • About Us
  • Contact Us
  • Books
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Forum
  • Communities
  • Questions
    • New Questions
    • Must Read Questions
    • Trending Questions
    • Hot Questions
  • Polls
  • Groups
  • Add group
  • Badges
  • Users
  • Help
  • Blogs
  • Forum
  • About Us
  • Contact Us
  • Books
Aditya007
  • 0
Aditya007Beginner
Asked: July 31, 20232023-07-31T11:34:17+00:00 2023-07-31T11:34:17+00:00In: Embedded Software Development

Programming Error while using PICKIT4

  • 0

I amusing dsPIC33CK32MC102 for a project when i try to upload the hex file it gives following error [ Pgm ] at 0x0, expected 0x00040200, got 0x00000000. How do i solve this

  • 5 5 Answers
  • 1k Views
  • 0 Followers
  • 0
Share
  • Facebook
    Leave an answer

    Leave an answer
    Cancel reply

    Browse
    Captcha Click on image to update the captcha.

    5 Answers

    • Voted
    • Oldest
    • Recent
    1. Ritesh236 Explainer
      2023-07-31T12:12:49+00:00Added an answer on July 31, 2023 at 12:12 pm

      Hello,

      Would you please share us each and every steps into details with screenshot of IDE while facing issues so that we can have better understanding and idea for problem statement and can provide proper solution for the same?

      Regards,
      Ritesh Prajapati

      • 0
      • Reply
      • Share
        Share
        • Share onFacebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
      • Aditya007 Beginner
        2023-08-02T11:15:21+00:00Replied to answer on August 2, 2023 at 11:15 am

        I am using dsPIC33CK32MC102 SSOP package , I have code and its hex file ready. I made the connections for the controller those are as follows
        1) pullup resistor of 5.5kohm for MCLR pin and 100 ohm between pullup and MCLR pin
        2) 0.1 uF ceramic capacitor between VDD and VSS as told in datasheet

        I am using PICKIT 4 for programming where the pin are connected as follows
        MCLR = pin 27
        VDD = pin 20
        VSS = pin 19
        PGD = pin17
        PGC = pin 18

        the connections are perfect and no wire is bas solder

        when i plug usb to laptop and click “connect” it says following error and connects any how

        Target Device ID (0x0) is an Invalid Device ID. Please check your connections to the Target Device.
        UDID1 = 000000
        UDID2 = 000000
        UDID3 = 000000
        UDID4 = 000000
        UDID5 = 000000

        ==============================================================================================================

        after this when i click “program” it gives following error

        Programming did not complete.
        You are trying to change protected boot memory. In order to do this you must select the “Boot, Secure and General Segments” option on the debug tool Secure Segment properties page.

        Then in settings > secure segment > segments to be programmed > Boot,General and Config segment is selected

        after this when i click “program” it gives following error

        [ Pgm ] at 0x0, expected 0x00040200, got 0x00000000.
        You have set the program speed to Normal. The circuit on your board may require you to slow the speed down. Please change the setting in the tool properties to low and try the operation again.
        Programming did not complete.

        Then in settings > PICKIT4 tool options > programming speed > low selected

        after this when i click “program” it gives following error
        [ Pgm ] at 0x0, expected 0x00040200, got 0x00000000.
        Programming did not complete.

        =================================================================================================================

        Also this approach

        Target Device ID (0x0) is an Invalid Device ID. Please check your connections to the Target Device.
        UDID1 = 000000
        UDID2 = 000000
        UDID3 = 000000
        UDID4 = 000000
        UDID5 = 000000

        After this i click “erase” followed by “read” it says
        Read complete
        Warning: Debug bit is set on target image. This may not run correctly in production.

        Now if i hit “program” it says following warning
        Memory Image changed do you wish to continue programming device
        selecting yes it programs successfully but i dont know what has he program its more like a blank file is been programmed

        The following memory area(s) will be programmed:
        program memory: start address = 0x0, end address = 0x5eff
        configuration memory
        Programming/Verify complete
        2023-08-02 15:58:58 +0530 – Programming complete
        *** Hold In Reset mode is enabled ***

        =================================================================================================================

        checking CLKO clock output also gives a constant voltage level

        I am using external 3.3V supply for VDD
        The #pragma DEBUG = OFF/ON whatever it is ,its not avliable in config file for this controller
        Also this controller doesnt have VCAP pin
        If anyone has experienced it before their response would be appreciated
        Also is it a hardware related error, software related ?

        IDE i am using: MPLAB v6.10 IDE
        IPE i am using: MPLAB v6.10 IPE

        • 0
        • Reply
        • Share
          Share
          • Share onFacebook
          • Share on Twitter
          • Share on LinkedIn
          • Share on WhatsApp
        • Ritesh236 Explainer
          2023-08-02T11:26:34+00:00Replied to answer on August 2, 2023 at 11:26 am

          Thanks. Will check it and let you know.

          Regards,
          Ritesh Prajapati

          • 0
          • Reply
          • Share
            Share
            • Share onFacebook
            • Share on Twitter
            • Share on LinkedIn
            • Share on WhatsApp
        • Ritesh236 Explainer
          2023-08-04T03:35:59+00:00Replied to answer on August 4, 2023 at 3:35 am

          Hello,

          We have tried simple example with MPLAB IDE 6.10 but didn;t face this type of issues before.

          But, We haven’t checked with PICKIT 4. SO, We will be getting it after one week and will check with it.

          So, I will let you know once i will check with it as well.

          Regards,
          Ritesh Prajapati

          • 0
          • Reply
          • Share
            Share
            • Share onFacebook
            • Share on Twitter
            • Share on LinkedIn
            • Share on WhatsApp
        • Roshan
          2023-12-11T18:29:26+00:00Replied to answer on December 11, 2023 at 6:29 pm

          Hi,

          Was the issue solved? Are you providing external VDD? Try removing all components and use just ove 10K pullup from MCLR id you are directly using Pickit 4. Hope you are powering your SSOP from pickit 4.

          Roshan

          • 0
          • Reply
          • Share
            Share
            • Share onFacebook
            • Share on Twitter
            • Share on LinkedIn
            • Share on WhatsApp

    Sidebar

    Ask A Question

    Stats

    • Questions 85
    • Answers 319
    • Best Answers 15
    • Users 799

    Free PDF Downloads

    A Roadmap to a Successful Career

    HTTP, WS and TLS: The Complete Guide

    Embedded Interview Questions

    • Popular
    • Answers
    • alokm014

      Embedded System Testing: Strategies and Approaches

      • 108 Answers
    • Paresh

      USB Serial Port giving junk data

      • 20 Answers
    • Shubha V

      Why can't we save the footprints in kicad and How ...

      • 14 Answers
    • D Sai krishna

      Error in final launch sequence

      • 7 Answers
    • Jagadesh

      SD card data logging

      • 7 Answers
    • superfake bag
      superfake bag added an answer Comprehending Knockoff Hermès Bags: A Comprehensive Guide The sphere of… May 12, 2025 at 7:42 pm
    • http://genome-tech.ucsd.edu/LabNotes/index.php?title=User:ConstanceTimmerm
      http://genome-tech.ucsd.edu/LabNotes/index.php?title=User:ConstanceTimmerm added an answer Пляжи Айя-Напы — чистейший песок, вода как в сказке, обязательно… May 12, 2025 at 4:29 pm
    • https://yogaasanas.science/wiki/Auto_100B
      https://yogaasanas.science/wiki/Auto_100B added an answer Пляж Агиос Тиконас — для тех, кто любит тишину. https://www.prrpc.net/index.php/User:HelenWbw80 May 12, 2025 at 4:13 pm
    • http://searchamateur.com
      http://searchamateur.com added an answer Hello to every body, it's my first pay a visit… May 11, 2025 at 10:41 pm
    • fortune dragon
      fortune dragon added an answer Slot Fortune Dragon – jogue sem apostar . Bônus generosos… May 11, 2025 at 9:47 pm

    Explore

    • Forum
    • Communities
    • Questions
      • New Questions
      • Must Read Questions
      • Trending Questions
      • Hot Questions
    • Polls
    • Groups
    • Add group
    • Badges
    • Users
    • Help

    Footer

    Embed Threads

    Embed Threads

    Join us on a transformative journey where knowledge is amplified and solutions are empowered.

    About Us

    • Blogs
    • Forum
    • About Us
    • Contact Us
    • Books

    Legal Stuffs

    • Privacy Policy
    • Adsense Disclaimer

    Help

    • Help
    • Contact Us

    Follow

    © 2024 Embed Threads. All Rights Reserved
    With Love by Embed Threads.