Author Topic: Codecompletion AVR GCC with Toolchain from Atmel  (Read 3536 times)

Offline sledge77

  • Single posting newcomer
  • *
  • Posts: 2
Codecompletion AVR GCC with Toolchain from Atmel
« on: January 02, 2015, 01:21:53 am »
Hi,

I'm pretty new to Code::Blocks.
I want to use it for my Atmel AVR 8bit Microcontrollers.
The projects that I created so far are working, but I can't get the CodeCompletion plugin to work for me.
I'm using the nightly build from the 6th of december.
I'm using the toolchain, include files and libraries from my AVR Studion installation.
It seems that some parts are working (like _delay_ms()), but others like DDRC or PINC5 are not working.
I have no idea where to look to find a solution to my problem.
Can somebody give me a hint?

Thanks in advance

Jens

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Codecompletion AVR GCC with Toolchain from Atmel
« Reply #1 on: January 02, 2015, 01:39:48 am »
If the things you want to complete are heavy macros or c++ templates there is a chance that the parser won't supported them.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline sledge77

  • Single posting newcomer
  • *
  • Posts: 2
Re: Codecompletion AVR GCC with Toolchain from Atmel
« Reply #2 on: January 02, 2015, 01:46:55 am »
Thanks for your response.

Can't tell if these macros are heavy. I'm definetly not using C++ Templates.
But I played around with the macros.
There is one include (related to the DDRC...) that is defined in io.h inside of an #ifdef.
If I include this file directly it works.
So it seems to be related to the macros.

Thanks for your help.

Jens