logo elektroda
logo elektroda
X
logo elektroda
REKLAMA
REKLAMA
Adblock/uBlockOrigin/AdGuard mogą powodować znikanie niektórych postów z powodu nowej reguły.

LPC4330 LED blink - Syntax error: ")" unexpected

praveen.9123 12 Gru 2013 11:16 1860 2
REKLAMA
  • #1 13052109
    praveen.9123
    Poziom 9  
    Posty: 6
    Hello Sir, please help me in compiling lpc4330_led_blink code downloaded from
    freddiechopin.info
    compiling through the arm tool chain.
    Assembling file: startup_ARMv7-M_E_.S
    arm-none-eabi-gcc -x assembler-with-cpp -c -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -ffast-math -g -ggdb3 -Wa,-amhls=out/startup_ARMv7-M_E_.lst -DCORE_M4 -DCMSIS_BITPOSITIONS -MD -MP -MF out/startup_ARMv7-M_E_.d -I. -Iinc startup_ARMv7-M_E_.S -o out/startup_ARMv7-M_E_.o
    /home/venkata/home/praveen/PMG/NXP_LPC_BOARD/gcc-arm-none-eabi-4_7-131005/bin/arm-none-eabi-gcc: 1: /home/venkata/home/praveen/PMG/NXP_LPC_BOARD/gcc-arm-none-eabi-4_7-131005/bin/arm-none-eabi-gcc: Syntax error: ")" unexpected
    make: *** [out/startup_ARMv7-M_E_.o] Error 2
    [url=]Link[/url]
  • REKLAMA
  • #2 13054224
    Freddie Chopin
    Specjalista - Mikrokontrolery
    Posty: 13336
    Pomógł: 1712
    Ocena: 870
    In here it "just" works...

    >make
    Assembling file: startup_ARMv7-M_E_.S
    arm-none-eabi-gcc -x assembler-with-cpp -c -mcpu=cortex-m4 -mthumb -mfloat-abi=h
    ard -mfpu=fpv4-sp-d16 -ffast-math -g -ggdb3 -Wa,-amhls=out/startup_ARMv7-M_E_.ls
    t  -DCORE_M4  -DCMSIS_BITPOSITIONS  -MD -MP -MF out/startup_ARMv7-M_E_.d -I.  -I
    inc startup_ARMv7-M_E_.S -o out/startup_ARMv7-M_E_.o
    
    Compiling file: main.c
    arm-none-eabi-gcc -c -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16
    -ffast-math -O0 -ffunction-sections -fdata-sections -Wall -Wstrict-prototypes -W
    extra -std=gnu89 -g -ggdb3 -fverbose-asm -Wa,-ahlms=out/main.lst  -DCORE_M4  -DC
    MSIS_BITPOSITIONS  -MD -MP -MF out/main.d -I.  -Iinc main.c -o out/main.o
    
    Compiling file: vectors_LPC43xx_Cortex-M4.c
    arm-none-eabi-gcc -c -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16
    -ffast-math -O0 -ffunction-sections -fdata-sections -Wall -Wstrict-prototypes -W
    extra -std=gnu89 -g -ggdb3 -fverbose-asm -Wa,-ahlms=out/vectors_LPC43xx_Cortex-M
    4.lst  -DCORE_M4  -DCMSIS_BITPOSITIONS  -MD -MP -MF out/vectors_LPC43xx_Cortex-M
    4.d -I.  -Iinc vectors_LPC43xx_Cortex-M4.c -o out/vectors_LPC43xx_Cortex-M4.o
    
    Linking target: out/lpc4330_blink_led.elf
    arm-none-eabi-g++ -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -ff
    ast-math -TLPC4330_50_SPIFI_4MB.ld -g -Wl,-Map=out/lpc4330_blink_led.map,--cref,
    --no-warn-mismatch -Wl,--gc-sections -nostartfiles  out/startup_ARMv7-M_E_.o out
    /main.o out/vectors_LPC43xx_Cortex-M4.o    -o out/lpc4330_blink_led.elf
    
    Size of modules:
    arm-none-eabi-size -B -t --common out/startup_ARMv7-M_E_.o out/main.o out/vector
    s_LPC43xx_Cortex-M4.o
       text    data     bss     dec     hex filename
        136       0       0     136      88 out/startup_ARMv7-M_E_.o
        512       0       0     512     200 out/main.o
        812       0       0     812     32c out/vectors_LPC43xx_Cortex-M4.o
       1460       0       0    1460     5b4 (TOTALS)
    
    Size of target .elf file:
    arm-none-eabi-size -B out/lpc4330_blink_led.elf
       text    data     bss     dec     hex filename
       1480       0    1024    2504     9c8 out/lpc4330_blink_led.elf
    
    Creating extended listing: out/lpc4330_blink_led.lss
    arm-none-eabi-objdump --demangle -S out/lpc4330_blink_led.elf > out/lpc4330_blin
    k_led.lss
    
    Creating memory dump: out/lpc4330_blink_led.dmp
    arm-none-eabi-objdump -x --syms out/lpc4330_blink_led.elf > out/lpc4330_blink_le
    d.dmp
    
    Creating IHEX image: out/lpc4330_blink_led.hex
    arm-none-eabi-objcopy -O ihex out/lpc4330_blink_led.elf out/lpc4330_blink_led.he
    x
    
    Creating binary image: out/lpc4330_blink_led.bin
    arm-none-eabi-objcopy -O binary out/lpc4330_blink_led.elf out/lpc4330_blink_led.
    bin


    I even have the same compiler as you, bot that's on Windows (which is not an issue). Try downloading and extracting the package again.

    4\/3!!
  • #3 13055246
    praveen.9123
    Poziom 9  
    Posty: 6
    Hello Freddie Chopin Sir,
    Thanks for your reply. There is a problem in arm cross toolchain. I have used 64bit toolchain so i have got error because i am using 32bit ubuntu os.. So again i have used the 32bit cross toolchain it worked fine. Thanks alot for replying.
REKLAMA