程序代码编译出现以下问题?
..\OBJ\project.axf: Error: L6218E: Undefined symbol RTC_GetCounter (referred from main.o).
..\OBJ\project.axf: Error: L6218E: Undefined symbol BKP_DeInit (referred from rtc.o).
..\OBJ\project.axf: Error: L6218E: Undefined symbol BKP_ReadBackupRegister (referred from rtc.o).
..\OBJ\project.axf: Error: L6218E: Undefined symbol BKP_WriteBackupRegister (referred from rtc.o).
..\OBJ\project.axf: Error: L6218E: Undefined symbol PWR_BackupAccessCmd (referred from rtc.o).
..\OBJ\project.axf: Error: L6218E: Undefined symbol RTC_ClearITPendingBit (referred from rtc.o).
..\OBJ\project.axf: Error: L6218E: Undefined symbol RTC_GetITStatus (referred from rtc.o).
..\OBJ\project.axf: Error: L6218E: Undefined symbol RTC_ITConfig (referred from rtc.o).
..\OBJ\project.axf: Error: L6218E: Undefined symbol RTC_SetCounter (referred from rtc.o).
..\OBJ\project.axf: Error: L6218E: Undefined symbol RTC_SetPrescaler (referred from rtc.o).
..\OBJ\project.axf: Error: L6218E: Undefined symbol RTC_WaitForLastTask (referred from rtc.o).
..\OBJ\project.axf: Error: L6218E: Undefined symbol RTC_WaitForSynchro (referred from rtc.o).
解决办法:
1、点击绿色的菱形图形,根据错误信息来添加所需的STM32系统文件。
大家觉得不错的话,请点个赞呗!