element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • 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 Download hex to PIC32MZ
  • 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 14 replies
  • Answers 4 answers
  • Subscribers 191 subscribers
  • Views 2847 views
  • Users 0 members are here
  • pic controllers
  • pickit 3
  • pic32mz
  • microcontrollers.
  • icsp
  • pic32mx
  • pic32
Related

Download hex to PIC32MZ

brv64
brv64 over 7 years ago

Hello!

 

I've been using up to PIC18, but I'm new using PIC32. I thought that it would be the same process, but I'm having a hard time making it work.

I'm developing a board for my graduation proyect with this PIC32MZ2048ECH100

PIC32MZ EC Processor Plug-In Module (PIM) - MA320012 | Microchip Technology Inc.

The thing is that I can't seem to make it work with the programmer.

I'm Using the PICKIT3

Application Version: 3.10

Device File Version: 1.62.15

OS Frimwater Version: 2.00.05

 

When I try to manually select the PIC32MZ only PIC32MX family appears.

Do I need to download or update something else?

I have to implement an external circuit?

Are my connections correct?

Thanks in advance

Attachments:
imageScanned_20180407-1540.pdf
image
  • Sign in to reply
  • Cancel

Top Replies

  • brv64
    brv64 over 7 years ago in reply to genebren +2
    I also tried using a Pull-Up resistor on MCLR but didn't work :/
  • brv64
    brv64 over 7 years ago in reply to genebren +1
    Tried and no luck Apperently the software version for PICKIT3 only supports PIC32MX. It keeps telling me that's missing the proper VCAP. Pin that's not available on PIC32MZ. I tried with MPLAB IPE and…
  • genebren
    genebren over 7 years ago in reply to brv64 +1
    Brandon, I developed a PCB for one on my clients that uses the PIC32MZ2048EFG064 processor. I did not develop the firmware for this project, but I did load and run some simple diagnostic routines using…
  • genebren
    0 genebren over 7 years ago

    Brandon,

     

    Looking at your picture, it does not appear that you have the board powered up, while you are attempting the programming.  I believe that it is necessary to power up the board/chip first, then attempt programming.

     

    Best of luck,

    Gene

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • brv64
    0 brv64 over 7 years ago in reply to genebren

    Tried and no luck

    Apperently the software version for PICKIT3 only supports PIC32MX. It keeps telling me that's missing the proper VCAP. Pin that's not available on PIC32MZ.

    I tried with MPLAB IPE and keeps telling me

     

    *****************************************************

    Connection Failed.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • brv64
    0 brv64 over 7 years ago in reply to genebren

    I also tried using a Pull-Up resistor on MCLR but didn't work
    :/

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • genebren
    0 genebren over 7 years ago in reply to brv64

    Brandon,

     

    I developed a PCB for one on my clients that uses the PIC32MZ2048EFG064 processor.  I did not develop the firmware for this project, but I did load and run some simple diagnostic routines using the PICKIT3.  I have used MPLAB IPE v3.51, with PICKIT3 01.46.14.  It might simply be a question of updating your MPLAB and PICKIT3 firmware to get it to recognize your PIC32MZ device.

     

    Good Luck,

    Gene

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • genebren
    0 genebren over 7 years ago in reply to brv64

    Brandon,

     

    Another thought occurred to me.  I don't know if this is a part of your problem, but some of the PIC32MZ processors (like the one that I was using), did have an issue with external crystal oscillators (unreliable startup).  In some cases my client needed to change fuse settings to use the internal RC oscillator.  Later we switched over to using an external oscillator (and newer versions of the PIC32) to eliminate these issues.

     

    Gene

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • 14rhb
    0 14rhb over 7 years ago

    Hi Brandon,

     

    I'm not familiar with that module or the PIC32 but I pulled up the datasheet and I think you may have the wrong pins connected?

     

    He's my thinking:

    Pin 1, taken when looking at the PIC component side, is the first anti-clockwise from the notched corner.

     

    The Pickit3 uses the following pins:

    1     MCLR (pull to Vdd with 4k7)

    2     Vdd

    3     Vss

    4     ICSPDAT

    5     ICSPCLK

    6     PGM (often not connected)

     

    I think from your photos you have:

    White/Orange          Pin_1               to ICSPDAT

    White/Green            Pin_2               to ICSPCLK

    Orange                    Pin_10             to VDD

    Brown                      Pin_11             to Vss

    Green                      Pin_13             to MCLR

     

    You need something like:

    White/Orange          Pin_25 or Pin_27               to ICSPDAT

    White/Green            Pin_24 or Pin_26               to ICSPCLK

    Orange                    Pin_14                               to VDD

    Brown                      Pin_13                               to Vss

    Green                      Pin_15                               to MCLR

     

    Please don't just copy the above without thinking it through - it's just my initial thought image. I'm also not sure why there are two ICSP ports nor how you select between them. I would also double-post your question into the Microchip Forum as, with no disrespect to Element14, they probably have a larger user base .

     

    Rod

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • 14rhb
    0 14rhb over 7 years ago

    Brandon,

     

    What program are you using to download the HEX to the PIC? The PIC32MZ2048ECH100 shows up under Microchip's MPLAB IPE (v4.10) software (which gets installed when you install MPLAB X IDE) - you can download your HEX file with PICKIT3 from that.

    image

    regards,

     

    Rod

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • brv64
    0 brv64 over 7 years ago in reply to genebren

    I managed to Update the firmware!

    Thats a Start

     

    1.- Go to PICKIT3 v3.10

    2.- Tools > MPLAB MODE

    It will quit the app and I'll be almost ready to use.

    3.- Select the Device, tool, and press connect.

    This will make it update the PICKIT3 so that it can program the selected device.

    At first it took about 4hours in the downloading section.

    Had to restart the MPLAB IPE to make it work.

    Now I'm stuck here

     

    image

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • brv64
    0 brv64 over 7 years ago in reply to 14rhb

    I thought that too!

    On the PIM diagram it's more like

    PIN_25     PGEC

    PIN_24     PGED

    PIN_16     VCC

    PIN_15     GND

    PIN_13     MCLR

     

    I used a 56K resistor (I had it around) to use it as a pull up but no luck. I'll get a 4K7.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • brv64
    0 brv64 over 7 years ago in reply to 14rhb

    This is what i got now.

    I keep switching ICSPD and ISCPC but no luck

    D:

    I tried the pull-Up with 5 resistors in series that gave a total 4560 Ohms and no luck

    :c

    I get this from the MPLAB IPE

     

    *****************************************************

     

     

    Connecting to MPLAB PICkit 3...

     

     

    Currently loaded firmware on PICkit 3

    Firmware Suite Version.....01.51.08

    Firmware type..............PIC32MZ

     

     

    Target voltage detected

    Unable to connect to the target device.

    Failed to get Device ID

    image

    • 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