Even though i have changed to the buttons and led (0 to 3), but the led 0 & button 0 only remains functional. can anyone say ??
Even though i have changed to the buttons and led (0 to 3), but the led 0 & button 0 only remains functional. can anyone say ??
Did you change the defines of PIN_IN
and PIN_OUT
? If you want to use button and LED 4, the top of your application should look like this:
#ifdef BSP_BUTTON_3
#define PIN_IN BSP_BUTTON_3
#endif
#ifndef PIN_IN
#error "Please indicate input pin"
#endif
#ifdef BSP_LED_3
#define PIN_OUT BSP_LED_3
#endif
#ifndef PIN_OUT
#error "Please indicate output pin"
#endif
How did you flash the application? Did you modify the example? You should try debugging the application to see if any error codes are returned from function calls, causing your application to end up in the error handler (which again might reset the chip).
How did you flash the application? Did you modify the example? You should try debugging the application to see if any error codes are returned from function calls, causing your application to end up in the error handler (which again might reset the chip).