Autor Tema: Error al detectar PIC C18  (Leído 2086 veces)

0 Usuarios y 1 Visitante están viendo este tema.

Desconectado conilete

  • PIC10
  • *
  • Mensajes: 29
Error al detectar PIC C18
« en: 06 de Septiembre de 2010, 13:20:53 »
Hola a todos,

Estoy programando en MPLAB v8.56 con el compilador C18 v3.10.
Estoy probando un codigo que se incluye como ejemplo en una libreria de comunicacion para bus CAN.
Al compilar, y despues de solventar (o eso creo) muchos problemas, me aparecen los siguientes mensajes:

Código: [Seleccionar]
Make: The target "C:\Documents and Settings\Administrador\Escritorio\proyecto-can\co_init.o" is up to date.
Make: The target "C:\Documents and Settings\Administrador\Escritorio\proyecto-can\objects.o" is up to date.
Make: The target "C:\Documents and Settings\Administrador\Escritorio\proyecto-can\main.o" is out of date.
Executing: "C:\MCC18\bin\mcc18.exe" -p=18F2680 /i"C:\port\CANopenLibrary\canopen\include" -I"C:\MCC18\h" "main.c" -fo="main.o" -D__DEBUG -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
C:\Documents and Settings\Administrador\Escritorio\proyecto-can\main.c:225:Warning [2058] call of function without prototype
C:\Documents and Settings\Administrador\Escritorio\proyecto-can\main.c:242:Warning [2058] call of function without prototype
C:\Documents and Settings\Administrador\Escritorio\proyecto-can\main.c:250:Warning [2058] call of function without prototype
C:\Documents and Settings\Administrador\Escritorio\proyecto-can\main.c:252:Warning [2058] call of function without prototype
C:\Documents and Settings\Administrador\Escritorio\proyecto-can\main.c:261:Warning [2058] call of function without prototype
C:\Documents and Settings\Administrador\Escritorio\proyecto-can\main.c:272:Warning [2058] call of function without prototype
C:\Documents and Settings\Administrador\Escritorio\proyecto-can\main.c:279:Warning [2058] call of function without prototype
C:\Documents and Settings\Administrador\Escritorio\proyecto-can\main.c:282:Warning [2058] call of function without prototype
C:\Documents and Settings\Administrador\Escritorio\proyecto-can\main.c:290:Warning [2058] call of function without prototype
C:\Documents and Settings\Administrador\Escritorio\proyecto-can\main.c:296:Warning [2058] call of function without prototype
Make: The target "C:\Documents and Settings\Administrador\Escritorio\proyecto-can\inicializacion.cof" is out of date.
Executing: "C:\MCC18\bin\mplink.exe" /p18F2680 /l"C:\MCC18\lib" /k"C:\MCC18\bin\LKR" /k"C:\MCC18\lkr" "co_init.o" "objects.o" "main.o" /u_CRUNTIME /u_DEBUG /z__MPLAB_BUILD=1 /z__MPLAB_DEBUG=1 /o"inicializacion.cof" /M"inicializacion.map" /W
MPLINK 4.1, Linker
Copyright (c) 2006 Microchip Technology Inc.
Error - unknown switch: /p18F2680
Errors    : 1

Link step failed.

Parece que no me reconoce el pic en cuestion, y no se por que, puesto que el include que contiene los .h de los pic's estan correctamente incluidos en el build options de mplab.

En cuanto a los warnings, tampoco se que aparecen, puesto que, por ejemplo, se refieren a llamadas a funciones como:
PRINTF("\nSTOP\n");

Agradeceria mucho vuestros consejos y comentarios.
Un saludo
Miguel Angel

Desconectado Suky

  • Moderador Local
  • DsPIC33
  • *****
  • Mensajes: 6758
Re: Error al detectar PIC C18
« Respuesta #1 en: 06 de Septiembre de 2010, 13:38:05 »
No contesto mensajes privados, las consultas en el foro