Forum: Mikrocontroller und Digitale Elektronik Error - Device not specified


von Beni W. (wenben)


Lesenswert?

hallo zusammen,
wollte nach Anleitung das HalloWelt Programm auf dem PicKit 3 versuchen 
doch nun wenn ich BuildAll drücke kommt:


----------------------------------------------------------------------
Debug build of project `C:\Users\HP\Desktop\MPLAB 8.50 Test Programm 
PicKit 3\helloworld.mcp' started.
Language tool versions: MPASMWIN.exe v5.42, mcc18.exe v3.40, mplib.exe 
v4.40
Preprocessor symbol `__DEBUG' is defined.
Fri Jan 27 23:02:46 2012
----------------------------------------------------------------------
Clean: Deleting intermediary and output files.
Clean: Deleted file "C:\Users\HP\Desktop\MPLAB 8.50 Test Programm PicKit 
3\01 Hello LED.o".
Clean: Done.
Executing: "C:\mplab_c-18\bin\mcc18.exe" -p=18F45K20 
"C:\Users\HP\Desktop\Testprogramme\PICkit 3 Debug Express Lessons\01 
Hello LED\01 Hello LED.c" -fo="01 Hello LED.o" -D__DEBUG -Ou- -Ot- -Ob- 
-Op- -Or- -Od- -Opa-
Executing: "C:\mplab_c-18\bin\_mplink.exe" /l"C:\Program 
Files\Microchip\mplabc18\v3.40\lib" 
"..\..\..\..\mplab_c-18\bin\LKR\18f45k20_g.lkr" "01 Hello LED.o" 
/z__MPLAB_BUILD=1 /z__MPLAB_DEBUG=1 /o"helloworld.cof" 
/M"helloworld.map" /W
MPLINK 4.40, Linker
Device Database Version 1.3
Copyright (c) 1998-2011 Microchip Technology Inc.
Error - Device not specified. Use /p option to specify a device.
Errors    : 1

Link step failed.
----------------------------------------------------------------------
Debug build of project `C:\Users\HP\Desktop\MPLAB 8.50 Test Programm 
PicKit 3\helloworld.mcp' failed.
Language tool versions: MPASMWIN.exe v5.42, mcc18.exe v3.40, mplib.exe 
v4.40
Preprocessor symbol `__DEBUG' is defined.
Fri Jan 27 23:02:46 2012
----------------------------------------------------------------------
BUILD FAILED




Was mach ich falsch?
von Wenben (Gast)


Lesenswert?

Hat niemand hilfe oder eine idee?
von Joachim D. (Firma: JDCC) (scheppertreiber)


Lesenswert?

Idee: Du hast dem Compiler nicht gesagt wie das Zielsystem heißt ...
von Herman (Gast)


Lesenswert?

Steht doch da:

Beni W. schrieb:
> Error - Device not specified. Use /p option to specify a device.
von Wenben (Gast)


Lesenswert?

Joachim Drechsel schrieb:
> Idee: Du hast dem Compiler nicht gesagt wie das Zielsystem heißt ...

Wie meinst du das das zielsystem ist doch mein pic in meinem fall der 
vom pickit 3 der 18f45k20
Am programm kann es nicht liegen, da es ein fertiges übungsprogramm von 
microchip ist
Muss ich noch was einstellen?
von Joachim D. (Firma: JDCC) (scheppertreiber)


Lesenswert?

> Error - Device not specified. Use /p option to specify a device.

Zumindest besteht Dein Compiler darauf. Mach es halt.
von Kein Name (Gast)


Lesenswert?

Für mich sieht das so aus, als würden Mplab- und c18-Version nicht 
zusammenpassen. 8.50 ist nicht mehr die neuste.

Device hast du ja angegeben. In der mplink Zeile findet sich ein 
18f45k20_g.lkr . Und das /p soll die IDE ja automatisch richtig machen.
Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.