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

Eclipse/gcc error: _built/nrf52832.o No such file or directory

Hello.

Due to expanding code size because of the peer manager i m forced to move to gcc and Eclipse. So far according to the tutorial i`m proceeding fine.

But, after importing my project into eclipse it turned out that my project compiles, but the target is not built because it does not generate the nrf52832_xxaa.o

Linking target: _build/nrf52832_xxaa.out "C:/Program Files (x86)/GNU Tools ARM Embedded/6 2017-q1-update/bin/arm-none-eabi-gcc" -Wl,-Map=_build/nrf52832_xxaa.map -mthumb -mabi=aapcs -L ../../../../../../components/toolchain/gcc -Tble_app_uart_gcc_nrf52.ld -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -Wl,--gc-sections --specs=nano.specs -lc -lnosys @_build/nrf52832_xxaa.in -lm -o _build/nrf52832_xxaa.out arm-none-eabi-gcc: error: build/nrf52832_xxaa.o: No such file or directory ../../../../../../components/toolchain/gcc/Makefile.common:153: recipe for target '_build/nrf52832_xxaa.out' failed make: *** [_build/nrf52832_xxaa.out] Error 1

when i "make" via command line, it returns the same, so i think it is not related to eclipse. However untouched examples all built fine, so i guess it is something related to my project.

I started from the peripheral uart example. I added a new service which i put in /components/sources. This i included in the makefile, and also removedthe -Werror option because i have left some unused variables. The rest is according to the tutorial. How come nrf52832_xxaa.o is not generated but all others?

Parents
  • Hey Vehring,

    I'm using gcc and eclipse as well for the same reasons but I'm getting the error in eclipse that certain variable names cannot be resolved. I know that its not being able to get the variable names from other source files but I have linked every source file as shown in the tutorial . Any idea of what im doing wrong.

    Click on CDT GCC Build Output Parser and change the compiler command pattern from (gcc)|([gc]++)|(clang) to (.gcc)|(.[gc]++) then apply changes. Click on CDT Built-in Compiler Settings Cross ARM and replace ${COMMAND} with arm-none-eabi-gcc and click Apply.

    I have followed those steps but still it gives me error

Reply
  • Hey Vehring,

    I'm using gcc and eclipse as well for the same reasons but I'm getting the error in eclipse that certain variable names cannot be resolved. I know that its not being able to get the variable names from other source files but I have linked every source file as shown in the tutorial . Any idea of what im doing wrong.

    Click on CDT GCC Build Output Parser and change the compiler command pattern from (gcc)|([gc]++)|(clang) to (.gcc)|(.[gc]++) then apply changes. Click on CDT Built-in Compiler Settings Cross ARM and replace ${COMMAND} with arm-none-eabi-gcc and click Apply.

    I have followed those steps but still it gives me error

Children
No Data
Related