Hello, I downloaded the latest version of the SDK (2.7.0) for Windows, and KEIL IDE. When I compile keyboard2mouse USB example, I get the errors below. I do not get any error when building keyboard2mouse on older SDKs 2.6.0 and 2.5.0.
please advise.
*** Using Compiler 'V5.06 update 4 (build 422)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin'
Rebuild target 'keyboard2mouse_bm debug'
compiling usb_host_framework.c...
Fatal error: C3900U: Unrecognized option '-fno-common'.
Fatal error: C3900U: Unrecognized option '-fdata-sections'.
Fatal error: C3900U: Unrecognized option '-ffreestanding'.
Fatal error: C3900U: Unrecognized option '-fno-builtin'.
Warning: C3910W: Old syntax, please use '-M'.
Warning: C3910W: Old syntax, please use '--thumb'.
compiling usb_host_ohci.c...
Fatal error: C3900U: Unrecognized option '-fno-common'.
Fatal error: C3900U: Unrecognized option '-fdata-sections'.
Fatal error: C3900U: Unrecognized option '-ffreestanding'.
Fatal error: C3900U: Unrecognized option '-fno-builtin'.
Warning: C3910W: Old syntax, please use '-M'.
Warning: C3910W: Old syntax, please use '--thumb'.
compiling clock_config.c...
Fatal error: C3900U: Unrecognized option '-fno-common'.
Fatal error: C3900U: Unrecognized option '-fdata-sections'.
Fatal error: C3900U: Unrecognized option '-ffreestanding'.
Fatal error: C3900U: Unrecognized option '-fno-builtin'.
Warning: C3910W: Old syntax, please use '-M'.
Warning: C3910W: Old syntax, please use '--thumb'.
compiling usb_device_dci.c...
Fatal error: C3900U: Unrecognized option '-fno-common'.
Fatal error: C3900U: Unrecognized option '-fdata-sections'.
Fatal error: C3900U: Unrecognized option '-ffreestanding'.
Fatal error: C3900U: Unrecognized option '-fno-builtin'.
Warning: C3910W: Old syntax, please use '-M'.
Warning: C3910W: Old syntax, please use '--thumb'.
compiling pin_mux.c...
Fatal error: C3900U: Unrecognized option '-fno-common'.
Fatal error: C3900U: Unrecognized option '-fdata-sections'.
Fatal error: C3900U: Unrecognized option '-ffreestanding'.
Fatal error: C3900U: Unrecognized option '-fno-builtin'.
Warning: C3910W: Old syntax, please use '-M'.
Warning: C3910W: Old syntax, please use '--thumb'.
compiling fsl_common.c...
Fatal error: C3900U: Unrecognized option '-fno-common'.
Fatal error: C3900U: Unrecognized option '-fdata-sections'.
Fatal error: C3900U: Unrecognized option '-ffreestanding'.
Fatal error: C3900U: Unrecognized option '-fno-builtin'.
Warning: C3910W: Old syntax, please use '-M'.
Warning: C3910W: Old syntax, please use '--thumb'.
compiling device_mouse.c...
Fatal error: C3900U: Unrecognized option '-fno-common'.
Fatal error: C3900U: Unrecognized option '-fdata-sections'.
Fatal error: C3900U: Unrecognized option '-ffreestanding'.
Fatal error: C3900U: Unrecognized option '-fno-builtin'.
Warning: C3910W: Old syntax, please use '-M'.
Warning: C3910W: Old syntax, please use '--thumb'.
compiling usb_device_hid.c...
Fatal error: C3900U: Unrecognized option '-fno-common'.
Fatal error: C3900U: Unrecognized option '-fdata-sections'.
Fatal error: C3900U: Unrecognized option '-ffreestanding'.
Fatal error: C3900U: Unrecognized option '-fno-builtin'.
Warning: C3910W: Old syntax, please use '-M'.
Warning: C3910W: Old syntax, please use '--thumb'.
compiling usb_host_hub_app.c...
Fatal error: C3900U: Unrecognized option '-fno-common'.
Fatal error: C3900U: Unrecognized option '-fdata-sections'.
Fatal error: C3900U: Unrecognized option '-ffreestanding'.
Fatal error: C3900U: Unrecognized option '-fno-builtin'.
Warning: C3910W: Old syntax, please use '-M'.
Warning: C3910W: Old syntax, please use '--thumb'.
compiling usb_host_hci.c...
Fatal error: C3900U: Unrecognized option '-fno-common'.
Fatal error: C3900U: Unrecognized option '-fdata-sections'.
Fatal error: C3900U: Unrecognized option '-ffreestanding'.
Fatal error: C3900U: Unrecognized option '-fno-builtin'.
Warning: C3910W: Old syntax, please use '-M'.
Warning: C3910W: Old syntax, please use '--thumb'.
compiling board.c...
Fatal error: C3900U: Unrecognized option '-fno-common'.
Fatal error: C3900U: Unrecognized option '-fdata-sections'.
Fatal error: C3900U: Unrecognized option '-ffreestanding'.
Fatal error: C3900U: Unrecognized option '-fno-builtin'.
Warning: C3910W: Old syntax, please use '-M'.
Warning: C3910W: Old syntax, please use '--thumb'.
compiling usb_device_ch9.c...
Fatal error: C3900U: Unrecognized option '-fno-common'.
Fatal error: C3900U: Unrecognized option '-fdata-sections'.
Fatal error: C3900U: Unrecognized option '-ffreestanding'.
Fatal error: C3900U: Unrecognized option '-fno-builtin'.
Warning: C3910W: Old syntax, please use '-M'.
Warning: C3910W: Old syntax, please use '--thumb'.
compiling usb_host_ip3516hs.c...
Fatal error: C3900U: Unrecognized option '-fno-common'.
Fatal error: C3900U: Unrecognized option '-fdata-sections'.
Fatal error: C3900U: Unrecognized option '-ffreestanding'.
Fatal error: C3900U: Unrecognized option '-fno-builtin'.
Warning: C3910W: Old syntax, please use '-M'.
Warning: C3910W: Old syntax, please use '--thumb'.
compiling usb_host_devices.c...
Fatal error: C3900U: Unrecognized option '-fno-common'.
Fatal error: C3900U: Unrecognized option '-fdata-sections'.
Fatal error: C3900U: Unrecognized option '-ffreestanding'.
Fatal error: C3900U: Unrecognized option '-fno-builtin'.
Warning: C3910W: Old syntax, please use '-M'.
Warning: C3910W: Old syntax, please use '--thumb'.
compiling fsl_usart.c...
Fatal error: C3900U: Unrecognized option '-fno-common'.
Fatal error: C3900U: Unrecognized option '-fdata-sections'.
Fatal error: C3900U: Unrecognized option '-ffreestanding'.
Fatal error: C3900U: Unrecognized option '-fno-builtin'.
Warning: C3910W: Old syntax, please use '-M'.
Warning: C3910W: Old syntax, please use '--thumb'.
compiling usb_device_lpcip3511.c...
Fatal error: C3900U: Unrecognized option '-fno-common'.
Fatal error: C3900U: Unrecognized option '-fdata-sections'.
Fatal error: C3900U: Unrecognized option '-ffreestanding'.
Fatal error: C3900U: Unrecognized option '-fno-builtin'.
Warning: C3910W: Old syntax, please use '-M'.
Warning: C3910W: Old syntax, please use '--thumb'.
compiling host_keyboard.c...
Fatal error: C3900U: Unrecognized option '-fno-common'.
Fatal error: C3900U: Unrecognized option '-fdata-sections'.
Fatal error: C3900U: Unrecognized option '-ffreestanding'.
Fatal error: C3900U: Unrecognized option '-fno-builtin'.
Warning: C3910W: Old syntax, please use '-M'.
Warning: C3910W: Old syntax, please use '--thumb'.
compiling usb_device_class.c...
Fatal error: C3900U: Unrecognized option '-fno-common'.
Fatal error: C3900U: Unrecognized option '-fdata-sections'.
Fatal error: C3900U: Unrecognized option '-ffreestanding'.
Fatal error: C3900U: Unrecognized option '-fno-builtin'.
Warning: C3910W: Old syntax, please use '-M'.
Warning: C3910W: Old syntax, please use '--thumb'.
compiling usb_device_descriptor.c...
Fatal error: C3900U: Unrecognized option '-fno-common'.
Fatal error: C3900U: Unrecognized option '-fdata-sections'.
Fatal error: C3900U: Unrecognized option '-ffreestanding'.
Fatal error: C3900U: Unrecognized option '-fno-builtin'.
Warning: C3910W: Old syntax, please use '-M'.
Warning: C3910W: Old syntax, please use '--thumb'.
compiling fsl_clock.c...
Fatal error: C3900U: Unrecognized option '-fno-common'.
Fatal error: C3900U: Unrecognized option '-fdata-sections'.
Fatal error: C3900U: Unrecognized option '-ffreestanding'.
Fatal error: C3900U: Unrecognized option '-fno-builtin'.
Warning: C3910W: Old syntax, please use '-M'.
Warning: C3910W: Old syntax, please use '--thumb'.
compiling app.c...
Fatal error: C3900U: Unrecognized option '-fno-common'.
Fatal error: C3900U: Unrecognized option '-fdata-sections'.
Fatal error: C3900U: Unrecognized option '-ffreestanding'.
Fatal error: C3900U: Unrecognized option '-fno-builtin'.
Warning: C3910W: Old syntax, please use '-M'.
Warning: C3910W: Old syntax, please use '--thumb'.
compiling usb_host_hub.c...
Fatal error: C3900U: Unrecognized option '-fno-common'.
Fatal error: C3900U: Unrecognized option '-fdata-sections'.
Fatal error: C3900U: Unrecognized option '-ffreestanding'.
Fatal error: C3900U: Unrecognized option '-fno-builtin'.
Warning: C3910W: Old syntax, please use '-M'.
Warning: C3910W: Old syntax, please use '--thumb'.
compiling usb_host_hid.c...
Fatal error: C3900U: Unrecognized option '-fno-common'.
Fatal error: C3900U: Unrecognized option '-fdata-sections'.
Fatal error: C3900U: Unrecognized option '-ffreestanding'.
Fatal error: C3900U: Unrecognized option '-fno-builtin'.
Warning: C3910W: Old syntax, please use '-M'.
Warning: C3910W: Old syntax, please use '--thumb'.
compiling fsl_gpio.c...
Fatal error: C3900U: Unrecognized option '-fno-common'.
Fatal error: C3900U: Unrecognized option '-fdata-sections'.
Fatal error: C3900U: Unrecognized option '-ffreestanding'.
Fatal error: C3900U: Unrecognized option '-fno-builtin'.
Warning: C3910W: Old syntax, please use '-M'.
Warning: C3910W: Old syntax, please use '--thumb'.
compiling fsl_flexcomm.c...
Fatal error: C3900U: Unrecognized option '-fno-common'.
Fatal error: C3900U: Unrecognized option '-fdata-sections'.
Fatal error: C3900U: Unrecognized option '-ffreestanding'.
Fatal error: C3900U: Unrecognized option '-fno-builtin'.
Warning: C3910W: Old syntax, please use '-M'.
Warning: C3910W: Old syntax, please use '--thumb'.
compiling fsl_power.c...
Fatal error: C3900U: Unrecognized option '-fno-common'.
Fatal error: C3900U: Unrecognized option '-fdata-sections'.
Fatal error: C3900U: Unrecognized option '-ffreestanding'.
Fatal error: C3900U: Unrecognized option '-fno-builtin'.
Warning: C3910W: Old syntax, please use '-M'.
Warning: C3910W: Old syntax, please use '--thumb'.
compiling fsl_reset.c...
Fatal error: C3900U: Unrecognized option '-fno-common'.
Fatal error: C3900U: Unrecognized option '-fdata-sections'.
Fatal error: C3900U: Unrecognized option '-ffreestanding'.
Fatal error: C3900U: Unrecognized option '-fno-builtin'.
Warning: C3910W: Old syntax, please use '-M'.
Warning: C3910W: Old syntax, please use '--thumb'.
compiling fsl_emc.c...
Fatal error: C3900U: Unrecognized option '-fno-common'.
Fatal error: C3900U: Unrecognized option '-fdata-sections'.
Fatal error: C3900U: Unrecognized option '-ffreestanding'.
Fatal error: C3900U: Unrecognized option '-fno-builtin'.
Warning: C3910W: Old syntax, please use '-M'.
Warning: C3910W: Old syntax, please use '--thumb'.
compiling system_LPC54S018M.c...
Fatal error: C3900U: Unrecognized option '-fno-common'.
Fatal error: C3900U: Unrecognized option '-fdata-sections'.
Fatal error: C3900U: Unrecognized option '-ffreestanding'.
Fatal error: C3900U: Unrecognized option '-fno-builtin'.
Warning: C3910W: Old syntax, please use '-M'.
Warning: C3910W: Old syntax, please use '--thumb'.
assembling startup_LPC54S018M.s...
../../../../../../devices/LPC54S018M/arm/startup_LPC54S018M.s(1): error: A1167E: Invalid line start
../../../../../../devices/LPC54S018M/arm/startup_LPC54S018M.s(2): error: A1159E: Label missing from line start
../../../../../../devices/LPC54S018M/arm/startup_LPC54S018M.s(3): error: A1159E: Label missing from line start
../../../../../../devices/LPC54S018M/arm/startup_LPC54S018M.s(4): error: A1159E: Label missing from line start
../../../../../../devices/LPC54S018M/arm/startup_LPC54S018M.s(5): error: A1159E: Label missing from line start
../../../../../../devices/LPC54S018M/arm/startup_LPC54S018M.s(6): error: A1159E: Label missing from line start
../../../../../../devices/LPC54S018M/arm/startup_LPC54S018M.s(7): error: A1167E: Invalid line start
../../../../../../devices/LPC54S018M/arm/startup_LPC54S018M.s(8): error: A1159E: Label missing from line start
../../../../../../devices/LPC54S018M/arm/startup_LPC54S018M.s(9): error: A1159E: Label missing from line start
../../../../../../devices/LPC54S018M/arm/startup_LPC54S018M.s(10): error: A1159E: Label missing from line start
../../../../../../devices/LPC54S018M/arm/startup_LPC54S018M.s(11): error: A1159E: Label missing from line start
../../../../../../devices/LPC54S018M/arm/startup_LPC54S018M.s(12): error: A1159E: Label missing from line start
../../../../../../devices/LPC54S018M/arm/startup_LPC54S018M.s(13): error: A1137E: Unexpected characters at end of line
../../../../../../devices/LPC54S018M/arm/startup_LPC54S018M.s(14): error: A1167E: Invalid line start
../../../../../../devices/LPC54S018M/arm/startup_LPC54S018M.s(15): error: A1163E: Unknown opcode Version: , expecting opcode or Macro
../../../../../../devices/LPC54S018M/arm/startup_LPC54S018M.s(16): error: A1167E: Invalid line start
../../../../../../devices/LPC54S018M/arm/startup_LPC54S018M.s(18): error: A1137E: Unexpected characters at end of line
../../../../../../devices/LPC54S018M/arm/startup_LPC54S018M.s(19): error: A1137E: Unexpected characters at end of line
../../../../../../devices/LPC54S018M/arm/startup_LPC54S018M.s(20): error: A1137E: Unexpected characters at end of line
../../../../../../devices/LPC54S018M/arm/startup_LPC54S018M.s(22): error: A1137E: Unexpected characters at end of line
../../../../../../devices/LPC54S018M/arm/startup_LPC54S018M.s(23): error: A1137E: Unexpected characters at end of line
../../../../../../devices/LPC54S018M/arm/startup_LPC54S018M.s(24): error: A1137E: Unexpected characters at end of line
../../../../../../devices/LPC54S018M/arm/startup_LPC54S018M.s(26): error: A1167E: Invalid line start
../../../../../../devices/LPC54S018M/arm/startup_LPC54S018M.s(27): error: A1137E: Unexpected characters at end of line
../../../../../../devices/LPC54S018M/arm/startup_LPC54S018M.s(28): error: A1137E: Unexpected characters at end of line
../../../../../../devices/LPC54S018M/arm/startup_LPC54S018M.s(29): error: A1137E: Unexpected characters at end of line
../../../../../../devices/LPC54S018M/arm/startup_LPC54S018M.s(30): error: A1137E: Unexpected characters at end of line
../../../../../../devices/LPC54S018M/arm/startup_LPC54S018M.s(31): error: A1137E: Unexpected characters at end of line
../../../../../../devices/LPC54S018M/arm/startup_LPC54S018M.s(32): error: A1137E: Unexpected characters at end of line
../../../../../../devices/LPC54S018M/arm/startup_LPC54S018M.s(33): error: A1137E: Unexpected characters at end of line
../../../../../../devices/LPC54S018M/arm/startup_LPC54S018M.s(34): error: A1137E: Unexpected characters at end of line
../../../../../../devices/LPC54S018M/arm/startup_LPC54S018M.s(35): error: A1137E: Unexpected characters at end of line
../../../../../../devices/LPC54S018M/arm/startup_LPC54S018M.s(36): error: A1137E: Unexpected characters at end of line
../../../../../../devices/LPC54S018M/arm/startup_LPC54S018M.s(37): error: A1137E: Unexpected characters at end of line
../../../../../../devices/LPC54S018M/arm/startup_LPC54S018M.s(38): error: A1137E: Unexpected characters at end of line
../../../../../../devices/LPC54S018M/arm/startup_LPC54S018M.s(39): error: A1137E: Unexpected characters at end of line
../../../../../../devices/LPC54S018M/arm/startup_LPC54S018M.s(40): error: A1137E: Unexpected characters at end of line
../../../../../../devices/LPC54S018M/arm/startup_LPC54S018M.s(41): error: A1137E: Unexpected characters at end of line
../../../../../../devices/LPC54S018M/arm/startup_LPC54S018M.s(42): error: A1137E: Unexpected characters at end of line
../../../../../../devices/LPC54S018M/arm/startup_LPC54S018M.s(44): error: A1137E: Unexpected characters at end of line
../../../../../../devices/LPC54S018M/arm/startup_LPC54S018M.s(45): error: A1137E: Unexpected characters at end of line
../../../../../../devices/LPC54S018M/arm/startup_LPC54S018M.s(46): error: A1137E: Unexpected characters at end of line
../../../../../../devices/LPC54S018M/arm/startup_LPC54S018M.s(47): error: A1137E: Unexpected characters at end of line
../../../../../../devices/LPC54S018M/arm/startup_LPC54S018M.s(48): error: A1137E: Unexpected characters at end of line
../../../../../../devices/LPC54S018M/arm/startup_LPC54S018M.s(49): error: A1137E: Unexpected characters at end of line
../../../../../../devices/LPC54S018M/arm/startup_LPC54S018M.s(50): error: A1137E: Unexpected characters at end of line
../../../../../../devices/LPC54S018M/arm/startup_LPC54S018M.s(51): error: A1137E: Unexpected characters at end of line
../../../../../../devices/LPC54S018M/arm/startup_LPC54S018M.s(52): error: A1137E: Unexpected characters at end of line
../../../../../../devices/LPC54S018M/arm/startup_LPC54S018M.s(53): error: A1137E: Unexpected characters at end of line
../../../../../../devices/LPC54S018M/arm/startup_LPC54S018M.s(54): error: A1137E: Unexpected characters at end of line
compiling fsl_assert.c...
Fatal error: C3900U: Unrecognized option '-fno-common'.
Fatal error: C3900U: Unrecognized option '-fdata-sections'.
Fatal error: C3900U: Unrecognized option '-ffreestanding'.
Fatal error: C3900U: Unrecognized option '-fno-builtin'.
Warning: C3910W: Old syntax, please use '-M'.
Warning: C3910W: Old syntax, please use '--thumb'.
compiling fsl_debug_console.c...
Fatal error: C3900U: Unrecognized option '-fno-common'.
Fatal error: C3900U: Unrecognized option '-fdata-sections'.
Fatal error: C3900U: Unrecognized option '-ffreestanding'.
Fatal error: C3900U: Unrecognized option '-fno-builtin'.
Warning: C3910W: Old syntax, please use '-M'.
Warning: C3910W: Old syntax, please use '--thumb'.
compiling fsl_str.c...
Fatal error: C3900U: Unrecognized option '-fno-common'.
Fatal error: C3900U: Unrecognized option '-fdata-sections'.
Fatal error: C3900U: Unrecognized option '-ffreestanding'.
Fatal error: C3900U: Unrecognized option '-fno-builtin'.
Warning: C3910W: Old syntax, please use '-M'.
Warning: C3910W: Old syntax, please use '--thumb'.
compiling usart_adapter.c...
Fatal error: C3900U: Unrecognized option '-fno-common'.
Fatal error: C3900U: Unrecognized option '-fdata-sections'.
Fatal error: C3900U: Unrecognized option '-ffreestanding'.
Fatal error: C3900U: Unrecognized option '-fno-builtin'.
Warning: C3910W: Old syntax, please use '-M'.
Warning: C3910W: Old syntax, please use '--thumb'.
compiling serial_manager.c...
Fatal error: C3900U: Unrecognized option '-fno-common'.
Fatal error: C3900U: Unrecognized option '-fdata-sections'.
Fatal error: C3900U: Unrecognized option '-ffreestanding'.
Fatal error: C3900U: Unrecognized option '-fno-builtin'.
Warning: C3910W: Old syntax, please use '-M'.
Warning: C3910W: Old syntax, please use '--thumb'.
compiling serial_port_uart.c...
Fatal error: C3900U: Unrecognized option '-fno-common'.
Fatal error: C3900U: Unrecognized option '-fdata-sections'.
Fatal error: C3900U: Unrecognized option '-ffreestanding'.
Fatal error: C3900U: Unrecognized option '-fno-builtin'.
Warning: C3910W: Old syntax, please use '-M'.
Warning: C3910W: Old syntax, please use '--thumb'.
compiling generic_list.c...
Fatal error: C3900U: Unrecognized option '-fno-common'.
Fatal error: C3900U: Unrecognized option '-fdata-sections'.
Fatal error: C3900U: Unrecognized option '-ffreestanding'.
Fatal error: C3900U: Unrecognized option '-fno-builtin'.
Warning: C3910W: Old syntax, please use '-M'.
Warning: C3910W: Old syntax, please use '--thumb'.
compiling fsl_os_abstraction_bm.c...
Fatal error: C3900U: Unrecognized option '-fno-common'.
Fatal error: C3900U: Unrecognized option '-fdata-sections'.
Fatal error: C3900U: Unrecognized option '-ffreestanding'.
Fatal error: C3900U: Unrecognized option '-fno-builtin'.
Warning: C3910W: Old syntax, please use '-M'.
Warning: C3910W: Old syntax, please use '--thumb'.
"debug\keyboard2mouse_bm.out" - 50 Error(s), 0 Warning(s).
Target not created.
Build Time Elapsed: 00:00:02