Problème sous MpLAB C30
Répondre à la discussion
Affichage des résultats 1 à 2 sur 2

Problème sous MpLAB C30



  1. #1
    invitec63490c6

    Problème sous MpLAB C30


    ------

    Bonjour a tous,

    J'ai un petit soucis de compilation avec MpLAb C30 car quand je compile mon programme. il ne reconnais aucune variable par exemple
    TRISD il le prend pour une erreur quelqu'un serai t'il a quoi est du cette erreur lors de la compilation.

    Voici l'erreur que le compilateur sort quand je compile:

    Code:
    ----------------------------------------------------------------------
    Debug build of project `C:\Documents and Settings\dev1\Mes documents\Sébastien\Programme Test\autre\CE034_CAN_Loopback_091207\CE034_CAN_Loopback\CAN_Loopback.mcp' started.
    Preprocessor symbol `__DEBUG' is defined.
    Mon Mar 16 14:38:02 2009
    ----------------------------------------------------------------------
    Clean: Deleting intermediary and output files.
    Clean: Done.
    Executing: "C:\Program Files\Microchip\MPLAB C30\bin\pic30-gcc.exe" -mcpu=30F6014A -x c -c   "CAN_Loopback.c" -o"CAN_Loopback.o" -D__DEBUG -g -Wall
    CAN_Loopback.c:48:23: error: p30F6014A.h: No such file or directory
    In file included from CAN_Loopback.c:49:
    c:/program files/microchip/mplab c30/bin/bin/../../support/peripheral_30F_24H_33F/can.h:6:22: error: p30fxxxx.h: No such file or directory
    CAN_Loopback.c: In function 'main':
    CAN_Loopback.c:80: error: 'TRISD' undeclared (first use in this function)
    CAN_Loopback.c:80: error: (Each undeclared identifier is reported only once
    CAN_Loopback.c:80: error: for each function it appears in.)
    CAN_Loopback.c:81: error: 'LATD' undeclared (first use in this function)
    CAN_Loopback.c:82: error: 'TRISA' undeclared (first use in this function)
    CAN_Loopback.c:90: error: 'C1CTRLbits' undeclared (first use in this function)
    CAN_Loopback.c:94: error: 'C1CFG1bits' undeclared (first use in this function)
    CAN_Loopback.c:99: error: 'C1CFG2' undeclared (first use in this function)
    CAN_Loopback.c:105: error: 'C1INTF' undeclared (first use in this function)
    CAN_Loopback.c:106: error: 'IFS1bits' undeclared (first use in this function)
    CAN_Loopback.c:107: error: 'C1INTE' undeclared (first use in this function)
    CAN_Loopback.c:108: error: 'IEC1bits' undeclared (first use in this function)
    CAN_Loopback.c:116: error: 'C2CTRLbits' undeclared (first use in this function)
    CAN_Loopback.c:119: error: 'C2CFG1bits' undeclared (first use in this function)
    CAN_Loopback.c:124: error: 'C2CFG2' undeclared (first use in this function)
    CAN_Loopback.c:130: error: 'C2INTF' undeclared (first use in this function)
    CAN_Loopback.c:131: error: 'IFS2bits' undeclared (first use in this function)
    CAN_Loopback.c:132: error: 'C2INTE' undeclared (first use in this function)
    CAN_Loopback.c:133: error: 'IEC2bits' undeclared (first use in this function)
    CAN_Loopback.c:143: error: 'C1RX0CON' undeclared (first use in this function)
    CAN_Loopback.c:143: error: 'C1RX1CON' undeclared (first use in this function)
    CAN_Loopback.c:143: error: 'C2RX0CON' undeclared (first use in this function)
    CAN_Loopback.c:143: error: 'C2RX1CON' undeclared (first use in this function)
    CAN_Loopback.c:149: error: 'C1RXM0SID' undeclared (first use in this function)
    CAN_Loopback.c:149: error: 'C1RXM1SID' undeclared (first use in this function)
    CAN_Loopback.c:149: error: 'C2RXM0SID' undeclared (first use in this function)
    CAN_Loopback.c:149: error: 'C2RXM1SID' undeclared (first use in this function)
    CAN_Loopback.c:153: error: 'C1RXM0EIDH' undeclared (first use in this function)
    CAN_Loopback.c:153: error: 'C1RXM1EIDH' undeclared (first use in this function)
    CAN_Loopback.c:153: error: 'C2RXM0EIDH' undeclared (first use in this function)
    CAN_Loopback.c:153: error: 'C2RXM1EIDH' undeclared (first use in this function)
    CAN_Loopback.c:157: error: 'C1RXM0EIDL' undeclared (first use in this function)
    CAN_Loopback.c:157: error: 'C1RXM1EIDL' undeclared (first use in this function)
    CAN_Loopback.c:157: error: 'C2RXM0EIDL' undeclared (first use in this function)
    CAN_Loopback.c:157: error: 'C2RXM1EIDL' undeclared (first use in this function)
    CAN_Loopback.c:162: error: 'C1RXF0SID' undeclared (first use in this function)
    CAN_Loopback.c:163: error: 'C1RXF2SID' undeclared (first use in this function)
    CAN_Loopback.c:164: error: 'C1RXF2EIDH' undeclared (first use in this function)
    CAN_Loopback.c:165: error: 'C1RXF2EIDL' undeclared (first use in this function)
    CAN_Loopback.c:169: error: 'C2RXF0SID' undeclared (first use in this function)
    CAN_Loopback.c:170: error: 'C2RXF2SID' undeclared (first use in this function)
    CAN_Loopback.c:171: error: 'C2RXF2EIDH' undeclared (first use in this function)
    CAN_Loopback.c:172: error: 'C2RXF2EIDL' undeclared (first use in this function)
    CAN_Loopback.c:178: error: 'C1TX0CON' undeclared (first use in this function)
    CAN_Loopback.c:179: error: 'C1TX0SID' undeclared (first use in this function)
    CAN_Loopback.c:180: error: 'C1TX0EID' undeclared (first use in this function)
    CAN_Loopback.c:181: error: 'C1TX0DLC' undeclared (first use in this function)
    CAN_Loopback.c:185: error: 'C1TX0B1' undeclared (first use in this function)
    CAN_Loopback.c:186: error: 'C1TX0B2' undeclared (first use in this function)
    CAN_Loopback.c:187: error: 'C1TX0B3' undeclared (first use in this function)
    CAN_Loopback.c:188: error: 'C1TX0B4' undeclared (first use in this function)
    CAN_Loopback.c:190: error: 'C1TX1CON' undeclared (first use in this function)
    CAN_Loopback.c:191: error: 'C1TX1SID' undeclared (first use in this function)
    CAN_Loopback.c:192: error: 'C1TX1EID' undeclared (first use in this function)
    CAN_Loopback.c:193: error: 'C1TX1DLC' undeclared (first use in this function)
    CAN_Loopback.c:198: error: 'C1TX1B1' undeclared (first use in this function)
    CAN_Loopback.c:199: error: 'C1TX1B2' undeclared (first use in this function)
    CAN_Loopback.c:202: error: 'C2TX0CON' undeclared (first use in this function)
    CAN_Loopback.c:203: error: 'C2TX0SID' undeclared (first use in this function)
    CAN_Loopback.c:204: error: 'C2TX0EID' undeclared (first use in this function)
    CAN_Loopback.c:205: error: 'C2TX0DLC' undeclared (first use in this function)
    CAN_Loopback.c:209: error: 'C2TX0B1' undeclared (first use in this function)
    CAN_Loopback.c:210: error: 'C2TX0B2' undeclared (first use in this function)
    CAN_Loopback.c:211: error: 'C2TX0B3' undeclared (first use in this function)
    CAN_Loopback.c:212: error: 'C2TX0B4' undeclared (first use in this function)
    CAN_Loopback.c:216: error: 'C2TX1CON' undeclared (first use in this function)
    CAN_Loopback.c:217: error: 'C2TX1SID' undeclared (first use in this function)
    CAN_Loopback.c:218: error: 'C2TX1EID' undeclared (first use in this function)
    CAN_Loopback.c:219: error: 'C2TX1DLC' undeclared (first use in this function)
    CAN_Loopback.c:224: error: 'C2TX1B1' undeclared (first use in this function)
    CAN_Loopback.c:225: error: 'C2TX1B2' undeclared (first use in this function)
    CAN_Loopback.c:236: error: 'C1TX0CONbits' undeclared (first use in this function)
    CAN_Loopback.c:237: error: 'C1TX1CONbits' undeclared (first use in this function)
    CAN_Loopback.c:238: error: 'C2TX0CONbits' undeclared (first use in this function)
    CAN_Loopback.c:239: error: 'C2TX1CONbits' undeclared (first use in this function)
    CAN_Loopback.c: In function '_C1Interrupt':
    CAN_Loopback.c:262: error: 'IFS1bits' undeclared (first use in this function)
    CAN_Loopback.c:264: error: 'C1INTFbits' undeclared (first use in this function)
    CAN_Loopback.c:282: error: 'C1RX0B1' undeclared (first use in this function)
    CAN_Loopback.c:283: error: 'C1RX0B2' undeclared (first use in this function)
    CAN_Loopback.c:284: error: 'C1RX0B3' undeclared (first use in this function)
    CAN_Loopback.c:285: error: 'C1RX0B4' undeclared (first use in this function)
    CAN_Loopback.c:289: error: 'LATDbits' undeclared (first use in this function)
    CAN_Loopback.c:297: error: 'C1RX1B1' undeclared (first use in this function)
    CAN_Loopback.c:298: error: 'C1RX1B2' undeclared (first use in this function)
    CAN_Loopback.c: In function '_C2Interrupt':
    CAN_Loopback.c:314: error: 'IFS2bits' undeclared (first use in this function)
    CAN_Loopback.c:316: error: 'C2INTFbits' undeclared (first use in this function)
    CAN_Loopback.c:337: error: 'C2RX0B1' undeclared (first use in this function)
    CAN_Loopback.c:338: error: 'C2RX0B2' undeclared (first use in this function)
    CAN_Loopback.c:339: error: 'C2RX0B3' undeclared (first use in this function)
    CAN_Loopback.c:340: error: 'C2RX0B4' undeclared (first use in this function)
    CAN_Loopback.c:344: error: 'LATDbits' undeclared (first use in this function)
    CAN_Loopback.c:354: error: 'C2RX1B1' undeclared (first use in this function)
    CAN_Loopback.c:355: error: 'C2RX1B2' undeclared (first use in this function)
    Halting build on first failure as requested.
    ----------------------------------------------------------------------
    Debug build of project `C:\Documents and Settings\dev1\Mes documents\Sébastien\Programme Test\autre\CE034_CAN_Loopback_091207\CE034_CAN_Loopback\CAN_Loopback.mcp' failed.
    Preprocessor symbol `__DEBUG' is defined.
    Mon Mar 16 14:38:03 2009
    ----------------------------------------------------------------------
    BUILD FAILED

    -----
    Dernière modification par gienas ; 16/03/2009 à 17h06. Motif: Ajouté balises code

  2. #2
    invitec63490c6

    Re : Problème sous MpLAB C30

    et voila programme en pièce jointe.
    Fichiers attachés Fichiers attachés

Discussions similaires

  1. Programmer en C sous Mplab.
    Par invite2a128a15 dans le forum Électronique
    Réponses: 10
    Dernier message: 01/12/2008, 10h12
  2. Problème en simulation sous MPLAB!
    Par invite953f8104 dans le forum Électronique
    Réponses: 1
    Dernier message: 10/09/2008, 17h28
  3. Créer un programme en multi-fichiers sous MPLAB?
    Par invite953f8104 dans le forum Électronique
    Réponses: 13
    Dernier message: 06/09/2008, 20h59
  4. comment réaliser un programme sous mplab pour un afficheur lcd
    Par invitecec8a619 dans le forum Électronique
    Réponses: 16
    Dernier message: 03/07/2008, 14h08
Dans la rubrique Tech de Futura, découvrez nos comparatifs produits sur l'informatique et les technologies : imprimantes laser couleur, casques audio, chaises gamer...