Check alle échte Black Friday-deals Ook zo moe van nepaanbiedingen? Wij laten alleen échte deals zien

C code omzetten in een .hex file

Pagina: 1
Acties:

  • huub8
  • Registratie: Maart 2009
  • Laatst online: 28-06-2021
Ik heb een programmer gekocht (wisp 648) en een chip (16f84A), ik probeer nu volgens deze tutorials een led blink programmatje naar de chip te schrijven: http://www.hobbyprojects.com/pic_tutorials/tutorial4.html

De code is in C, maar ik moet het dus omzetten in een .hex file. Ik heb een hoop gegoogled en kom erop uit dat ik een compiler nodig heb die dit kan doen, uiteindelijk kwam ik op de mplab IDE uit, maar ik snap niet hoe deze werkt.

Ik heb dus gewoon een code in c en dat programma wil een .asm hebben om om te zetten, kan iemand mij verder helpen?

  • woutertje
  • Registratie: Maart 2002
  • Laatst online: 16:53
Ik vermoed dat er net zoals bij AVR Studio (de atmel tegenhanger) een C compiler nodig is. Voor Microchip is
dat bijvoorbeeld MPLAB C Compiler (http://www.microchip.com/...Id=1406&dDocName=en010014). Deze zul je dus naast MPLAB IDE apart moeten downloaden en in de IDE in moeten stellen. Verder moet deze IDE ook compatible zijn met je programmer.

[ Voor 16% gewijzigd door woutertje op 27-02-2010 19:15 ]


  • huub8
  • Registratie: Maart 2009
  • Laatst online: 28-06-2021
ik heb de evalutatie versie gedownload, maar heb geen idee hoe ik nu verder moet...

Ik heb dus alleen dit stukje code:

;*****Set up the Constants****

STATUS equ 03h ;Address of the STATUS register
TRISA equ 85h ;Address of the tristate register for port A
PORTA equ 05h ;Address of Port A
COUNT1 equ 08h ;First counter for our delay loops
COUNT2 equ 09h ;Second counter for our delay loops

;****Set up the port****

bsf STATUS,5 ;Switch to Bank 1
movlw 00h ;Set the Port A pins
movwf TRISA ;to output.
bcf STATUS,5 ;Switch back to Bank 0

;****Turn the LED on****

Start movlw 02h ;Turn the LED on by first putting
movwf PORTA ;it into the w register and then ;on the port

;****Start of the delay loop 1****

Loop1 decfsz COUNT1,1 ;Subtract 1 from 255
goto Loop1 ;If COUNT is zero, carry on.
decfsz COUNT2,1 ;Subtract 1 from 255
goto Loop1 ;Go back to the start of our loop. ;This delay counts down from ;255 to zero, 255 times

;****Delay finished, now turn the LED off****

movlw 00h ;Turn the LED off by first putting
movwf PORTA ;it into the w register and then on ;the port

;****Add another delay****

Loop2 decfsz COUNT1,1 ;This second loop keeps the
goto Loop2 ;LED turned off long enough for
decfsz COUNT2,1 ;us to see it turned off
goto Loop2 ;

;****Now go back to the start of the program

goto Start ;go back to Start and turn LED ;on again

;****End of the program****

end ;Needed by some compilers,
;and also just in case we miss ;the goto instruction.

[ Voor 94% gewijzigd door huub8 op 27-02-2010 19:43 ]


  • woutertje
  • Registratie: Maart 2002
  • Laatst online: 16:53
Hm, dat is assembly en geen C. Volgens mij zou MPLAB ide dat zo moeten kunnen compileren. Zit er niet
gewoon een compile knop ergens? Hier: http://www.covingtoninnovations.com/noppp/mplab.pdf staat een vrij duidelijke tutorial over het instellen van mplab ide.

[ Voor 32% gewijzigd door woutertje op 27-02-2010 20:04 ]


  • huub8
  • Registratie: Maart 2009
  • Laatst online: 28-06-2021
oke, (ik ben ken ook nog geen C, dus dat kan goed kloppen).

Echter moet ik dus een assembly file maken volgens dit stukje in jouw pdf:

Now it’s time to create or add an .ASM file. Right-click on Source
Files, navigate to your .ASM file, and add it. Or choose File, New,
type in at least part of the file, save it, and then add it. When you’re
done, your project will look like this:

Maar als ik hem dan opsla kan ik hem niet toevoegen aan de source files, het is een verkeerd type denk ik.

Edit: ik heb de code in een kladblok opgeslagen als een .asm file, en kon deze nu wel toevoegen. Maar als ik hem probeer te "compileren" krijg ik de volgende lijst errors:





----------------------------------------------------------------------
Debug build of project `C:\Documents and Settings\Henriette\Mijn documenten\Others\Huub\ledblink.mcp' started.
Language tool versions: MPASMWIN.exe v5.35, mplink.exe v4.35
Preprocessor symbol `__DEBUG' is defined.
Sat Feb 27 21:09:06 2010
----------------------------------------------------------------------
Make: The target "C:\Documents and Settings\Henriette\Mijn documenten\Others\Huub\ledblinkcode.o" is out of date.
Executing: "C:\Program Files\Microchip\MPASM Suite\MPASMWIN.exe" /q /p16F84A "ledblinkcode.asm" /l"ledblinkcode.lst" /e"ledblinkcode.err" /o"ledblinkcode.o" /d__DEBUG=1
Error[152] C:\DOCUMENTS AND SETTINGS\HENRIETTE\MIJN DOCUMENTEN\OTHERS\HUUB\LEDBLINKCODE.ASM 11 : Executable code and data must be defined in an appropriate section
Error[152] C:\DOCUMENTS AND SETTINGS\HENRIETTE\MIJN DOCUMENTEN\OTHERS\HUUB\LEDBLINKCODE.ASM 12 : Executable code and data must be defined in an appropriate section
Message[302] C:\DOCUMENTS AND SETTINGS\HENRIETTE\MIJN DOCUMENTEN\OTHERS\HUUB\LEDBLINKCODE.ASM 13 : Register in operand not in bank 0. Ensure that bank bits are correct.
Error[152] C:\DOCUMENTS AND SETTINGS\HENRIETTE\MIJN DOCUMENTEN\OTHERS\HUUB\LEDBLINKCODE.ASM 13 : Executable code and data must be defined in an appropriate section
Error[152] C:\DOCUMENTS AND SETTINGS\HENRIETTE\MIJN DOCUMENTEN\OTHERS\HUUB\LEDBLINKCODE.ASM 14 : Executable code and data must be defined in an appropriate section
Error[150] C:\DOCUMENTS AND SETTINGS\HENRIETTE\MIJN DOCUMENTEN\OTHERS\HUUB\LEDBLINKCODE.ASM 18 : Labels must be defined in a code or data section when making an object file
Error[152] C:\DOCUMENTS AND SETTINGS\HENRIETTE\MIJN DOCUMENTEN\OTHERS\HUUB\LEDBLINKCODE.ASM 18 : Executable code and data must be defined in an appropriate section
Error[152] C:\DOCUMENTS AND SETTINGS\HENRIETTE\MIJN DOCUMENTEN\OTHERS\HUUB\LEDBLINKCODE.ASM 19 : Executable code and data must be defined in an appropriate section
Error[150] C:\DOCUMENTS AND SETTINGS\HENRIETTE\MIJN DOCUMENTEN\OTHERS\HUUB\LEDBLINKCODE.ASM 23 : Labels must be defined in a code or data section when making an object file
Error[152] C:\DOCUMENTS AND SETTINGS\HENRIETTE\MIJN DOCUMENTEN\OTHERS\HUUB\LEDBLINKCODE.ASM 23 : Executable code and data must be defined in an appropriate section
Error[151] C:\DOCUMENTS AND SETTINGS\HENRIETTE\MIJN DOCUMENTEN\OTHERS\HUUB\LEDBLINKCODE.ASM 24 : Operand contains unresolvable labels or is too complex
Error[152] C:\DOCUMENTS AND SETTINGS\HENRIETTE\MIJN DOCUMENTEN\OTHERS\HUUB\LEDBLINKCODE.ASM 24 : Executable code and data must be defined in an appropriate section
Error[152] C:\DOCUMENTS AND SETTINGS\HENRIETTE\MIJN DOCUMENTEN\OTHERS\HUUB\LEDBLINKCODE.ASM 25 : Executable code and data must be defined in an appropriate section
Error[151] C:\DOCUMENTS AND SETTINGS\HENRIETTE\MIJN DOCUMENTEN\OTHERS\HUUB\LEDBLINKCODE.ASM 26 : Operand contains unresolvable labels or is too complex
Error[152] C:\DOCUMENTS AND SETTINGS\HENRIETTE\MIJN DOCUMENTEN\OTHERS\HUUB\LEDBLINKCODE.ASM 26 : Executable code and data must be defined in an appropriate section
Error[152] C:\DOCUMENTS AND SETTINGS\HENRIETTE\MIJN DOCUMENTEN\OTHERS\HUUB\LEDBLINKCODE.ASM 30 : Executable code and data must be defined in an appropriate section
Error[152] C:\DOCUMENTS AND SETTINGS\HENRIETTE\MIJN DOCUMENTEN\OTHERS\HUUB\LEDBLINKCODE.ASM 31 : Executable code and data must be defined in an appropriate section
Error[150] C:\DOCUMENTS AND SETTINGS\HENRIETTE\MIJN DOCUMENTEN\OTHERS\HUUB\LEDBLINKCODE.ASM 35 : Labels must be defined in a code or data section when making an object file
Error[152] C:\DOCUMENTS AND SETTINGS\HENRIETTE\MIJN DOCUMENTEN\OTHERS\HUUB\LEDBLINKCODE.ASM 35 : Executable code and data must be defined in an appropriate section
Error[151] C:\DOCUMENTS AND SETTINGS\HENRIETTE\MIJN DOCUMENTEN\OTHERS\HUUB\LEDBLINKCODE.ASM 36 : Operand contains unresolvable labels or is too complex
Error[152] C:\DOCUMENTS AND SETTINGS\HENRIETTE\MIJN DOCUMENTEN\OTHERS\HUUB\LEDBLINKCODE.ASM 36 : Executable code and data must be defined in an appropriate section
Error[152] C:\DOCUMENTS AND SETTINGS\HENRIETTE\MIJN DOCUMENTEN\OTHERS\HUUB\LEDBLINKCODE.ASM 37 : Executable code and data must be defined in an appropriate section
Error[151] C:\DOCUMENTS AND SETTINGS\HENRIETTE\MIJN DOCUMENTEN\OTHERS\HUUB\LEDBLINKCODE.ASM 38 : Operand contains unresolvable labels or is too complex
Error[152] C:\DOCUMENTS AND SETTINGS\HENRIETTE\MIJN DOCUMENTEN\OTHERS\HUUB\LEDBLINKCODE.ASM 38 : Executable code and data must be defined in an appropriate section
Error[151] C:\DOCUMENTS AND SETTINGS\HENRIETTE\MIJN DOCUMENTEN\OTHERS\HUUB\LEDBLINKCODE.ASM 42 : Operand contains unresolvable labels or is too complex
Error[152] C:\DOCUMENTS AND SETTINGS\HENRIETTE\MIJN DOCUMENTEN\OTHERS\HUUB\LEDBLINKCODE.ASM 42 : Executable code and data must be defined in an appropriate section
Warning[205] C:\DOCUMENTS AND SETTINGS\HENRIETTE\MIJN DOCUMENTEN\OTHERS\HUUB\LEDBLINKCODE.ASM 46 : Found directive in column 1. (end)
Halting build on first failure as requested.
----------------------------------------------------------------------
Debug build of project `C:\Documents and Settings\Henriette\Mijn documenten\Others\Huub\ledblink.mcp' failed.
Language tool versions: MPASMWIN.exe v5.35, mplink.exe v4.35
Preprocessor symbol `__DEBUG' is defined.
Sat Feb 27 21:09:06 2010
----------------------------------------------------------------------
BUILD FAILED

[ Voor 163% gewijzigd door huub8 op 27-02-2010 21:09 ]


  • huub8
  • Registratie: Maart 2009
  • Laatst online: 28-06-2021
Ik heb nu dit op het internet gevonden:
You need to define the code segment or the origin of the code, depending on your project type. Open the template folder in the MPLAB installation folder, there are two types of template files, one called object and the other is code.

Follow the skeleton in the template file, especially the lines that contain CODE statements for object type, or the ORG statement for the code type. These lines tell the compiler where to put the codes you've written.


Als ik in de template map zoek vind ik onder code voor mijn pic:




;**********************************************************************
; This file is a basic code template for assembly code generation *
; on the PIC16F84A. This file contains the basic code *
; building blocks to build upon. *
; *
; Refer to the MPASM User's Guide for additional information on *
; features of the assembler (Document DS33014). *
; *
; Refer to the respective PIC data sheet for additional *
; information on the instruction set. *
; *
;**********************************************************************
; *
; Filename: xxx.asm *
; Date: *
; File Version: *
; *
; Author: *
; Company: *
; *
; *
;**********************************************************************
; *
; Files Required: P16F84A.INC *
; *
;**********************************************************************
; *
; Notes: *
; *
;**********************************************************************


list p=16F84A ; list directive to define processor
#include <p16F84A.inc> ; processor specific variable definitions

__CONFIG _CP_OFF & _WDT_ON & _PWRTE_ON & _RC_OSC

; '__CONFIG' directive is used to embed configuration data within .asm file.
; The lables following the directive are located in the respective .inc file.
; See respective data sheet for additional information on configuration word.


;***** VARIABLE DEFINITIONS
w_temp EQU 0x0C ; variable used for context saving
status_temp EQU 0x0D ; variable used for context saving


;**********************************************************************
ORG 0x000 ; processor reset vector
goto main ; go to beginning of program


ORG 0x004 ; interrupt vector location
movwf w_temp ; save off current W register contents
movf STATUS,w ; move status register into W register
movwf status_temp ; save off contents of STATUS register


; isr code can go here or be located as a call subroutine elsewhere


movf status_temp,w ; retrieve copy of STATUS register
movwf STATUS ; restore pre-isr STATUS register contents
swapf w_temp,f
swapf w_temp,w ; restore pre-isr W register contents
retfie ; return from interrupt


main

; remaining code goes here


END ; directive 'end of program'






En dit is dus mijn code:




;*****Set up the Constants****

STATUS equ 03h ;Address of the STATUS register
TRISA equ 85h ;Address of the tristate register for port A
PORTA equ 05h ;Address of Port A
COUNT1 equ 08h ;First counter for our delay loops
COUNT2 equ 09h ;Second counter for our delay loops

;****Set up the port****

bsf STATUS,5 ;Switch to Bank 1
movlw 00h ;Set the Port A pins
movwf TRISA ;to output.
bcf STATUS,5 ;Switch back to Bank 0

;****Turn the LED on****

Start movlw 02h ;Turn the LED on by first putting
movwf PORTA ;it into the w register and then ;on the port

;****Start of the delay loop 1****

Loop1 decfsz COUNT1,1 ;Subtract 1 from 255
goto Loop1 ;If COUNT is zero, carry on.
decfsz COUNT2,1 ;Subtract 1 from 255
goto Loop1 ;Go back to the start of our loop. ;This delay counts down from ;255 to zero, 255 times

;****Delay finished, now turn the LED off****

movlw 00h ;Turn the LED off by first putting
movwf PORTA ;it into the w register and then on ;the port

;****Add another delay****

Loop2 decfsz COUNT1,1 ;This second loop keeps the
goto Loop2 ;LED turned off long enough for
decfsz COUNT2,1 ;us to see it turned off
goto Loop2 ;

;****Now go back to the start of the program

goto Start ;go back to Start and turn LED ;on again

;****End of the program****

end ;Needed by some compilers,
;and also just in case we miss ;the goto instruction.






Hoe maak ik mijn code nu dan goed?

  • woutertje
  • Registratie: Maart 2002
  • Laatst online: 16:53
Volgens mij zou het dan zo moeten werken, ik ben echter alleen bekend met de Atmel assembly variant.

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
;**********************************************************************
; This file is a basic code template for assembly code generation *
; on the PIC16F84A. This file contains the basic code *
; building blocks to build upon. * 
; *
; Refer to the MPASM User's Guide for additional information on *
; features of the assembler (Document DS33014). *
; *
; Refer to the respective PIC data sheet for additional *
; information on the instruction set. *
; *
;**********************************************************************
; *
; Filename:  xxx.asm *
; Date: *
; File Version: *
; *
; Author: *
; Company: *
; * 
; *
;**********************************************************************
; *
; Files Required: P16F84A.INC *
; *
;**********************************************************************
; *
; Notes: *
; *
;**********************************************************************


list p=16F84A ; list directive to define processor
#include <p16F84A.inc> ; processor specific variable definitions

__CONFIG _CP_OFF & _WDT_ON & _PWRTE_ON & _RC_OSC

; '__CONFIG' directive is used to embed configuration data within .asm file.
; The lables following the directive are located in the respective .inc file.
; See respective data sheet for additional information on configuration word.


;***** VARIABLE DEFINITIONS
STATUS equ 03h ;Address of the STATUS register
TRISA equ 85h ;Address of the tristate register for port A
PORTA equ 05h ;Address of Port A
COUNT1 equ 08h ;First counter for our delay loops
COUNT2 equ 09h ;Second counter for our delay loops 


;**********************************************************************
ORG 0x000 ; processor reset vector
goto main ; go to beginning of program

main

;****Set up the port**** 

bsf STATUS,5 ;Switch to Bank 1
movlw 00h ;Set the Port A pins
movwf TRISA ;to output.
bcf STATUS,5 ;Switch back to Bank 0 

;****Turn the LED on**** 

Start
movlw 02h ;Turn the LED on by first putting
movwf PORTA ;it into the w register and then ;on the port 

;****Start of the delay loop 1**** 

Loop1 decfsz COUNT1,1 ;Subtract 1 from 255
goto Loop1 ;If COUNT is zero, carry on.
decfsz COUNT2,1 ;Subtract 1 from 255
goto Loop1 ;Go back to the start of our loop. ;This delay counts down from ;255 to zero, 255 times

;****Delay finished, now turn the LED off**** 

movlw 00h ;Turn the LED off by first putting
movwf PORTA ;it into the w register and then on ;the port 

;****Add another delay**** 

Loop2 decfsz COUNT1,1 ;This second loop keeps the
goto Loop2 ;LED turned off long enough for 
decfsz COUNT2,1 ;us to see it turned off
goto Loop2 ; 

;****Now go back to the start of the program

goto Start ;go back to Start and turn LED ;on again 

END ; directive 'end of program'


Gecompileerd zou het dan dit moeten worden (kreeg wel een aantal warnings):

code:
1
2
3
4
5
6
:020000040000FA
:100000000128831600308500831202308500880B9A
:100010000728890B072800308500880B0D28890BDD
:040020000D2805287A
:02400E00F73F7A
:00000001FF

[ Voor 4% gewijzigd door woutertje op 27-02-2010 23:44 . Reden: Toevoeging hex code ]


  • huub8
  • Registratie: Maart 2009
  • Laatst online: 28-06-2021
Dank je Wouter, met deze code werkte hij!

Edit: Nog een vraag, hoe heb jij dit dan omgezet in een .hex file, want als ik het in mplab probeer krijg ik de volgende errors:

----------------------------------------------------------------------
Debug build of project `C:\ledblinkbotton.mcp' started.
Language tool versions: MPASMWIN.exe v5.35, mplink.exe v4.35
Preprocessor symbol `__DEBUG' is defined.
Sun Feb 28 21:42:42 2010
----------------------------------------------------------------------
Make: The target "C:\ledblinkbutton.o" is out of date.
Executing: "C:\Program Files\Microchip\MPASM Suite\MPASMWIN.exe" /q /p18F452 "Documents and Settings\Huub\Mijn documenten\pic projecten\ledblinkbutton.asm" /l"ledblinkbutton.lst" /e"ledblinkbutton.err" /o"ledblinkbutton.o" /d__DEBUG=1
Warning[205] DOCUMENTS AND SETTINGS\HUUB\MIJN DOCUMENTEN\PIC PROJECTEN\LEDBLINKBUTTON.ASM 33 : Found directive in column 1. (list)
Warning[215] DOCUMENTS AND SETTINGS\HUUB\MIJN DOCUMENTEN\PIC PROJECTEN\LEDBLINKBUTTON.ASM 33 : Processor superseded by command line. Verify processor symbol.
Message[301] C:\PROGRAM FILES\MICROCHIP\MPASM SUITE\P16F84A.INC 35 : MESSAGE: (Processor-header file mismatch. Verify selected processor.)
Error[126] C:\PROGRAM FILES\MICROCHIP\MPASM SUITE\P16F84A.INC 114 : Argument out of range (must be greater than or equal to 255)
Error[126] C:\PROGRAM FILES\MICROCHIP\MPASM SUITE\P16F84A.INC 115 : Argument out of range (__MAXRAM must be used first)
Error[126] C:\PROGRAM FILES\MICROCHIP\MPASM SUITE\P16F84A.INC 115 : Argument out of range (__MAXRAM must be used first)
Error[126] C:\PROGRAM FILES\MICROCHIP\MPASM SUITE\P16F84A.INC 115 : Argument out of range (__MAXRAM must be used first)
Warning[205] DOCUMENTS AND SETTINGS\HUUB\MIJN DOCUMENTEN\PIC PROJECTEN\LEDBLINKBUTTON.ASM 36 : Found directive in column 1. (__CONFIG)
Warning[230] DOCUMENTS AND SETTINGS\HUUB\MIJN DOCUMENTEN\PIC PROJECTEN\LEDBLINKBUTTON.ASM 36 : __CONFIG has been deprecated for PIC18 devices. Use directive CONFIG.
Error[126] DOCUMENTS AND SETTINGS\HUUB\MIJN DOCUMENTEN\PIC PROJECTEN\LEDBLINKBUTTON.ASM 36 : Argument out of range (not a valid config register address)
Warning[205] DOCUMENTS AND SETTINGS\HUUB\MIJN DOCUMENTEN\PIC PROJECTEN\LEDBLINKBUTTON.ASM 52 : Found directive in column 1. (ORG)
Warning[203] DOCUMENTS AND SETTINGS\HUUB\MIJN DOCUMENTEN\PIC PROJECTEN\LEDBLINKBUTTON.ASM 53 : Found opcode in column 1. (goto)
Warning[203] DOCUMENTS AND SETTINGS\HUUB\MIJN DOCUMENTEN\PIC PROJECTEN\LEDBLINKBUTTON.ASM 59 : Found opcode in column 1. (bsf)
Warning[203] DOCUMENTS AND SETTINGS\HUUB\MIJN DOCUMENTEN\PIC PROJECTEN\LEDBLINKBUTTON.ASM 60 : Found opcode in column 1. (movlw)
Warning[203] DOCUMENTS AND SETTINGS\HUUB\MIJN DOCUMENTEN\PIC PROJECTEN\LEDBLINKBUTTON.ASM 61 : Found opcode in column 1. (movwf)
Warning[203] DOCUMENTS AND SETTINGS\HUUB\MIJN DOCUMENTEN\PIC PROJECTEN\LEDBLINKBUTTON.ASM 62 : Found opcode in column 1. (bcf)
Warning[203] DOCUMENTS AND SETTINGS\HUUB\MIJN DOCUMENTEN\PIC PROJECTEN\LEDBLINKBUTTON.ASM 67 : Found opcode in column 1. (movlw)
Warning[203] DOCUMENTS AND SETTINGS\HUUB\MIJN DOCUMENTEN\PIC PROJECTEN\LEDBLINKBUTTON.ASM 68 : Found opcode in column 1. (movwf)
Warning[203] DOCUMENTS AND SETTINGS\HUUB\MIJN DOCUMENTEN\PIC PROJECTEN\LEDBLINKBUTTON.ASM 73 : Found opcode in column 1. (goto)
Warning[203] DOCUMENTS AND SETTINGS\HUUB\MIJN DOCUMENTEN\PIC PROJECTEN\LEDBLINKBUTTON.ASM 74 : Found opcode in column 1. (decfsz)
Warning[203] DOCUMENTS AND SETTINGS\HUUB\MIJN DOCUMENTEN\PIC PROJECTEN\LEDBLINKBUTTON.ASM 75 : Found opcode in column 1. (goto)
Warning[203] DOCUMENTS AND SETTINGS\HUUB\MIJN DOCUMENTEN\PIC PROJECTEN\LEDBLINKBUTTON.ASM 79 : Found opcode in column 1. (movlw)
Warning[203] DOCUMENTS AND SETTINGS\HUUB\MIJN DOCUMENTEN\PIC PROJECTEN\LEDBLINKBUTTON.ASM 80 : Found opcode in column 1. (movwf)
Warning[203] DOCUMENTS AND SETTINGS\HUUB\MIJN DOCUMENTEN\PIC PROJECTEN\LEDBLINKBUTTON.ASM 85 : Found opcode in column 1. (goto)
Warning[203] DOCUMENTS AND SETTINGS\HUUB\MIJN DOCUMENTEN\PIC PROJECTEN\LEDBLINKBUTTON.ASM 86 : Found opcode in column 1. (decfsz)
Warning[203] DOCUMENTS AND SETTINGS\HUUB\MIJN DOCUMENTEN\PIC PROJECTEN\LEDBLINKBUTTON.ASM 87 : Found opcode in column 1. (goto)
Warning[203] DOCUMENTS AND SETTINGS\HUUB\MIJN DOCUMENTEN\PIC PROJECTEN\LEDBLINKBUTTON.ASM 91 : Found opcode in column 1. (goto)
Warning[205] DOCUMENTS AND SETTINGS\HUUB\MIJN DOCUMENTEN\PIC PROJECTEN\LEDBLINKBUTTON.ASM 93 : Found directive in column 1. (END)
Halting build on first failure as requested.
----------------------------------------------------------------------
Debug build of project `C:\ledblinkbotton.mcp' failed.
Language tool versions: MPASMWIN.exe v5.35, mplink.exe v4.35
Preprocessor symbol `__DEBUG' is defined.
Sun Feb 28 21:42:43 2010
----------------------------------------------------------------------
BUILD FAILED

[ Voor 98% gewijzigd door huub8 op 28-02-2010 21:45 ]


  • huub8
  • Registratie: Maart 2009
  • Laatst online: 28-06-2021
Het is al gelukt, via configure / select device stond hij nog op een andere pic
Pagina: 1