I'm using XC8 for a project in MPALBX using a PIC18F26K80 and I'm getting lots of Unable to resolve Identifier
errors in the editor:
ASM Syntax errors in MPLABX
The code works compiles an runs correctly but the syntax checker in the editor is driving me crazy, highlighting every line in assembler with these errors.
I tried a bunch of things that seemed to make it better, like using _asm
right after the #asm
directive, but it always creates some other kind of error instead.
Is there a setting I'm missing or is this just a sorry state of affairs and I have to live with it?
-
\$\begingroup\$ Does it compile ok? There are known errors with the syntax checker in the IDE. They have been around for a while. \$\endgroup\$Roger Rowland– Roger Rowland2015年10月02日 09:17:54 +00:00Commented Oct 2, 2015 at 9:17
-
\$\begingroup\$ As @Roger said, if it compiles OK, don't worry about it. The MPLAB X parser isn't that great. I don't think there's anything you can do about it.. \$\endgroup\$m.Alin– m.Alin2015年10月02日 09:23:57 +00:00Commented Oct 2, 2015 at 9:23
1 Answer 1
MPLAB X has always had problems with the parser. If the code complies just ignore them. You didn't mention what version you are using but I've found that since version 3 the parser got much better.
-
\$\begingroup\$ Everything compiles just fine, so it looks like I'll have to live with these errors. I'd rather the parser just ignore the
#asm
sections rather than try to analyse their syntax using the wrong assumptions. \$\endgroup\$Renaud Bompuis– Renaud Bompuis2015年10月02日 14:15:41 +00:00Commented Oct 2, 2015 at 14:15