AnsweredAssumed Answered

Bit definition error - IAR Workbench with STM32F4Discovery

Question asked by lieber.sommer on Jul 28, 2015
Latest reply on Jul 28, 2015 by Clive One
I am a beginner with embedded programming and am using the IAR workbench for a project of mine using `STM32F4Discovery`. I am trying to compile an existing code and have a few errors at  a few places regarding the bit definitions like the following:

`Error[Pe020]: identifier "GPIO_PIN_SET" is undefined`


Now, the `GPIO_PIN_SET` is defined in the file `stm32f4xx_gpio_hal.h` and is already included in my project. In order to resolve this issue when I looked up online, I have found this this solution. However, I don't have the `System`  tab in the `General Options` in my IAR Workbench. I have a full version of IAR Workbench and am not sure why the `System` tab is missing. 


I also tried defining


    #define ENABLE_BIT_DEFINITIONS

as stated in this link in my `main.c` file but to no avail. Trying to set 

    #define STM32F4XX
    #define USE_STDPERIPH_DRIVER

in the `main.c` file or defining the symbols `STM32F4XX`, `USE_STDPERIPH_DRIVER` in the `Preprocessor` tab in `General Options` as mentioned here also didn't help.

The solution could be very simple that I am probably overlooking but am not able to figure out what could I be missing. Any help would be appreciated

Outcomes