SDK_2.7.0::LPCXpresso54S018M fails to compile

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SDK_2.7.0::LPCXpresso54S018M fails to compile

1,705 Views
belmontbob59
Contributor IV

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

Labels (2)
0 Kudos
3 Replies

1,326 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi bob

I just build the sdk2.7.0 usb project with MDK2.29. No build error.

See attached video

Please check if your Keil LPC54018M pack are well installed.

if still have error. redownload the SDK for Keil MDK and test it on another PC. if you experience the same issue.

Have a nice day

Jun Zhang

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos

1,326 Views
belmontbob59
Contributor IV

Thank you for your reply. you are using MDK5.29 right ? You wrote MDK2.29.

I am using MDK5.22 which works well with SDKs 2.5.0 and 2.6.0. Unfortunately I can't upgrade to MDK5.29.

0 Kudos

1,326 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi bob belmont 

It's typo. Yes, I mean MDK5.29.

According to SDK2.7.0 release note under SDK install folder. it was only tested under below platform.

2020-01-02_11-05-48.png

Thus the lower version MDK is not supported.

If you use MDK5.22, please use the low version SDK instead.

Have a nice day

Jun Zhang

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos