Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » CDT » Defined Symbol not working? (STM32 Header file isn't being included)
icon9.gif  Defined Symbol not working? [message #1015745] Fri, 01 March 2013 22:16
Rowan Doherty is currently offline Rowan Doherty
Messages: 1
Registered: March 2013
Location: Melbourne, Australia
Junior Member
I'm trying to get going with Eclipse/CDT and the STM32F4 Microprocessor libraries, and I've noticed a few funny things while setting up, but I'm guessing it's just due to a lack of understanding.

I have a project called "AbsMemAddress" setup, with a whole bunch of source files. It's basically just a test project.

main.c includes stm32f4xx.h which will include stm32f4xx_conf.h but only *IF* the USE_STDPERIPH_DRIVER symbol is defined.

Now, in Project -> Properties -> C/C++ Build -> Settings -> Cross GCC Compiler -> Symbols I placed this define in the Debug configuration section, but the software didn't seem to be picking up on this fact when I went to compile (the conf.h file definitions weren't being included. That was, until I thought "Maybe I was building for Release rather than Debug".
I checked and I wasn't, but I decided to place USE_STDPERIPH_DRIVER into the Release Symbols anyway.
After doing this, the build stopped throwing errors. I then deleted the define from the Release section, and it still worked. Confused

What's going on? Does the IDE only update the defined symbols on an irregular basis?
 
Read Message icon9.gif
Previous Topic:post build action
Next Topic:errors compiling MAC
Goto Forum:
  


Current Time: Thu May 23 18:21:59 EDT 2013

Powered by FUDForum. Page generated in 0.01646 seconds