cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F3-Discoveryboard confusion about LED's

hhosburg
Associate II
Posted on November 04, 2016 at 12:42

I've compiled and linked the original  sources without modifications  of the board. After upload and starting the demo with the debugger the initialisation should start with LED3.

here the code snipped:

  /* Initialize LEDs and User Button available on STM32F3-Discovery board */

  STM_EVAL_LEDInit(LED3);

  STM_EVAL_LEDInit(LED4);

  STM_EVAL_LEDInit(LED5);

  STM_EVAL_LEDInit(LED6);

  STM_EVAL_LEDInit(LED7);

  STM_EVAL_LEDInit(LED8);

  STM_EVAL_LEDInit(LED9);

  STM_EVAL_LEDInit(LED10);

  STM_EVAL_PBInit(BUTTON_USER, BUTTON_MODE_EXTI);

  /* Configure the USB */

  Demo_USB();

 

  /* Reset UserButton_Pressed variable */

  UserButtonPressed = 0x00;

   

Stepping through the code until LED10  all led's should be light on  in the order where they are initialised.

But this doesn't happen. The order where the led's begin to go on is:

LED4 -> LED3 -> LED5 -> LED7  all other LEDs remain off.

Stepping unit the call Demo_USB() the function dos not return the while-statement:

  while ((bDeviceState != CONFIGURED)&&(USBConnectTimeOut != 0))

  {}

Don't know why this happen, any hint ?

Thanks for help.
0 REPLIES 0