MPLAB Error with Assembly

Discussion in 'Embedded Systems and Microcontrollers' started by ELECTRONERD, Jan 8, 2011.

  1. ELECTRONERD

    Thread Starter Senior Member

    May 26, 2009
    1,146
    16
    Hey Everyone,

    I've just started learning assembly and have, of course, encountered some problems. I believe the code isn't really a problem, but rather the adequate directories in my build options? Although I'm not sure what settings are necessary in order to vindicate a successful build.

    Code ( (Unknown Language)):
    1. ;**************************************************
    2. ;        Author: Austin Schaller
    3. ;         Program: Blinking_LED_ASM.ASM
    4. ;        Date January 8th, 2011
    5. ;**************************************************
    6.  
    7. LIST    p=16F648A        ; Define Processor
    8. #include <p16F648a.inc>
    9.      CONFIG   _CP_OFF & _DATA_CP_OFF & _LVP_OFF & _BOREN_OFF & _MCLRE_OFF & _WDT_OFF & _PWRTE_OFF & _INTOSC_OSC_NOCLKOUT
    10.      
    11.      RADIX DEC        ; Define RADIX as a decimal unless otherwise noted
    12.      
    13.      ERRORLEVEL            -302        ; Supress bank switching messages
    14.      
    15.      ;Define RAM Location
    16.      CBLOCK             0x20
    17.                          Delay1
    18.                          Delay2
    19.                          Delay3
    20.      ENDC
    21.      
    22.      ORG                 0
    23.          
    24.      START
    25.          BANKSEL         TRISA
    26.          MOVLW            0xFF        ; Arrange PORTA bit 0 as output
    27.          MOVWF            TRISA
    28.              
    29.          MOVLW             0xFF        ; Arrange PORTB as output
    30.          MOVWF             TRISB
    31.          
    32.          MOVLW             0x07        ; Disable comparator
    33.          MOVWF             CMCON
    34.          
    35.          BLINK
    36.              BANKSEL        PCON        ; Switch to bank 1
    37.              BSF            PCON, 3        ; Set internal oscillator to 4MHz
    38.              BANKSEL        PORTA
    39.              BSF            PORTA, 1        ; Turn on output to LED
    40.              CALL         Delay_1s        ; Wait
    41.              BCF            PORTA, 1        ; Turn off output to LED
    42.              CALL         Delay_1s        ; Wait
    43.              GOTO BLINK
    44.              
    45.              
    46.      ; Subroutines
    47.      Delay_1s
    48.          MOVLW             255        ; This is 1 second
    49.          MOVWF             Delay1
    50.          MOVWF             Delay2
    51.          
    52.          MOVLW            0x05
    53.          MOVWF            Delay3
    54.          
    55.          Wait
    56.              DECFSZ        Delay, F
    57.              GOTO         Wait
    58.              DECFSZ        Delay2, F
    59.              GOTO         Wait
    60.              DECFSZ        Delay3, F    
    61.              RETURN
    62.              
    63.      END
    The PIC I'm using is irrelevant at this point, as I am just trying to get a successful build in sequence. Does anybody know what's wrong?

    I would appreciate your assistance!

    Thanks,

    Austin
     
  2. Markd77

    Senior Member

    Sep 7, 2009
    2,803
    594
    What errors do you get?
    I think you need to set the device in the "configure, select device" menu as well as in the code. Otherwise it works for me without any problems.
     
  3. ELECTRONERD

    Thread Starter Senior Member

    May 26, 2009
    1,146
    16
    Here are the errors, and I did change the "Configure---> Select Device" option to the particular PIC I'm using.

    Code ( (Unknown Language)):
    1. ----------------------------------------------------------------------
    2. Debug build of project `C:\Documents and Settings\Parent\My Documents\MPLAB C Projects\Blinking_LED_ASM.mcp' started.
    3. Language tool versions: mpasmwin.exe v5.37, mplink.exe v4.37, mcc18.exe v3.36, mplib.exe v4.37
    4. Preprocessor symbol `__DEBUG' is defined.
    5. Sat Jan 08 18:24:34 2011
    6. ----------------------------------------------------------------------
    7. Clean: Deleting intermediary and output files.
    8. Clean: Done.
    9. Executing: "C:\MCC18\mpasm\mpasmwin.exe" /q /p16F648A "C:\Documents and Settings\Parent\My Documents\MPLAB Assembly Projects\Blinking_LED_ASM.asm" /l"Blinking_LED_ASM.lst" /e"Blinking_LED_ASM.err" /o"Blinking_LED_ASM.o" /d__DEBUG=1
    10. Warning[205] C:\DOCUMENTS AND SETTINGS\PARENT\MY DOCUMENTS\MPLAB ASSEMBLY PROJECTS\BLINKING_LED_ASM.ASM 7 : Found directive in column 1. (LIST)
    11. Warning[207] C:\DOCUMENTS AND SETTINGS\PARENT\MY DOCUMENTS\MPLAB ASSEMBLY PROJECTS\BLINKING_LED_ASM.ASM 17 : Found label after column 1. (Delay1)
    12. Warning[207] C:\DOCUMENTS AND SETTINGS\PARENT\MY DOCUMENTS\MPLAB ASSEMBLY PROJECTS\BLINKING_LED_ASM.ASM 18 : Found label after column 1. (Delay2)
    13. Warning[207] C:\DOCUMENTS AND SETTINGS\PARENT\MY DOCUMENTS\MPLAB ASSEMBLY PROJECTS\BLINKING_LED_ASM.ASM 20 : Found label after column 1. (START)
    14. Message[302] C:\DOCUMENTS AND SETTINGS\PARENT\MY DOCUMENTS\MPLAB ASSEMBLY PROJECTS\BLINKING_LED_ASM.ASM 23 : Register in operand not in bank 0.  Ensure that bank bits are correct.
    15. Message[302] C:\DOCUMENTS AND SETTINGS\PARENT\MY DOCUMENTS\MPLAB ASSEMBLY PROJECTS\BLINKING_LED_ASM.ASM 26 : Register in operand not in bank 0.  Ensure that bank bits are correct.
    16. Warning[207] C:\DOCUMENTS AND SETTINGS\PARENT\MY DOCUMENTS\MPLAB ASSEMBLY PROJECTS\BLINKING_LED_ASM.ASM 31 : Found label after column 1. (BLINK)
    17. Warning[207] C:\DOCUMENTS AND SETTINGS\PARENT\MY DOCUMENTS\MPLAB ASSEMBLY PROJECTS\BLINKING_LED_ASM.ASM 41 : Found label after column 1. (Delay_1s)
    18. Warning[207] C:\DOCUMENTS AND SETTINGS\PARENT\MY DOCUMENTS\MPLAB ASSEMBLY PROJECTS\BLINKING_LED_ASM.ASM 46 : Found label after column 1. (Wait)
    19. Error[113]   C:\DOCUMENTS AND SETTINGS\PARENT\MY DOCUMENTS\MPLAB ASSEMBLY PROJECTS\BLINKING_LED_ASM.ASM 47 : Symbol not previously defined (Delay)
    20. Error[129]   C:\DOCUMENTS AND SETTINGS\PARENT\MY DOCUMENTS\MPLAB ASSEMBLY PROJECTS\BLINKING_LED_ASM.ASM 52 : Expected (END)
    21. Halting build on first failure as requested.
    22. ----------------------------------------------------------------------
    23. Debug build of project `C:\Documents and Settings\Parent\My Documents\MPLAB C Projects\Blinking_LED_ASM.mcp' failed.
    24. Language tool versions: mpasmwin.exe v5.37, mplink.exe v4.37, mcc18.exe v3.36, mplib.exe v4.37
    25. Preprocessor symbol `__DEBUG' is defined.
    26. Sat Jan 08 18:24:36 2011
    27. ----------------------------------------------------------------------
    28. BUILD FAILED
    EDIT: I now recall that I had this same "'__DEBUG" error when I was utilizing C as my language. The problem was fixed by setting the build options appropriately, but since this is ASM, I'm not sure what settings are correct? Perhaps there are other settings as well?
     
    Last edited: Jan 8, 2011
  4. Markd77

    Senior Member

    Sep 7, 2009
    2,803
    594
    The first error is in the Wait subroutine. "Delay" should be "Delay1"

    The second error is a bit odd because it is "Expected END" and you have the end statement. I'll have an investigate tomorrow but it's beer o'clock now.

    The "Debug is defined" thing isn't an error, it's supposed to say that.
     
  5. wannaBinventor

    Member

    Apr 8, 2010
    179
    4
    I've had a few brews, so take what I saw with a grain of salt.

    As to the errors:

    "Delay" isn't defined. In your CBLOCK directive you defined "Delay1", "Delay2", and "Delay3" but there is no "Delay defined there.
    Basically, the assembler doesn't know where to put it because you didn't define it.

    I'm not positive on the "expected END" error, but I will tell you that I put my subroutines BEFORE my main program. I'd also but a "GOTO START" after the "ORG 0"

    Here's how I'd redo the code..... see if it works for you.
    Make sure you put two underscores before the CONFIG. This compiles fine.

    Code ( (Unknown Language)):
    1.  
    2. ;**************************************************
    3. ;        Author: Austin Schaller
    4. ;        MODIFIED BY:  The ever pompous wannaBinventor
    5. ;         Program: Blinking_LED_ASM.ASM
    6. ;        Date January 8th, 2011
    7. ;**************************************************
    8.  
    9. LIST    p=16F648A        ; Define Processor
    10. #include <p16F648a.inc>
    11. __CONFIG   _CP_OFF & _DATA_CP_OFF & _LVP_OFF & _BOREN_OFF & _MCLRE_OFF & _WDT_OFF & _PWRTE_OFF & _INTOSC_OSC_NOCLKOUT
    12.      
    13.      RADIX DEC        ; Define RADIX as a decimal unless otherwise noted
    14.      
    15.      ERRORLEVEL            -302        ; Supress bank switching messages
    16.      
    17.      ;Define RAM Location
    18.      CBLOCK             0x20
    19.                          Delay1
    20.                          Delay2
    21.                          Delay3
    22.      ENDC
    23.      
    24.      ORG    0
    25.      GOTO    START    
    26.      
    27.      ; Subroutines
    28.      Delay_1s
    29.          MOVLW             255        ; This is 1 second
    30.          MOVWF             Delay1
    31.          MOVWF             Delay2
    32.          
    33.          MOVLW            0x05
    34.          MOVWF            Delay3
    35.          
    36.          Wait
    37.              DECFSZ        Delay1, F
    38.              GOTO         Wait
    39.              DECFSZ        Delay2, F
    40.              GOTO         Wait
    41.              DECFSZ        Delay3, F    
    42.              RETURN
    43.              
    44.      
    45.                  
    46.          
    47.      START
    48.          BANKSEL         TRISA
    49.          MOVLW            0xFF        ; Arrange PORTA bit 0 as output
    50.          MOVWF            TRISA
    51.              
    52.          MOVLW             0xFF        ; Arrange PORTB as output
    53.          MOVWF             TRISB
    54.          
    55.          MOVLW             0x07        ; Disable comparator
    56.          MOVWF             CMCON
    57.          
    58.          BLINK
    59.              BANKSEL        PCON        ; Switch to bank 1
    60.              BSF            PCON, 3        ; Set internal oscillator to 4MHz
    61.              BANKSEL        PORTA
    62.              BSF            PORTA, 1        ; Turn on output to LED
    63.              CALL         Delay_1s        ; Wait
    64.              BCF            PORTA, 1        ; Turn off output to LED
    65.              CALL         Delay_1s        ; Wait
    66.              GOTO BLINK
    67.            
    68.      END
    69.  
    70.  
     
  6. Markd77

    Senior Member

    Sep 7, 2009
    2,803
    594
    I got it to compile as well after changing Delay, adding the double underscore to config, but I also had to delete "&_DATA_CP_OFF" from the CONFIG to get it to complie.
     
  7. ELECTRONERD

    Thread Starter Senior Member

    May 26, 2009
    1,146
    16
    Mark, I implemented the same changes you advised and get the following errors with this code:

    Code:

    Code ( (Unknown Language)):
    1. ;**************************************************
    2. ;        Author: Austin Schaller
    3. ;         Program: Blinking_LED_ASM.ASM
    4. ;        Date January 8th, 2011
    5. ;**************************************************
    6.  
    7. LIST    p=16F648A        ; Define Processor
    8. #include <p16F648a.inc>
    9.      __CONFIG   _CP_OFF & _LVP_OFF & _BOREN_OFF & _MCLRE_OFF & _WDT_OFF & _PWRTE_OFF & _INTOSC_OSC_NOCLKOUT
    10.      
    11.      RADIX DEC        ; Define RADIX as a decimal unless otherwise noted
    12.      
    13.      ERRORLEVEL            -302        ; Supress bank switching messages
    14.      
    15.      ;Define RAM Location
    16.      CBLOCK                 0x20
    17.                              Delay1
    18.                              Delay2
    19.                              Delay3
    20.      ENDC
    21.      
    22.      ORG                     0
    23.      GOTO                     START
    24.          
    25.      START
    26.          BANKSEL             TRISA
    27.          MOVLW                0xFF        ; Arrange PORTA bit 0 as output
    28.          MOVWF                TRISA
    29.              
    30.          MOVLW                 0xFF        ; Arrange PORTB as output
    31.          MOVWF                 TRISB
    32.          
    33.          MOVLW                 0x07        ; Disable comparator
    34.          MOVWF                 CMCON
    35.          
    36.          BLINK
    37.              BANKSEL            PCON        ; Switch to bank 1
    38.              BSF                PCON, 3        ; Set internal oscillator to 4MHz
    39.              BANKSEL            PORTA
    40.              BSF                PORTA, 1        ; Turn on output to LED
    41.              CALL             Delay_1s        ; Wait
    42.              BCF                PORTA, 1        ; Turn off output to LED
    43.              CALL             Delay_1s        ; Wait
    44.              GOTO             BLINK
    45.              
    46.              
    47.      ; Subroutines
    48.      Delay_1s
    49.          MOVLW                 255        ; This is 1 second
    50.          MOVWF                 Delay1
    51.          MOVWF                 Delay2
    52.          
    53.          MOVLW                0x05
    54.          MOVWF                Delay3
    55.          
    56.          Wait
    57.              DECFSZ            Delay1, F
    58.              GOTO             Wait
    59.              DECFSZ            Delay2, F
    60.              GOTO             Wait
    61.              DECFSZ            Delay3, F    
    62.              RETURN
    63.              
    64.      END
    Errors:
    Code ( (Unknown Language)):
    1. ----------------------------------------------------------------------
    2. Debug build of project `C:\Documents and Settings\Parent\My Documents\MPLAB C Projects\Blinking_LED_ASM.mcp' started.
    3. Language tool versions: mpasmwin.exe v5.37, mplink.exe v4.37, mcc18.exe v3.36, mplib.exe v4.37
    4. Preprocessor symbol `__DEBUG' is defined.
    5. Sun Jan 09 09:43:31 2011
    6. ----------------------------------------------------------------------
    7. Make: The target "C:\Documents and Settings\Parent\My Documents\MPLAB C Projects\Blinking_LED_ASM.o" is out of date.
    8. Executing: "C:\MCC18\mpasm\mpasmwin.exe" /q /p18F1320 "C:\Documents and Settings\Parent\My Documents\MPLAB Assembly Projects\Blinking_LED_ASM.asm" /l"Blinking_LED_ASM.lst" /e"Blinking_LED_ASM.err" /o"Blinking_LED_ASM.o" /d__DEBUG=1
    9. Warning[205] C:\DOCUMENTS AND SETTINGS\PARENT\MY DOCUMENTS\MPLAB ASSEMBLY PROJECTS\BLINKING_LED_ASM.ASM 7 : Found directive in column 1. (LIST)
    10. Warning[215] C:\DOCUMENTS AND SETTINGS\PARENT\MY DOCUMENTS\MPLAB ASSEMBLY PROJECTS\BLINKING_LED_ASM.ASM 7 : Processor superseded by command line.  Verify processor symbol.
    11. Message[301] C:\MCC18\MPASM\P16F648A.INC 34 : MESSAGE: (Processor-header file mismatch.  Verify selected processor.)
    12. Warning[230] C:\DOCUMENTS AND SETTINGS\PARENT\MY DOCUMENTS\MPLAB ASSEMBLY PROJECTS\BLINKING_LED_ASM.ASM 9 : __CONFIG has been deprecated for PIC18 devices.  Use directive CONFIG.
    13. Error[126]   C:\DOCUMENTS AND SETTINGS\PARENT\MY DOCUMENTS\MPLAB ASSEMBLY PROJECTS\BLINKING_LED_ASM.ASM 9 : Argument out of range (not a valid config register address)
    14. Warning[207] C:\DOCUMENTS AND SETTINGS\PARENT\MY DOCUMENTS\MPLAB ASSEMBLY PROJECTS\BLINKING_LED_ASM.ASM 17 : Found label after column 1. (Delay1)
    15. Warning[207] C:\DOCUMENTS AND SETTINGS\PARENT\MY DOCUMENTS\MPLAB ASSEMBLY PROJECTS\BLINKING_LED_ASM.ASM 18 : Found label after column 1. (Delay2)
    16. Warning[207] C:\DOCUMENTS AND SETTINGS\PARENT\MY DOCUMENTS\MPLAB ASSEMBLY PROJECTS\BLINKING_LED_ASM.ASM 20 : Found label after column 1. (START)
    17. Warning[207] C:\DOCUMENTS AND SETTINGS\PARENT\MY DOCUMENTS\MPLAB ASSEMBLY PROJECTS\BLINKING_LED_ASM.ASM 31 : Found label after column 1. (BLINK)
    18. Warning[207] C:\DOCUMENTS AND SETTINGS\PARENT\MY DOCUMENTS\MPLAB ASSEMBLY PROJECTS\BLINKING_LED_ASM.ASM 41 : Found label after column 1. (Delay_1s)
    19. Warning[207] C:\DOCUMENTS AND SETTINGS\PARENT\MY DOCUMENTS\MPLAB ASSEMBLY PROJECTS\BLINKING_LED_ASM.ASM 46 : Found label after column 1. (Wait)
    20. Error[113]   C:\DOCUMENTS AND SETTINGS\PARENT\MY DOCUMENTS\MPLAB ASSEMBLY PROJECTS\BLINKING_LED_ASM.ASM 47 : Symbol not previously defined (Delay)
    21. Error[129]   C:\DOCUMENTS AND SETTINGS\PARENT\MY DOCUMENTS\MPLAB ASSEMBLY PROJECTS\BLINKING_LED_ASM.ASM 52 : Expected (END)
    22. Halting build on first failure as requested.
    23. ----------------------------------------------------------------------
    24. Debug build of project `C:\Documents and Settings\Parent\My Documents\MPLAB C Projects\Blinking_LED_ASM.mcp' failed.
    25. Language tool versions: mpasmwin.exe v5.37, mplink.exe v4.37, mcc18.exe v3.36, mplib.exe v4.37
    26. Preprocessor symbol `__DEBUG' is defined.
    27. Sun Jan 09 09:43:32 2011
    28. ----------------------------------------------------------------------
    29. BUILD FAILED
    wannaBinventor, I also tried your code and got these errors:

    Errors:
    Code ( (Unknown Language)):
    1. ----------------------------------------------------------------------
    2. Debug build of project `C:\Documents and Settings\Parent\My Documents\MPLAB C Projects\Blinking_LED_ASM.mcp' started.
    3. Language tool versions: mpasmwin.exe v5.37, mplink.exe v4.37, mcc18.exe v3.36, mplib.exe v4.37
    4. Preprocessor symbol `__DEBUG' is defined.
    5. Sun Jan 09 09:44:18 2011
    6. ----------------------------------------------------------------------
    7. Make: The target "C:\Documents and Settings\Parent\My Documents\MPLAB C Projects\Blinking_LED_ASM.o" is out of date.
    8. Executing: "C:\MCC18\mpasm\mpasmwin.exe" /q /p18F1320 "C:\Documents and Settings\Parent\My Documents\MPLAB Assembly Projects\Blinking_LED_ASM.asm" /l"Blinking_LED_ASM.lst" /e"Blinking_LED_ASM.err" /o"Blinking_LED_ASM.o" /d__DEBUG=1
    9. Warning[205] C:\DOCUMENTS AND SETTINGS\PARENT\MY DOCUMENTS\MPLAB ASSEMBLY PROJECTS\BLINKING_LED_ASM.ASM 7 : Found directive in column 1. (LIST)
    10. Warning[215] C:\DOCUMENTS AND SETTINGS\PARENT\MY DOCUMENTS\MPLAB ASSEMBLY PROJECTS\BLINKING_LED_ASM.ASM 7 : Processor superseded by command line.  Verify processor symbol.
    11. Message[301] C:\MCC18\MPASM\P16F648A.INC 34 : MESSAGE: (Processor-header file mismatch.  Verify selected processor.)
    12. Warning[230] C:\DOCUMENTS AND SETTINGS\PARENT\MY DOCUMENTS\MPLAB ASSEMBLY PROJECTS\BLINKING_LED_ASM.ASM 9 : __CONFIG has been deprecated for PIC18 devices.  Use directive CONFIG.
    13. Error[126]   C:\DOCUMENTS AND SETTINGS\PARENT\MY DOCUMENTS\MPLAB ASSEMBLY PROJECTS\BLINKING_LED_ASM.ASM 9 : Argument out of range (not a valid config register address)
    14. Warning[207] C:\DOCUMENTS AND SETTINGS\PARENT\MY DOCUMENTS\MPLAB ASSEMBLY PROJECTS\BLINKING_LED_ASM.ASM 17 : Found label after column 1. (Delay1)
    15. Warning[207] C:\DOCUMENTS AND SETTINGS\PARENT\MY DOCUMENTS\MPLAB ASSEMBLY PROJECTS\BLINKING_LED_ASM.ASM 18 : Found label after column 1. (Delay2)
    16. Warning[207] C:\DOCUMENTS AND SETTINGS\PARENT\MY DOCUMENTS\MPLAB ASSEMBLY PROJECTS\BLINKING_LED_ASM.ASM 20 : Found label after column 1. (START)
    17. Warning[207] C:\DOCUMENTS AND SETTINGS\PARENT\MY DOCUMENTS\MPLAB ASSEMBLY PROJECTS\BLINKING_LED_ASM.ASM 31 : Found label after column 1. (BLINK)
    18. Warning[207] C:\DOCUMENTS AND SETTINGS\PARENT\MY DOCUMENTS\MPLAB ASSEMBLY PROJECTS\BLINKING_LED_ASM.ASM 41 : Found label after column 1. (Delay_1s)
    19. Warning[207] C:\DOCUMENTS AND SETTINGS\PARENT\MY DOCUMENTS\MPLAB ASSEMBLY PROJECTS\BLINKING_LED_ASM.ASM 46 : Found label after column 1. (Wait)
    20. Error[113]   C:\DOCUMENTS AND SETTINGS\PARENT\MY DOCUMENTS\MPLAB ASSEMBLY PROJECTS\BLINKING_LED_ASM.ASM 47 : Symbol not previously defined (Delay)
    21. Error[129]   C:\DOCUMENTS AND SETTINGS\PARENT\MY DOCUMENTS\MPLAB ASSEMBLY PROJECTS\BLINKING_LED_ASM.ASM 52 : Expected (END)
    22. Halting build on first failure as requested.
    23. ----------------------------------------------------------------------
    24. Debug build of project `C:\Documents and Settings\Parent\My Documents\MPLAB C Projects\Blinking_LED_ASM.mcp' failed.
    25. Language tool versions: mpasmwin.exe v5.37, mplink.exe v4.37, mcc18.exe v3.36, mplib.exe v4.37
    26. Preprocessor symbol `__DEBUG' is defined.
    27. Sun Jan 09 09:44:19 2011
    28. ----------------------------------------------------------------------
    29. BUILD FAILED
    30.  
    I don't think this is a bug problem anymore, but rather my settings. What are both your settings in build options?
     
  8. ELECTRONERD

    Thread Starter Senior Member

    May 26, 2009
    1,146
    16
    What would be better, I noticed, is to have code that lists numbers for each line. So, I posted it in mufnet.

    My updated code.

    wannaBinventor's modified code.
     
  9. Markd77

    Senior Member

    Sep 7, 2009
    2,803
    594
    I don't have any settings, I'm using Quickbuild mode.
    You seem to still be getting odd errors, suggesting that the wrong PIC device is selected and also some of the problems like "Delay" that have been fixed are still in the error report. Maybe project files are corrupted, although I've never seen it before.
    Maybe copy the code and create a new project in a new directory, or try without creating a project to see what happens.
     
  10. ELECTRONERD

    Thread Starter Senior Member

    May 26, 2009
    1,146
    16
    I tried restoring the default settings and when I build, I get the picture in the attachment. What should I do? You can find your settings for this in: Project ---> Build Options ---> Project --->MPASM/C17/C18 Suite.

    Also, where is the "Quickbuild" mode? How can I confer my settings with yours?

    [​IMG]
     
  11. Markd77

    Senior Member

    Sep 7, 2009
    2,803
    594
    Absolute every time.

    Quickbuild mode, you just go to file menu, click new, then save with the ".asm" extension. You can then use quickbuild in the project menu. It's OK for testing code but your screen layout and other things don't get saved.
     
  12. ELECTRONERD

    Thread Starter Senior Member

    May 26, 2009
    1,146
    16
    I tried a new project file, and it creates more problems. Now my build stops right in the middle and won't continue; it keeps saying "Executing...".
     
  13. Markd77

    Senior Member

    Sep 7, 2009
    2,803
    594
    I haven't changed any settings since installing about a week ago. (It's on Ubuntu running with WINE, but that shouldn't make any difference).
    I think you've covered all the possibilities I can think of now, does seem a strange problem.
    I think I heard once that there are problems with long paths, ie. putting the files in C:\pic would under some circumstances work, while a long path would cause problems. Not sure if that is the case any more.
    Might be an idea to try the Microchip forums too, there are a lot of experts on there.
     
  14. wannaBinventor

    Member

    Apr 8, 2010
    179
    4
    Something is wrong here. There's no way you should be able to get an "Error: ...not previously defined 'delay' " because my code changed that.

    Where is that error 126 taking you when you double click on it. Also, off the top of my head try and delete the "p" before the "p16F648a.inc" directive. The assembly can also act funny if you don't have everything justified correctly.

    Look at an example program and then match the spacing and what not on those.
     
    Last edited: Jan 10, 2011
  15. t06afre

    AAC Fanatic!

    May 11, 2009
    5,939
    1,222
    here is a zipped project that works just fine. No errors at all. You can try it.
     
  16. ELECTRONERD

    Thread Starter Senior Member

    May 26, 2009
    1,146
    16
    This is my exact problem now, since the build just freezes. Can someone attach the MPASMWIN.exe file they have (and please, one who has successfully built programs), since that appears to be corrupt on the latest version? I'm going to replace it with the current version I have.
     
  17. Markd77

    Senior Member

    Sep 7, 2009
    2,803
    594
  18. ELECTRONERD

    Thread Starter Senior Member

    May 26, 2009
    1,146
    16
    I forgot to mention that I have Windows XP, and that my computer is junk. ;)
     
  19. Markd77

    Senior Member

    Sep 7, 2009
    2,803
    594
    XP, the best ever operating system from MS. Any luck with either of the files? I forgot to mention that you have to rename one of them but you probably knew that. I'm using a windows emulator so the file should be exactly the same as on a windows system.
     
  20. t06afre

    AAC Fanatic!

    May 11, 2009
    5,939
    1,222
    I use MPLAB with PICKITs and ICD and all is running well under XP. But then I use 8.60 Perhaps It is best to backup all that you need, uninstall the all microchip software and then delete all under C:\Program files\Microchip\MPLAB IDE. So do a fresh install with a fresh download of MPlab 8.60 form Microchip http://ww1.microchip.com/downloads/en/DeviceDoc/MPLAB_IDE_v8_60.zip
     
Loading...