There are 2 .lib files included in every project. These 2 .lib files are not included in the SDK download, so I need to rebuild them.
I am unable to rebuild the utilities_lib.lib. Below is the Keil output messages after build.
The warning msg ".... \core_cm0plus.h(104): warning: "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" points to line 104 of core_cm0plus.h, which is
#elif defined ( __GNUC__ )
#if defined (__VFP_FP__) && !defined(__SOFTFP__)
#warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)"
#endif
But I don't find where is __GNUC__ being defined after searching.
Not sure what has gone wrong. I would like to know your Option for Target Setting for Compiler, ASM, and Linker, to do a cross-check.
Rebuild started: Project: led_face
*** Using Compiler 'V6.19', folder: 'C:\Keil_v5\ARM\ARMCLANG\Bin'
Rebuild Project 'led_face' - Target 'flash'
C:\Keil_Projects\LPC802-EX-CODE-KEIL\Source_Code\led_face\driver\src\driver_key.c(1): warning: In file included from...
C:\Keil_Projects\LPC802-EX-CODE-KEIL\Source_Code\common\inc\LPC8xx.h(115): warning: In file included from...
C:\Keil_Projects\LPC802-EX-CODE-KEIL\Source_Code\common\inc\core_cm0plus.h(104): warning: "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" [-W#warnings]
#warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)"
^
1 warning generated.
compiling driver_key.c...
C:\Keil_Projects\LPC802-EX-CODE-KEIL\Source_Code\common\src\Serial.c(1): warning: In file included from...
C:\Keil_Projects\LPC802-EX-CODE-KEIL\Source_Code\common\inc\LPC8xx.h(115): warning: In file included from...
C:\Keil_Projects\LPC802-EX-CODE-KEIL\Source_Code\common\inc\core_cm0plus.h(104): warning: "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" [-W#warnings]
#warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)"
^
1 warning generated.
compiling Serial.c...
C:\Keil_Projects\LPC802-EX-CODE-KEIL\Source_Code\led_face\driver\src\driver_adc.c(1): warning: In file included from...
C:\Keil_Projects\LPC802-EX-CODE-KEIL\Source_Code\common\inc\LPC8xx.h(115): warning: In file included from...
C:\Keil_Projects\LPC802-EX-CODE-KEIL\Source_Code\common\inc\core_cm0plus.h(104): warning: "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" [-W#warnings]
#warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)"
^
1 warning generated.
compiling driver_adc.c...
assembling Keil_startup.s...
C:\Keil_Projects\LPC802-EX-CODE-KEIL\Source_Code\common\src\system.c(18): warning: In file included from...
C:\Keil_Projects\LPC802-EX-CODE-KEIL\Source_Code\common\inc\LPC8xx.h(115): warning: In file included from...
C:\Keil_Projects\LPC802-EX-CODE-KEIL\Source_Code\common\inc\core_cm0plus.h(104): warning: "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" [-W#warnings]
#warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)"
^
1 warning generated.
compiling system.c...
C:\Keil_Projects\LPC802-EX-CODE-KEIL\Source_Code\led_face\src\main.c(11): warning: In file included from...
C:\Keil_Projects\LPC802-EX-CODE-KEIL\Source_Code\common\inc\LPC8xx.h(115): warning: In file included from...
C:\Keil_Projects\LPC802-EX-CODE-KEIL\Source_Code\common\inc\core_cm0plus.h(104): warning: "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" [-W#warnings]
#warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)"
^
1 warning generated.
compiling main.c...
C:\Keil_Projects\LPC802-EX-CODE-KEIL\Source_Code\led_face\driver\src\driver_board.c(1): warning: In file included from...
C:\Keil_Projects\LPC802-EX-CODE-KEIL\Source_Code\common\inc\LPC8xx.h(115): warning: In file included from...
C:\Keil_Projects\LPC802-EX-CODE-KEIL\Source_Code\common\inc\core_cm0plus.h(104): warning: "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" [-W#warnings]
#warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)"
^
C:\Keil_Projects\LPC802-EX-CODE-KEIL\Source_Code\led_face\driver\src\driver_board.c(6): warning: In file included from...
C:\Keil_Projects\LPC802-EX-CODE-KEIL\Source_Code\peripherals_lib\inc\spi.h(55): warning: 'STAT_MSTIDLE' macro redefined [-Wmacro-redefined]
#define STAT_MSTIDLE (1<<8)
^
C:\Keil_Projects\LPC802-EX-CODE-KEIL\Source_Code\peripherals_lib\inc\i2c.h(49): note: previous definition is here
#define STAT_MSTIDLE (0x0 << 1)
^
2 warnings generated.
compiling driver_board.c...
C:\Keil_Projects\LPC802-EX-CODE-KEIL\Source_Code\led_face\driver\src\driver_led.c(1): warning: In file included from...
C:\Keil_Projects\LPC802-EX-CODE-KEIL\Source_Code\common\inc\LPC8xx.h(115): warning: In file included from...
C:\Keil_Projects\LPC802-EX-CODE-KEIL\Source_Code\common\inc\core_cm0plus.h(104): warning: "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" [-W#warnings]
#warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)"
^
1 warning generated.
compiling driver_led.c...
C:\Keil_Projects\LPC802-EX-CODE-KEIL\Source_Code\led_face\driver\src\driver_lm75.c(1): warning: In file included from...
C:\Keil_Projects\LPC802-EX-CODE-KEIL\Source_Code\common\inc\LPC8xx.h(115): warning: In file included from...
C:\Keil_Projects\LPC802-EX-CODE-KEIL\Source_Code\common\inc\core_cm0plus.h(104): warning: "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" [-W#warnings]
#warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)"
^
C:\Keil_Projects\LPC802-EX-CODE-KEIL\Source_Code\led_face\driver\src\driver_lm75.c(60): warning: operator '>>' has lower precedence than '+'; '+' will be evaluated first [-Wshift-op-parentheses]
*data = 0x800 - ((LM75_Buf[0]<<8) + LM75_Buf[1]>>5 );
~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
C:\Keil_Projects\LPC802-EX-CODE-KEIL\Source_Code\led_face\driver\src\driver_lm75.c(60): note: place parentheses around the '+' expression to silence this warning
*data = 0x800 - ((LM75_Buf[0]<<8) + LM75_Buf[1]>>5 );
^
( )
2 warnings generated.
compiling driver_lm75.c...
C:\Keil_Projects\LPC802-EX-CODE-KEIL\Source_Code\led_face\driver\src\driver_uart.c(1): warning: In file included from...
C:\Keil_Projects\LPC802-EX-CODE-KEIL\Source_Code\common\inc\LPC8xx.h(115): warning: In file included from...
C:\Keil_Projects\LPC802-EX-CODE-KEIL\Source_Code\common\inc\core_cm0plus.h(104): warning: "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" [-W#warnings]
#warning "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)"
^
1 warning generated.
compiling driver_uart.c...
linking...
.\Objects\led_face.axf: Error: L6218E: Undefined symbol PutTerminalString (referred from main.o).
.\Objects\led_face.axf: Error: L6218E: Undefined symbol LED_Off (referred from i2c.o).
.\Objects\led_face.axf: Error: L6218E: Undefined symbol LED_On (referred from i2c.o).
Not enough information to list image symbols.
Not enough information to list load addresses in the image map.
Finished: 2 information, 0 warning and 3 error messages.
".\Objects\led_face.axf" - 3 Error(s), 11 Warning(s).
Target not created.
Build Time Elapsed: 00:00:01