Announcement

Collapse
No announcement yet.

Maybe a bug?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Maybe a bug?

    Latest PBP Pro gives the following list of errors when 3 lines of code is compiled for 18LF57K42 device.

    Code:
    a    var byte
    for a=0 to 10
    next a

    [ASM WARNING] Found label after column 1. (goto) (0) : Warning[207]
    [ASM ERROR] Illegal opcode (INIT) (0) : Error[122]
    [ASM WARNING] Found label after column 1. (clrf) (0) : Warning[207]
    [ASM ERROR] Illegal opcode (_a) (0) : Error[122]
    [ASM WARNING] Found label after column 1. (clrwdt) (0) : Warning[207]
    [ASM WARNING] Found label after column 1. (movlw) (0) : Warning[207]
    [ASM ERROR] Illegal opcode (low) (0) : Error[122]
    [ASM WARNING] Found label after column 1. (subwf) (0) : Warning[207]
    [ASM ERROR] Illegal opcode (_a) (0) : Error[122]
    [ASM ERROR] Symbol not previously defined (STATUS) (0) : Error[113]
    [ASM WARNING] Found label after column 1. (btfsc) (0) : Warning[207]
    [ASM ERROR] Illegal opcode (STATUS) (0) : Error[122]
    [ASM WARNING] Found label after column 1. (goto) (0) : Warning[207]
    [ASM ERROR] Illegal opcode (L00002) (0) : Error[122]
    [ASM WARNING] Found label after column 1. (incf) (0) : Warning[207]
    [ASM ERROR] Illegal opcode (_a) (0) : Error[122]
    [ASM WARNING] Found label after column 1. (btfss) (0) : Warning[207]
    [ASM ERROR] Illegal opcode (STATUS) (0) : Error[122]
    [ASM ERROR] Illegal opcode (L00001) (0) : Error[122]
    [ASM ERROR] UNTITLED.ASM (11) : Unknown processor (18LF57K42)
    [ASM ERROR] UNTITLED.ASM (12) : Cannot open file (Include File "P18LF57K42.INC" not found)
    [ASM ERROR] UNTITLED.ASM (38) : CONFIG Directive Error: (processor "18LF57K42" is invalid for CONFIG directive)
    [ASM ERROR] UNTITLED.ASM (39) : CONFIG Directive Error: (processor "18LF57K42" is invalid for CONFIG directive)
    [ASM ERROR] UNTITLED.ASM (40) : CONFIG Directive Error: (processor "18LF57K42" is invalid for CONFIG directive)
    [ASM ERROR] UNTITLED.ASM (41) : CONFIG Directive Error: (processor "18LF57K42" is invalid for CONFIG directive)
    [ASM ERROR] UNTITLED.ASM (42) : CONFIG Directive Error: (processor "18LF57K42" is invalid for CONFIG directive)
    [ASM ERROR] UNTITLED.ASM (43) : CONFIG Directive Error: (processor "18LF57K42" is invalid for CONFIG directive)
    [ASM ERROR] UNTITLED.ASM (44) : CONFIG Directive Error: (processor "18LF57K42" is invalid for CONFIG directive)
    [ASM ERROR] UNTITLED.ASM (45) : CONFIG Directive Error: (processor "18LF57K42" is invalid for CONFIG directive)
    [ASM ERROR] UNTITLED.ASM (46) : CONFIG Directive Error: (processor "18LF57K42" is invalid for CONFIG directive)
    [ASM ERROR] UNTITLED.ASM (47) : CONFIG Directive Error: (processor "18LF57K42" is invalid for CONFIG directive)
    [ASM ERROR] UNTITLED.ASM (48) : CONFIG Directive Error: (processor "18LF57K42" is invalid for CONFIG directive)
    [ASM ERROR] UNTITLED.ASM (49) : CONFIG Directive Error: (processor "18LF57K42" is invalid for CONFIG directive)
    [ASM ERROR] UNTITLED.ASM (50) : CONFIG Directive Error: (processor "18LF57K42" is invalid for CONFIG directive)
    [ASM ERROR] UNTITLED.ASM (51) : CONFIG Directive Error: (processor "18LF57K42" is invalid for CONFIG directive)
    [ASM ERROR] UNTITLED.ASM (52) : CONFIG Directive Error: (processor "18LF57K42" is invalid for CONFIG directive)
    [ASM ERROR] UNTITLED.ASM (53) : CONFIG Directive Error: (processor "18LF57K42" is invalid for CONFIG directive)
    [ASM ERROR] UNTITLED.ASM (54) : CONFIG Directive Error: (processor "18LF57K42" is invalid for CONFIG directive)
    [ASM ERROR] UNTITLED.ASM (55) : CONFIG Directive Error: (processor "18LF57K42" is invalid for CONFIG directive)
    [ASM ERROR] UNTITLED.ASM (56) : CONFIG Directive Error: (processor "18LF57K42" is invalid for CONFIG directive)
    [ASM ERROR] UNTITLED.ASM (57) : CONFIG Directive Error: (processor "18LF57K42" is invalid for CONFIG directive)
    [ASM ERROR] UNTITLED.ASM (58) : CONFIG Directive Error: (processor "18LF57K42" is invalid for CONFIG directive)
    [ASM ERROR] UNTITLED.ASM (59) : CONFIG Directive Error: (processor "18LF57K42" is invalid for CONFIG directive)
    [ASM ERROR] UNTITLED.ASM (60) : CONFIG Directive Error: (processor "18LF57K42" is invalid for CONFIG directive)
    [ASM ERROR] UNTITLED.ASM (61) : CONFIG Directive Error: (processor "18LF57K42" is invalid for CONFIG directive)
    [ASM ERROR] UNTITLED.ASM (62) : CONFIG Directive Error: (processor "18LF57K42" is invalid for CONFIG directive)
    [ASM ERROR] UNTITLED.ASM (63) : CONFIG Directive Error: (processor "18LF57K42" is invalid for CONFIG directive)
    [ASM ERROR] UNTITLED.ASM (64) : CONFIG Directive Error: (processor "18LF57K42" is invalid for CONFIG directive)
    [ASM ERROR] UNTITLED.ASM (65) : CONFIG Directive Error: (processor "18LF57K42" is invalid for CONFIG directive)
    [ASM ERROR] UNTITLED.ASM (66) : CONFIG Directive Error: (processor "18LF57K42" is invalid for CONFIG directive)
    [ASM ERROR] UNTITLED.ASM (67) : CONFIG Directive Error: (processor "18LF57K42" is invalid for CONFIG directive)
    [ASM ERROR] UNTITLED.ASM (68) : CONFIG Directive Error: (processor "18LF57K42" is invalid for CONFIG directive)
    [ASM ERROR] UNTITLED.ASM (69) : CONFIG Directive Error: (processor "18LF57K42" is invalid for CONFIG directive)
    [ASM ERROR] UNTITLED.ASM (184) : Symbol not previously defined (PORTB)
    [ASM ERROR] UNTITLED.ASM (186) : Symbol not previously defined (PORTC)
    [ASM ERROR] UNTITLED.ASM (188) : Symbol not previously defined (TRISB)
    [ASM ERROR] UNTITLED.ASM (190) : Symbol not previously defined (TRISC)
    [ASM ERROR] UNTITLED.ASM (253) : Processor type is undefined

    Ioannis

  • #2
    Ioanis, I just tried the above code alone with 18LF57K42 and got NO errors. I am running PBPX 3.1.1.4 which I believe is the latest.
    Dave Purola,
    N8NTA
    EN82fn

    Comment


    • #3
      Changed MCU and compiled just fine. Back to 57K42 and back to error...

      Ioannis

      Comment


      • #4
        These are the indicative errors:

        [ASM ERROR] UNTITLED.ASM (11) : Unknown processor (18LF57K42)
        [ASM ERROR] UNTITLED.ASM (12) : Cannot open file (Include File "P18LF57K42.INC" not found)

        The version of MPASMX doesn't support the 18LF57K42. You'll need to install the latest MPLABX and use PBP's setup utility to point to the new mpasmx folder.
        Charles Leo
        ME Labs, Inc.
        http://melabs.com

        Comment


        • #5
          Ooops, I did it...

          Thanks Charles.

          By the way, are there any good news regarding the integration of PBP into MPLABX?

          Ioannis

          Comment


          • #6
            Only bad news, I'm afraid. The developer that did the original work isn't available to do any further work on it. You can still compile and program from MPLABX, but the debugging tools are limited to stepping through the code. I believe you can set breakpoints in the program-memory view, but not in the source code.
            Charles Leo
            ME Labs, Inc.
            http://melabs.com

            Comment


            • #7
              You can still compile and program from MPLABX
              Just fyi... I haven't been able to install the plugin with the new version MPLABX 5.10

              Works with other versions, just not this one for some reason.

              Comment


              • #8
                Ok, thanks Charles.

                It is too hard, being late 2018, to install the PBP into the MPLABX. I tried it once and do not want to do it again every time I update either side of the tools.

                Updating PBP to the latest version unfortunately made it unable to compile. I was forced to uninstall MPLABX and reinstall (now a newer version) to make it functional again. It could not find the MPASMX although I did showed the path...

                Ioannis

                Comment


                • #9
                  I'll test it when I get time. I plan on some PBP updates during the holiday in a few weeks.
                  Charles Leo
                  ME Labs, Inc.
                  http://melabs.com

                  Comment


                  • #10
                    Originally posted by Charles Leo View Post
                    I'll test it when I get time. I plan on some PBP updates during the holiday in a few weeks.
                    Yaaaaahhh!!!!!!
                    We can crack this cotton PIC'n thang!

                    Comment

                    Working...
                    X