MPLAB X/Configuration de Projet

De Wiki_du_Réseau_des_Electroniciens_du_CNRS
Aller à la navigationAller à la recherche


Configuration d'un projet MPLAB® X IDE

Source “Microchip Libraries for Applications

  • Exemple de chemin à définir pour la recherche des fichiers “include” :

“..;../../../_Librairie;../../../_Librairie/Microchip/Include”
Lors de sa recherche, le compilateur part toujours du dossier du projet “MPLAB.X”, les “..” permettent de remonter d’un niveau dans l’arborescence des répertoires. Vous pouvez être amener à modifier le nombre “../” en fonction du niveau de votre répertoire “MPLAB.X” par rapport au dossier “_Librairie”

  • Les noms des différentes configurations ont été inspirés de la convention de nommage de Microchip, voir "Configuration File and Project Name Abbreviations" file:///C:/microchip_solutions_v2013-06-15/Microchip/Help/Abbreviations.htm

soit COMPILER-PICFAMILY_BOARDNAME_PICREF_BOARD


Project Configuration name : XC8-PIC18_PK3_DEBUG_EXPRESS_45K20_BOARD

 Compiler  : Microchip XC8
 Processor : PIC18F45K20
 Hardware  : Carte PICkit 3 Debug Express (Part Number: DV164131) et PICkit 44-Pin Demo Board (Part Number: DM164130-4)
 Fichier   : ..\_Ressource\Configs\HWP_PIC18_PK3_DEBUG_EXPRESS_45K20.h
 Macro     : CFG_INCLUDE_PIC18_PK3_DEBUG_EXPRESS_45K20


Project Configuration name : C18-PIC18_v2_3_4520_BOARD

 Compiler  : Microchip C18 (mcc18 for PIC18 processor)
 Processor : PIC18F4520
 Hardware  : Carte PIC18 v2-3
 Fichier   : ..\PIC18_Hardware\Cartes_de_la_formation_PIC18F\SCH_CARTE_PIC18F_v2_3.pdf
             ..\_Ressource\Configs\HWP_PIC18_v2_3_4520.h
 Macro     : CFG_INCLUDE_PIC18_v2_3_4520


Project Configuration name : C18-PIC18_v2_3_4550_BOARD

Project Configuration name : XC8-PIC18_v2_3_4550_BOARD

 Compiler  : Microchip C18 (old compiler mcc18 for PIC18 processor only)
 Compiler  : Microchip XC8 (actual compiler for all 8-bit MCU PIC)
 Processor : PIC18F4550
 Hardware  : Carte PIC18 v2-3
 Fichier   : ..\PIC18_Hardware\Cartes_de_la_formation_PIC18F\SCH_CARTE_PIC18F_v2_3.pdf
             ..\_Ressource\Configs\HWP_PIC18_v2_3_4550.h
 Macro     : CFG_INCLUDE_PIC18_v2_3_4550


Project Configuration name : C18-PIC18_v2_3_46J50_BOARD

 Compiler  : Microchip C18 (mcc18 for PIC18 processor)
 Processor : PIC18F46J50
 Hardware  : Carte PIC18 v2-3
 Fichier   : ..\PIC18_Hardware\Cartes_de_la_formation_PIC18F\SCH_CARTE_PIC18F_v2_3.pdf
             ..\_Ressource\Configs\HWP_PIC18_v2_3_46J50.h
 Macro     : CFG_INCLUDE_PIC18_v2_3_46J50


Project Configuration name: XC16-PIC24_EX16_BOARD

 Compiler  : Microchip XC16 (for 16-bit processor)
 Processor : ...
 Hardware  : Carte Explorer 16 Development Board (Part Number: DM240001)
 Fichier   : ..\_Ressource\Configs\HWP_EX16.h
 Macro     : CFG_INCLUDE_EX16 ou CFG_INCLUDE_EX16_PIC24FJ128GA010_PIM

Insertion de code dans le fichier "HardwareProfile.h"

    #if defined(CFG_INCLUDE_EX16_PIC24FJ128GA010_PIM)
        #define USE_LCD_EXPLORER_16 // utilisation de l'ecran LCD de la carte Explorer 16
        #undef USE_LCD_PIN_RW       // pas de retro-eclairage sur la carte Explorer 16
        // Explorer 16 and PIC24FJ128GA010 PIM
        #include "Configs/HWP_PIC24FJ128GA010_PIM.h"
    #endif


Project Configuration name : XC32-PIC32_PINGUINO_OTG_BOARD

 Compiler  : Microchip XC32 (for PIC32 processor)
 Processor : PIC32MX440F256H
 Hardware  : Carte PIC32-PINGUINO-OTG
 Fichier   : ..\_Ressource\Configs\HWP_PIC32_PINGUINO_OTG.h
 Macro     : CFG_INCLUDE_PIC32_PINGUINO_OTG

Insertion de code dans le fichier "HardwareProfile.h"

    #if defined(CFG_INCLUDE_PIC32_PINGUINO_OTG)
        // PIC32-PINGUINO-OTG (PIC32MX440F256H)
        // https://www.olimex.com/Products/Duino/PIC32/PIC32-PINGUINO-OTG/open-source-hardware
        #include "Configs/HWP_PIC32_PINGUINO_OTG.h"
    #endif


Project Configuration name : XC32-PIC32_UBW32_MX795_BOARD

 Compiler  : Microchip XC32 (for PIC32 processor)
 Processor : PIC32MX795F512L
 Hardware  : Carte UBW32 MX795
 Fichier   : ..\_Ressource\Configs\HWP_PIC32_UBW32_MX795.h
 Macro     : CFG_INCLUDE_PIC32_UBW32_MX795


Project Configuration name: XC32-PIC32_USB_SK_BOARD

 Compiler  : Microchip XC32 (for PIC32 processor)
 Processor : PIC32MX795F512L
 Hardware  : Carte PIC32 USB Starter Kit II (Part Number: DM320003-2)
 Fichier   : ..\_Ressource\Configs\HWP_PIC32_USB_SK.h
 Macro     : CFG_INCLUDE_PIC32_USB_SK;PIC32_STARTER_KIT


Project Configuration name: XC32-PIC32_ETH_SK_ETH795_BOARD

 Compiler  : Microchip XC32 (for PIC32 processor)
 Processor : PIC32MX795F512L
 Hardware  : Carte PIC32 Ethernet Starter Kit (Part Number: DM320004)
 Fichier   : ..\_Ressource\Configs\HWP_PIC32_ETH_SK_ETH795.h
 Macro     : CFG_INCLUDE_PIC32_ETH_SK_ETH795;PIC32_STARTER_KIT

Insertion de code dans le fichier "HardwareProfile.h"

    #if defined(CFG_INCLUDE_PIC32_ETH_SK_ETH795)
        // PIC32 Ethernet Starter Kit, Part Number: dm320004, Microchip® PIC32 32-bit MIPS processor (PIC32MX795F512L)
        // http://www.microchip.com/DevelopmentTools/ProductDetails.aspx?PartNO=dm320004
        #include "Configs/HWP_PIC32_ETH_SK_ETH795.h"
    #endif
 Board Support Packages for the PIC32 Ethernet Starter Kit
 BSP : pic32mx_eth_sk


Project Configuration name : XC32-PIC32_CHIPKIT_MAX32_BOARD

 Compiler  : Microchip XC32 (for PIC32 processor)
 Processor : PIC32MX795F512L
 Hardware  : Carte chipKIT™ Max32™
 Fichier   : ..\PIC32_Hardware\chipKIT_Max32\chipKIT_Max32_bysa_d_sch.pdf
             ..\_Ressource\Configs\HWP_PIC32_CHIPKIT_MAX32.h
 Macro     : CFG_INCLUDE_PIC32_CHIPKIT_MAX32

Insertion de code dans le fichier "HardwareProfile.h"

    #if defined(CFG_INCLUDE_PIC32_CHIPKIT_MAX32)
        // chipKIT™ Max32™, Digilent Part: 410-202-KIT, Microchip® PIC32 32-bit MIPS processor (PIC32MX795F512L)
        // http://www.digilentinc.com/Products/Detail.cfm?NavPath=2,892,894&Prod=CHIPKIT-MAX32
        #include "Configs/HWP_PIC32_CHIPKIT_MAX32.h"
    #endif


Project Configuration name : XC32-PIC32_CHIPKIT_PRO_MX7_BOARD (XC32-PIC32_CEREBOT_MX7CK_BOARD)

 Compiler  : Microchip XC32 (for PIC32 processor)
 Processor : PIC32MX795F512L
 Hardware  : Carte chipKIT™ Pro MX7 (CEREBOT™ MX7cK)
 Fichier   : ..\_Ressource\Configs\HWP_PIC32_CHIPKIT_PRO_MX7.h (HWP_PIC32_CEREBOT_MX7CK.h)
 Macro     : CFG_INCLUDE_PIC32_CHIPKIT_PRO_MX7 (CFG_INCLUDE_PIC32_CEREBOT_MX7CK)

Insertion de code dans le fichier "HardwareProfile.h"

    #if defined(CFG_INCLUDE_PIC32_CHIPKIT_PRO_MX7)
        // chipKIT™ Pro MX7, Digilent Part: 410-223-KIT, Microchip® PIC32 32-bit MIPS processor (PIC32MX795F512L)
        // http://www.digilentinc.com/Products/Detail.cfm?NavPath=2,892,1219&Prod=CHIPKIT-PRO-MX7
        #include "Configs/HWP_PIC32_CHIPKIT_PRO_MX7.h"
    #endif


=== Le groupe PIC ===
Présentation du Groupe de Travail   >Premiers pas  >Document   >Tutoriel   >Librairie   >Demo   >Projet   >TODO