Wrongly marked as unresolved [message #1755286] |
Thu, 02 March 2017 02:22  |
Eclipse User |
|
|
|
Dear Forum Members
Using a Mega 2560 board, calls to the 'extra' hardware serial ports (other than the standard) are consistently marked as 'could not be resolved' (red wiggly line). However, they build and run fine.
I've seen a similar post, but can't find it anymore. Its an annoyance more than a problem, just another item for the to-do list (sorry Dave).
|
|
|
|
Re: Wrongly marked as unresolved [message #1781406 is a reply to message #1755286] |
Tue, 06 February 2018 16:46  |
Eclipse User |
|
|
|
I did encounter the same issue. Though the solution was a bit different for me. Therefore documenting this here, in case somebody else is running into the same problem.
Setup:
- Eclipse Oxygen (4.7.2)
- OS: Linux Mint & Windows 10 (error is reproducible in both environments)
- Eclipse C++ IDE for Arduino 3.0
- Arduino AVR Boards 1.6.20
Issue:
No problem with the declaration of the ports A0 - A7. This was correctly resolved.
But the declaration for the addional ports A8 - A15 on my Mega 2560 board could not be resolved, resulting in error messages in the syntax check.
These ports are declared in pins_arduino.h which is board specific and which is included via Arduino.h.
Of course I had the connection and launch target correctly configured for the Mega 2560 board.
When navigating to pins_arduino.h via the outline view in Eclipse, the correct pins_arduino.h file was opened. The one for Mega 2560 with all ports A0 - A15 declared.
Though when navigating to the declaration of one of the ports A0 - A7 directly in the editor, the wrong pins_arduino.h file was opened. The one from Arduino Uni with just the ports A0 - A7.
Solution:
Preferences -> C/C++ -> Indexer
Temporarily activating "Index source and header files opened in editor" did solve the issue for me.
Seems like a bug in the indexer.
|
|
|
Powered by
FUDForum. Page generated in 0.03720 seconds