1
\$\begingroup\$

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?

asked Oct 2, 2015 at 8:45
\$\endgroup\$
2
  • \$\begingroup\$ Does it compile ok? There are known errors with the syntax checker in the IDE. They have been around for a while. \$\endgroup\$ Commented 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\$ Commented Oct 2, 2015 at 9:23

1 Answer 1

2
\$\begingroup\$

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.

m.Alin
10.9k20 gold badges66 silver badges90 bronze badges
answered Oct 2, 2015 at 11:14
\$\endgroup\$
1
  • \$\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\$ Commented Oct 2, 2015 at 14:15

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.