.\Objects\test1.axf: Error: L6218E: Undefined symbol stderr_putchar (referred from retarget_io.o). .\Objects\test1.axf: Error: L6218E: Undefined symbol stdin_getchar (referred from retarget_io.o). .\Objects\test1.axf: Error: L6218E: Undefined symbol stdout_putchar (referred from retarget_io.o). .\Objects\test1.axf: Error: L6218E: Undefined symbol ttywrch (referred from retarget_io.o). Not enough information to list image symbols.
MY PROGRAM:
#include <stdio.h> #include "stm32l0xx.h" // Device header #include "Board_LED.h"
int main() {
}
And what OTHER files do you have in your project?
If you have some retargeting code, you need some device output code to go with it.
Translating the error, you are calling something from within your project that your not providing code for. Fix that.
Hi (I got the KEIL uV5 PLUS-license, not the PRO-license ...).
I get the similar error-message during linking: ... .\Objects\nohauSonarPower01.axf: Error: L6218E: Undefined symbol stdout_putchar (referred from retarget_io.o). Not enough information to list image symbols. Finished: 1 information, 0 warning and 1 error messages.
My code do NOT use any printf() statement, but I have configured "Manage Run-Time Environment": "Compiler::I/O::STDOUT to enable and variant to ITM" ... so I can see the debug-output from Middelware in the separate uV5 debug-window: "View - Serial Window - Debug (printf) Viewer"
How do i get rid of this link error message (how do I include the missing library)?
Best regards Terje Bohler
View all questions in Keil forum