This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Error in Eclipse GCC when build project

I am encountering some problem in building eclipse project following the tutorial at devzone.nordicsemi.com/.../ .

Previously I succeeded in building with another simple example project. But when I move on to use my project, it is not able to build.

I am at the step 'Enable auto discovery of symbols, include paths and compiler settings', where I configured all the properties as stated. But when I try to build project, it returns 3 errors as follow: image description image description image description

I did edit the makefile.windows to change the path to point to where my GNU ARM Embedded Tool is at. I also changed to the new makefile.common file which is required for SDK 12 and above.

What are the errors? And how can I fix it? Thank you.

EDIT: I managed to solve some of the above errors. But this time i got new errors of the following:

undefined reference to 'function2'
undefined reference to 'evt_write'
undefined reference to 'xxxx'
undefined reference to 'xxxx'
undefined reference to 'xxxx'

How can I fix it? Do I need to specify or set somewhere the paths to include the file where the functions are from? (The makefile under 'SRC_FILES' and 'INC_FOLDERS' did not include certain files, probably because I made use of the ble_app_template to write my project and added more files. Do I need to include the paths to these newly #include header files here or somewhere else? Please advise.)

Parents
  • 'C:/Program Files/GNU Tools ARM Embedded/6 2017-q2-update/bin/arm-none-eabi-gcc' -MP ............. -c -o _build/nrf51422_xxac_aes.c.o ../../../../../external/tiny-AES128/aes.c "make" -s --no-print-directory -f ../../../../../components/toolchain/gcc/file_list.mk > _build/nrf51422_xxac.in Linking target: _build/nrf51422_xxac.out 'C:/Program Files/GNU Tools ARM Embedded/6 2017-q2-update/bin/arm-none-eabi-gcc' -Wl,-Map=_build/nrf51422_xxac.map -mthumb -mabi=aapcs -L ../../../../../components/toolchain/gcc -Tble_app_template_gcc_nrf51.ld -mcpu=cortex-m0 -Wl,--gc-sections --specs=nano.specs -lc -lnosys @_build/nrf51422_xxac.in -lm -o _build/nrf51422_xxac.out arm-none-eabi-gcc: error: build/nrf51422_xxac.o: No such file or directory ../../../../../components/toolchain/gcc/Makefile.common:153: recipe for target '_build/nrf51422_xxac.out' failed make: *** [_build/nrf51422_xxac.out] Error 1

Reply
  • 'C:/Program Files/GNU Tools ARM Embedded/6 2017-q2-update/bin/arm-none-eabi-gcc' -MP ............. -c -o _build/nrf51422_xxac_aes.c.o ../../../../../external/tiny-AES128/aes.c "make" -s --no-print-directory -f ../../../../../components/toolchain/gcc/file_list.mk > _build/nrf51422_xxac.in Linking target: _build/nrf51422_xxac.out 'C:/Program Files/GNU Tools ARM Embedded/6 2017-q2-update/bin/arm-none-eabi-gcc' -Wl,-Map=_build/nrf51422_xxac.map -mthumb -mabi=aapcs -L ../../../../../components/toolchain/gcc -Tble_app_template_gcc_nrf51.ld -mcpu=cortex-m0 -Wl,--gc-sections --specs=nano.specs -lc -lnosys @_build/nrf51422_xxac.in -lm -o _build/nrf51422_xxac.out arm-none-eabi-gcc: error: build/nrf51422_xxac.o: No such file or directory ../../../../../components/toolchain/gcc/Makefile.common:153: recipe for target '_build/nrf51422_xxac.out' failed make: *** [_build/nrf51422_xxac.out] Error 1

Children
No Data
Related