出现问题:
按下复位按键测试灯亮。(但串口无数据输出)
按下复位按键测试灯不亮。(串口也无数据输出)
int main(void)
{
/* Unlock the Flash Program Erase controller */
FLASH_If_Init();
STM_EVAL_LEDInit(LED1);
/* Initialize Key Button mounted on STM324xG-EVAL board */
STM_EVAL_PBInit(BUTTON_WAKEUP, BUTTON_MODE_GPIO);
/* Test if Key push-button on STM324xG-EVAL Board is pressed */
if (STM_EVAL_PBGetState(BUTTON_WAKEUP) == 0x00)
{
/* Execute the IAP driver in order to reprogram the Flash */
IAP_Init();
STM_EVAL_LEDOn(LED1);
/* Display main menu */
Main_Menu ();