KEIL compiles and reports an error
…\OBJ\USART.axf: Error: L6218E: Undefined symbol ADC_Cmd (referred from adc.o). …\OBJ\USART.axf: Error: L6218E: Undefined symbol ADC_DeInit (referred from adc.o). …\OBJ\USART.axf: Error: L6218E: Undefined symbol ADC_GetCalibrationStatus (referred from adc.o). …\OBJ\USART.axf: Error: L6218E: Undefined symbol ADC_GetConversionValue (referred from adc.o). …\OBJ\USART.axf: Error: L6218E: Undefined symbol ADC_GetFlagStatus (referred from adc.o). …\OBJ\USART.axf: Error: L6218E: Undefined symbol ADC_GetResetCalibrationStatus (referred from adc.o). …\OBJ\USART.axf: Error: L6218E: Undefined symbol ADC_Init (referred from adc.o). …\OBJ\USART.axf: Error: L6218E: Undefined symbol ADC_RegularChannelConfig (referred from adc.o). …\OBJ\USART.axf: Error: L6218E: Undefined symbol ADC_ResetCalibration (referred from adc.o). …\OBJ\USART.axf: Error: L6218E: Undefined symbol ADC_SoftwareStartConvCmd (referred from adc.o). …\OBJ\USART.axf: Error: L6218E: Undefined symbol ADC_StartCalibration (referred from adc.o).
Go to Manage Project Items and add adc.c under FWLib, see the picture below for the exact location, I used the project template of Positive Point Atomic, anyway, find the adc.c file and add it in.
After adding and recompiling, no error will be reported
Read More:
- Keil’s duplicate definition problem: Error: L6200E: Symbol F6x8 multiply defined
- [Solved] KEIL Run Error: \KEY.axf: Error: L6218E: Undefined symbol EXTI_ClearITPendingBit (referred from exit.o).
- [Solved] KEIL Compile Error: Error: L6220E: Load region LR_IROM1 size (65552 bytes) exceeds limit (65536 bytes)……
- [Solved] keil5 Error: Error: L6915E: Library reports error: __use_no_semihosting was requested
- keil: ERROR L107:ADDRESS SPACE OVERFlOW [How to Solve]
- [Solved] Error: L6218E: Undefined symbol vApplicationGetIdleTaskMemory (referred from tasks.o).
- [Solved] Keil Error: *** ERROR L250: CODE SIZE LIMIT IN RESTRICTED VERSION EXCEEDED
- [Solved] keil2 Error: FATAL ERROR L210: I/O ERROR ON INPUT FILE
- [Solved] KEIL Error: keil Error: failed to execute ‘C:\Keil\ARM\ARMCC‘
- [Solved] FreeRTOS Debug Error: Error: L6218E: Undefined symbol xQueueCreateCountingSemaphore
- Keil Compile Error: ..\OBJ\USART.axf: error: L6002U: Could not open file ..\obj\sys.o: No such file or directory
- [Solved] STM8L151 IAR Project Compile Error: Fatal Error[Pe035]: #error directive: “Please select first the target STM8L…
- [Solved] Keil error: #101: “name“ has already been declared in the current scope
- QSP License error: Submit failed! Message: ERROR -Locator 304511e2e493 is already associated to another license
- How to Solve UW Microcontroller KEIL _WEAK Error
- Clickhouse error: XXXX.XXXX_local20211009 (8fdb18e9-bb4c-42d8-8fdb-18e9bb4c02d8): auto…
- keil error #1-D: last line of file ends without a newline
- (Keil MDK) UCOS floating point support abnormal solution
- How to Solve Keil Error: error: #29: expected an expression
- Keil5 error: #29: expected an expression [Solved]