10 years, 4 months ago.

Export to Keil uVision 4

I export the Serial_HelloWorld_Mbed for Keil and try to complile it with my Keil uVision 4

I get the following build-error

Build target 'mbed NXP LPC11U24' linking... .\build\Serial_HelloWorld_Mbed.axf: Error: L6218E: Undefined symbol mbed::Serial::Serial() (referred from main.o). Target not created !!The undefined Symbol ist the Serial-Destructor!!

I exported for LPC11U24 and for LPC1768 I have the problem for both platforms.

I use µVision V4.03 and RealView MDK-ARM Version: 4.10

What is wrong ?

Do you receive any error if you build it in the online compiler?

posted by Martin Kojtal 19 Dec 2013

No error with the online compiler The last example which worked with Keil I checked out in november 2012 In the menatime they have changed the .o Files which come with the Keil-Makefile. Could anybody please try to compile with Keil and tell me if it works.

posted by michael hollegha 19 Dec 2013

1 Answer

10 years, 4 months ago.

Michael,

I've done an export with version 58 and the current version of the mbed HDK (75) and both compiled with the same console output.

Rebuild target 'mbed NXP LPC1768'
compiling main.cpp...
main.cpp(10): warning:  #1-D: last line of file ends without a newline
linking...
Program Size: Code=15816 RO-data=1316 RW-data=52 ZI-data=664  
User command #1: fromelf --bin -o build\Serial_HelloWorld_Mbed_LPC1768.bin build\Serial_HelloWorld_Mbed.axf
".\build\Serial_HelloWorld_Mbed.axf" - 0 Error(s), 1 Warning(s).

If you email the export zip file you have to support@mbed.org I'll see if there are any differences and whether yours works for me.

Accepted Answer

Stephen,

I think it is the Keil-Version. With version 58 you mean the MDK Version ?? I will first update my Keil and hope the problem disappers

posted by michael hollegha 20 Dec 2013

No, 58 is the revision number of the mbed library, sorry. I tried with with two versions to see if the SDK was the issue. My uVision version is slightly newer than yours though.

posted by Stephen Paulger 23 Dec 2013