AnsweredAssumed Answered

First simple Keil GPIO not working! HELP PLEASE!

Question asked by herring.trent on Aug 30, 2011
Latest reply on Sep 10, 2011 by herring.trent
So i took the Stm32 gpio.zip project and changed the configuration to the bank i wanted to use and changed the main to a very simple bit switch. can someone tell me why it wont work?


#include <stm32f10x_lib.h>                        // STM32F10x Library Definitions
#include "STM32_Init.h"                           // STM32 Initialization




/*----------------------------------------------------------------------------
  MAIN function
 *----------------------------------------------------------------------------*/
int main (void) {

  stm32_Init ();                                  // STM32 setup

  while (1) {                                     // Loop forever
    /* Set PE0 */
    GPIOE->ODR |= (1 << 5);

  } // end while
} // end main


                                                   

Outcomes