Hot!Where is the header file for a PIC32MZ device in MPLAB X?

Author
DougD
Starting Member
  • Total Posts : 37
  • Reward points : 0
  • Joined: 2012/12/24 10:12:06
  • Location: 0
  • Status: offline
2018/05/16 19:07:59 (permalink)
0

Where is the header file for a PIC32MZ device in MPLAB X?

Hello,
I'm taking a big step from programming 16-bit PIC24F projects in C, to starting a 32-bit PIC32MZ project in C.
 
I'm trying to find the header file for my PIC32MZ0512EFE064, so I can include it into my new project's "Header Files" in the MPLAB X IDE.  I don't see a "32MZ0512EFE064.h" header file anywhere in my project's .X folder.  I do see a "32MZ0512EFE064" folder in the XC32 installation directory, but it only has .data, .o, .ld, and .S files--no .h files.
 
I think I've installed everything correctly--MPLAB X (v. 4.15) uses my ICD 3 and recognizes the PIC32MZ on my custom board okay.  But I can't start programming until I can include the device's header file.  Can someone help me with this?
Doug
#1

5 Replies Related Threads

    qɥb
    Monolothic Member
    • Total Posts : 3329
    • Reward points : 0
    • Joined: 2017/09/09 05:07:30
    • Location: Jupiter
    • Status: offline
    Re: Where is the header file for a PIC32MZ device in MPLAB X? 2018/05/16 19:13:55 (permalink)
    5 (1)
    DougD
    But I can't start programming until I can include the device's header file.

    Why not?
    All you need to include into your source files is <xc.h> and the compiler takes care of it.
     

    This forum is mis-configured so it only works correctly if you access it via https protocol.
    The Microchip website links to it using http protocol. Will they ever catch on?
    PicForum "it just works"
    #2
    qɥb
    Monolothic Member
    • Total Posts : 3329
    • Reward points : 0
    • Joined: 2017/09/09 05:07:30
    • Location: Jupiter
    • Status: offline
    Re: Where is the header file for a PIC32MZ device in MPLAB X? 2018/05/16 19:16:33 (permalink)
    5 (1)
    If you really want to examine the header file, have a look in
    C:\Program Files (x86)\Microchip\xc32\v1.45\pic32mx\include\proc\p32mz0512efe064.h
     
     

    This forum is mis-configured so it only works correctly if you access it via https protocol.
    The Microchip website links to it using http protocol. Will they ever catch on?
    PicForum "it just works"
    #3
    DougD
    Starting Member
    • Total Posts : 37
    • Reward points : 0
    • Joined: 2012/12/24 10:12:06
    • Location: 0
    • Status: offline
    Re: Where is the header file for a PIC32MZ device in MPLAB X? 2018/05/16 19:26:09 (permalink)
    0
    So that's where it is!  I didn't think to look for it under in the pic32mx folder--I was looking for a pic32mz folder.  I also didn't know I could just include <xc.h>.  Thank you very much for your help!
    #4
    qɥb
    Monolothic Member
    • Total Posts : 3329
    • Reward points : 0
    • Joined: 2017/09/09 05:07:30
    • Location: Jupiter
    • Status: offline
    Re: Where is the header file for a PIC32MZ device in MPLAB X? 2018/05/16 19:30:59 (permalink)
    0
    DougD
    ... I also didn't know I could just include <xc.h>.

    That's what you should have been doing all along.
    XC8, XC16 and XC32 all do it that way.
    It does help to read the User Guide sometimes :)
     
     

    This forum is mis-configured so it only works correctly if you access it via https protocol.
    The Microchip website links to it using http protocol. Will they ever catch on?
    PicForum "it just works"
    #5
    moser
    Super Member
    • Total Posts : 388
    • Reward points : 0
    • Joined: 2015/06/16 02:53:47
    • Location: Germany
    • Status: offline
    Re: Where is the header file for a PIC32MZ device in MPLAB X? 2018/06/04 01:06:39 (permalink)
    0
    qɥbIt does help to read the User Guide sometimes :)

    Recommended:
     
    MPLAB® XC32 C/C++ Compiler User’s Guide, Chapter 7. Device-Related Features
    e.g. at C:\Program Files (x86)\Microchip\xc32\v2.05\docs\MPLAB-XC32-Users-Guide.pdf
     
     
     
    #6
    Jump to:
    © 2018 APG vNext Commercial Version 4.5