Community
Participate
Working Groups
Build Identifier: 20110916-0149 AVR Plug In (http://avr-eclipse.sourceforge.net/updatesite/) is successfully installed. When a project is created and a C source is written the controller specific ports, timers .. are marked with a "bug" with the content "Problem description: Symbol 'DDRB' could not be resolved" The same constellation runs without any problem with Ganymede and Helios. Reproducible: Always Steps to Reproduce: 1. Install Indigo for C/C++ developer 2. Install AVR Plug In http://avr-eclipse.sourceforge.net/updatesite/ 3. Create a project 4. Try to write a C source with controller specific ports
Created attachment 207269 [details] Screen shot of the problem Screen shot
Looks more like a CDT specific issue to me.
Hi Reinhard, can you try to build the project then rebuild the index? (Right-click in the project, Index, Rebuild). I think the indexer might be missing the F_CPU symbol definition and from what I can tell, it gets defined when the project is built.
Hi Marc_Andre, I did as you mentioned and saw a real strange behaviour. 1) I did a "Build" followed by a "Index rebuild" ==> no change "Bugs" are still there. 2) I did another "Build" followed by a "Index rebuild" ==> "Bugs" are gone and I'm happy because the recognition of wrong spelled ports works fine. 3) I closed and started Eclipse ==> "Bugs" are present again and "?" in front of the #include <stdint.h> #include <avr/io.h> #include <avr/interrupt.h> #include <inttypes.h> #include <avr/pgmspace.h> 4) I did a "Build" ==> "?" are gone and "Bugs" except for F_CPU, too. 5) I did a "Index rebuild" ==> and surprise all "Bugs" are back!! 6) A "Build" followed by a "Index rebuild" ==> all "Bugs" are gone but the recognition of wrong spelled ports is now not working. Step 3) to 5) is reproducible step 6) sometimes the wrong spelled ports are working or not.
Hi Guys, could you please try the new 2.4 Version of the AVR Plugin. It is available on sourcefourge: http://sourceforge.net/projects/avr-eclipse/files/avr-eclipse%20beta%20versions/ While it is still marked as a beta I haven't heard any complaints so far and I will mark it as stable shortly. The new version tries to fix the problem of not finding defined symbols by cleaning the discovered path & symbol cache and rebuilding the index whenever the target MCU is changed.
Reinhard, did you try the new version of the AVR Plugin?
I have test the new 2.4 AVR Plugin with INDIGO, but the problem is still the same. Helios and older Eclipse versions are working fine with 2.4 AVR Plugin.
(In reply to comment #7) > I have test the new 2.4 AVR Plugin with INDIGO, but the problem is still the > same. Thanks for testing it. Could you attach a sample project that demonstrates the problem? > Helios and older Eclipse versions are working fine with 2.4 AVR Plugin. Note that Helios and previous versions did not report problems found by the indexer. You can disable Syntax and Semantic errors in the preferences, it doesn't affect compiling. It's in Project properties, C/C++ General, Code Analysis. But it would be good to figure out why it doesn't work properly.
Hallo all, i`m registered here only to collaborate on this problem... This problem happens always in Eclipse C++. Only once time i have managed to solve this problem but i don't know how and i cannot reproduce the solution... But! I have noticed, that AVR plug-in works very well with Eclipse Indigo (latest) Classic. I have only added this plug-in. And.. When i have added C/C++ from original repository (ver 8.0.2) then this bug occurs! Uninstalled the C++ plug-in and works again perfect! Then there is a problem with compatibility between this 2 addons. So my solution is: Eclipse Classic + AVR plug-in only. CTRL+Space works perfectly without C plug-in. With best regards. Jaroslaw Domanski
I'm a bit confused by the last comment. Does the AVR plugin provide its own C editor?
If you're still seeing this problem, please feel free to reopen this bug.