MPLAB C30 v3.30 HATA VERİYOR

Başlatan erdtur, 21 Ekim 2011, 14:57:34

erdtur

Merhaba;

MPLAB C30 v3.30 derleyicide aşağıdaki kodu yazıyorum.

#include "p24F08KA102.h"
int counter; // for TRISB and PORTB declarations
int main (void)
{
counter = 1;
TRISB = 0; // configure PORTB for output
while(1) // do forever
{
PORTB = counter; // send value of 'counter' out PORTB
counter++;
}
return 0;
}


HATA VERİYOR NEDENDİR.


Language tool versions: pic30-as.exe v3.30, pic30-gcc.exe v3.30, pic30-ld.exe v3.30, pic30-ar.exe v3.30Fri Oct 21 14:55:07 2011----------------------------------------------------------------------Clean: Deleting intermediary and output files.Clean: Done.Executing: "C:\Program Files\Microchip\mplabc30\v3.30\bin\pic30-gcc.exe" -mcpu=24FJ16GA002 -x c -c   "Main.c" -o"Main.o" -g -WallIn file included from Main.c:1:c:/program files/microchip/mplabc30/v3.30/bin/bin/../../support/PIC24F/h/p24F08KA102.h:8:2: error: #error "Include file does not match processor setting"Main.c:16:2: warning: no newline at end of fileHalting build on first failure as requested.----------------------------------------------------------------------Release build of project `C:\Documents and Settings\Cemsan\My Documents\pic24fdeneme\deneme24f.mcp' failed.Language tool versions: pic30-as.exe v3.30, pic30-gcc.exe v3.30, pic30-ld.exe v3.30, pic30-ar.exe v3.30Fri Oct 21 14:55:08 2011----------------------------------------------------------------------BUILD FAILED

mozkan87

Include file does not match processor setting"Main.c:16:2: warning: no newline at end of fileHalting build on first failure..............
En alt satıra enter koyun.

iyildirim

Ek olarak, proje de tanımlı işlemci ile include file da tanımlanan uyumsuz..

Configure -> Select Device penceresinde çalışmak istediğiniz işlemci yi seçmeniz gerekli.


erdtur