This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Using Enumerations problem?

Hi,

I'm using the MCBSTM32E board with STM32F103ZE uC.

If I declare an enumeration type as 'static' in a function or as a global variable then the compiler signals no error or warning but the application simply does not run.

typedef enum{
first=1,
second=2
}TeMyEnum;

void vMyFunc(){
 static TeMyEnum eMyEnum=second;
}

Where do I go wrong?

Thanks
Henk

Parents
  • SOLVED!

    >Did you enable all errors/warnings in the compiler/linker settings?

    I always do.

    >Start Debugging

    I allready did but the debugger steps through my program but the Leds do not react.

    Both BOOTn pins connectors where unconnected on the board. The jumpers where positioned sidewards. After putting a jumper between BOOT0 and GND (Boot from Flash) the program and RESET buttons run solid as a rock!

    Henk (feeling a little ashame) ;-)

    Guys, thanks for your help!

Reply
  • SOLVED!

    >Did you enable all errors/warnings in the compiler/linker settings?

    I always do.

    >Start Debugging

    I allready did but the debugger steps through my program but the Leds do not react.

    Both BOOTn pins connectors where unconnected on the board. The jumpers where positioned sidewards. After putting a jumper between BOOT0 and GND (Boot from Flash) the program and RESET buttons run solid as a rock!

    Henk (feeling a little ashame) ;-)

    Guys, thanks for your help!

Children