Salut,
je tente de créer un petit programme de test pour mon PIC 18F2680 dans MPLAB mais j'ai beaucoup d'erreurs de compilation, pouvez_vous me dire quel est le problème?
code asm :
Code:include "P18F2680.inc" delay: MOVLW FFh DECFSZ WREG RETURN main: CLRF PORTA CLRF LATA CLRF TRISA label: MOVLW FFh MOVWF PORTA RCALL delay MOVLW 00h MOVWF PORTA RCALL delay GOTO label GOTO main END
Voilà le résultat de la compilation :
Code:---------------------------------------------------------------------- Debug build of project `G:\carte_ack mplab\carte_ack.mcp' started. Language tool versions: MPASMWIN.exe v5.30.01, mplink.exe v4.30.01 Preprocessor symbol `__DEBUG' is defined. Thu May 28 16:21:17 2009 ---------------------------------------------------------------------- Clean: Deleting intermediary and output files. Clean: Done. Executing: "C:\Program Files\Microchip\MPASM Suite\MPASMWIN.exe" /q /p18F2680 "carte_ack.asm" /l"carte_ack.lst" /e"carte_ack.err" /d__DEBUG=1 Warning[205] G:\CARTE_ACK MPLAB\CARTE_ACK.ASM 1 : Found directive in column 1. (include) Error[113] G:\CARTE_ACK MPLAB\CARTE_ACK.ASM 4 : Symbol not previously defined (FFh) Warning[203] G:\CARTE_ACK MPLAB\CARTE_ACK.ASM 6 : Found opcode in column 1. (RETURN) Warning[207] G:\CARTE_ACK MPLAB\CARTE_ACK.ASM 12 : Found label after column 1. (label) Error[113] G:\CARTE_ACK MPLAB\CARTE_ACK.ASM 13 : Symbol not previously defined (FFh) Warning[203] G:\CARTE_ACK MPLAB\CARTE_ACK.ASM 20 : Found opcode in column 1. (GOTO) Warning[205] G:\CARTE_ACK MPLAB\CARTE_ACK.ASM 21 : Found directive in column 1. (END) Halting build on first failure as requested. ---------------------------------------------------------------------- Debug build of project `G:\carte_ack mplab\carte_ack.mcp' failed. Language tool versions: MPASMWIN.exe v5.30.01, mplink.exe v4.30.01 Preprocessor symbol `__DEBUG' is defined. Thu May 28 16:21:21 2009 ---------------------------------------------------------------------- BUILD FAILED
-----