Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 364227 - With installed AVR Plugin controller specific ports, timers ... are not known.
Summary: With installed AVR Plugin controller specific ports, timers ... are not known.
Status: RESOLVED WORKSFORME
Alias: None
Product: CDT
Classification: Tools
Component: cdt-editor (show other bugs)
Version: 8.0.2   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Anton Leherbauer CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-19 15:29 EST by Reinhard Bergmann CLA
Modified: 2017-01-10 20:22 EST (History)
7 users (show)

See Also:


Attachments
Screen shot of the problem (96.00 KB, image/jpeg)
2011-11-19 15:34 EST, Reinhard Bergmann CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Reinhard Bergmann CLA 2011-11-19 15:29:51 EST
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
Comment 1 Reinhard Bergmann CLA 2011-11-19 15:34:08 EST
Created attachment 207269 [details]
Screen shot of the problem

Screen shot
Comment 2 Dani Megert CLA 2011-11-21 05:20:38 EST
Looks more like a CDT specific issue to me.
Comment 3 Marc-André Laperle CLA 2011-11-21 22:21:49 EST
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.
Comment 4 Reinhard Bergmann CLA 2011-11-22 15:44:15 EST
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.
Comment 5 Thomas Holland CLA 2012-01-05 17:24:05 EST
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.
Comment 6 Marc-André Laperle CLA 2012-03-07 00:19:10 EST
Reinhard, did you try the new version of the AVR Plugin?
Comment 7 Reinhard Bergmann CLA 2012-03-07 15:31:48 EST
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.
Comment 8 Marc-André Laperle CLA 2012-03-07 21:03:32 EST
(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.
Comment 9 Jaroslaw Domanski CLA 2012-06-18 13:29:39 EDT
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
Comment 10 Nathan Ridge CLA 2015-07-18 02:34:16 EDT
I'm a bit confused by the last comment. Does the AVR plugin provide its own C editor?
Comment 11 Nathan Ridge CLA 2017-01-10 20:22:04 EST
If you're still seeing this problem, please feel free to reopen this bug.