出現(xiàn)這幾個(gè)錯(cuò)誤
outputBuzzer.axf: Error: L6218E: Undefined symbol GPIO_Init (referred from main.o).
.outputBuzzer.axf: Error: L6218E: Undefined symbol GPIO_PinRemapConfig (referred from main.o).
.outputBuzzer.axf: Error: L6218E: Undefined symbol GPIO_SetBits (referred from main.o).
.outputBuzzer.axf: Error: L6218E: Undefined symbol RCC_APB2PeriphClockCmd (referred from main.o).
一般原因是,庫(kù)函數(shù)未添加,在工程的 lib中加入 rcc.c文件即可
見(jiàn)圖: