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

Blinky Example Errors and Development with GCC and Eclipse

Hi, I'm using Eclipse Mars 5.2 on Windows 10 along with the GNU Toolchain as described in the "Development with GCC and Eclipse Tutorial" by Vidar Berg (Thanks very much for putting this together!). I'm trying to get the blinky example from the SDK 12.0 to work. I've followed all of the steps in the tutorial, but I still get some errors that I can' resolve.

I get several errors such as: symbol 'LED_LISTS' could not be resolved. I've followed the steps in the "Enable auto discovery of symbols...." section of the tutorial. Including changing the CDT compiler settings as described, but I still can't fix this error.

I also get the following error: C:/Program Files (x86)/GNU Tools ARM Embedded/5.4 2016q2/bin/arm-none-eabi-gcc -std=c99 -x assembler-with-cpp -DNRF52_PAN_12 -DNRF52_PAN_15 -DNRF52_PAN_58 -DSWI_DISABLE0 -DNRF52_PAN_20 -DNRF52_PAN_54 -DNRF52_PAN_31 -DNRF52_PAN_30 -DNRF52_PAN_51 -DNRF52_PAN_36 -DNRF52_PAN_53 -DCONFIG_GPIO_AS_PINRESET -DNRF52_PAN_64 -DNRF52_PAN_55 -DNRF52_PAN_62 -DNRF52_PAN_63 -DBOARD_PCA10040 -DNRF52 -DNRF52832 -DBSP_DEFINES_ONLY -I"../../../pca10040" -I"../../../pca10040/blank" -I"../../../../../../components" -I"../../../../../../components/ble/ble_services/ble_hrs_c" -I"../../../../../../components/ble/ble_services/ble_cts_c" -I"../../../../../../components/drivers_nrf/comp" -I"../../../../../../components/ble/ble_services/ble_lbs" -I"../../../../../../components/drivers_nrf/spi_master" -I"../../../../../../components/ble/ble_services/ble_hts" -I"../../../../../../components/drivers_nrf/twi_master" -I"../../../../../../components/libraries/experimental_section_vars" -I"../../../../../../components/ble/ble_services/ble_ancs_c" -I"../../../../../../components/ble/ble_services/ble_ias_c" -I"../config" -I"../../../../../../components/ble/ble_services/ble_hids" -I"../../../../../../components/libraries/scheduler" -I"../../../../../../components/drivers_nrf/pdm" -I"../../../../../../components/libraries/crc32" -I"../../../../../../components/drivers_nrf/delay" -I"../../../../../../components/libraries/crc16" -I"../../../../../../components/ble/ble_dtm" -I"../../../../../../components/toolchain/cmsis/include" -I"../../../../../../components/libraries/pwm" -I"../../../../../../components/drivers_nrf/timer" -I"../../../../../../components/libraries/util" -I"../../../../../../components/ble/ble_services/ble_rscs_c" -I"../../../../../../components/drivers_nrf/uart" -I"../../../../../../components/libraries/csense_drv" -I"../../../../../../components/libraries/csense" -I"../../../../../../components/ble/ble_services/ble_lls" -I"../../../../../../components/ble/peer_manager" -I"../../../../../../components/drivers_nrf/swi" -I"../../../../../../components/ble/ble_services/ble_tps" -I"../../../../../../components/libraries/mem_manager" -I"../../../../../../components/libraries/hardfault" -I"../../../../../../components/ble/ble_services/ble_cscs" -I"../../../../../../components/ble/ble_services/ble_dis" -I"../../../../../../components/device" -I"../../../../../../components/ble/ble_services/ble_nus" -I"../../../../../../components/libraries/hci" -I"../../../../../../components/libraries/log" -I"../../../../../../components/drivers_nrf/spi_slave" -I"../../../../../../components/libraries/mailbox" -I"../../../../../../components/ble/ble_services/ble_gls" -I"../../../../../../components/libraries/slip" -I"../../../../../../components/ble/ble_services/ble_bas" -I"../../../../../../components/drivers_nrf/lpcomp" -I"../../../../../../components/libraries/fstorage" -I"../../../../../../components/drivers_nrf/rng" -I"../../../../../../components/drivers_nrf/i2s" -I"../../../../../../components/ble/ble_services/ble_ans_c" -I"../../.." -I"../../../../../../components/libraries/fifo" -I"../../../../../../components/drivers_nrf/gpiote" -I"../../../../../../components/drivers_nrf/saadc" -I"../../../../../bsp" -I"../../../../../../components/libraries/uart" -I"../../../../../../components/drivers_nrf/nrf_soc_nosd" -I"../../../../../../components/toolchain" -I"../../../../../../components/ble/ble_services/ble_lbs_c" -I"../../../../../../components/libraries/twi" -I"../../../../../../components/drivers_nrf/hal" -I"../../../../../../components/ble/ble_services/ble_nus_c" -I"../../../../../../components/ble/ble_racp" -I"../../../../../../components/toolchain/gcc" -I"../../../../../../components/drivers_nrf/rtc" -I"../../../../../../components/libraries/fds" -I"../../../../../../components/drivers_nrf/common" -I"../../../../../../components/ble/ble_advertising" -I"../../../../../../components/drivers_nrf/adc" -I"../../../../../../components/ble/nrf_ble_qwr" -I"../../../../../../components/drivers_nrf/clock" -I"../../../../../../components/drivers_nrf/pwm" -I"../../../../../../components/ble/ble_services/ble_ias" -I"../../../../../../components/ble/ble_services/ble_bas_c" -I"../../../../../../components/libraries/low_power_pwm" -I"../../../../../../components/libraries/led_softblink" -I"../../../../../../components/ble/ble_services/ble_rscs" -I"../../../../../../components/libraries/button" -I"../../../../../../components/drivers_nrf/wdt" -I"../../../../../../components/drivers_nrf/ppi" -I"../../../../../../components/drivers_nrf/qdec" -I"../../../../../../components/libraries/timer" -I"../../../../../../components/ble/ble_services/ble_dfu" -I"../../../../../../components/ble/ble_services/ble_hrs" -I"../../../../../../components/drivers_nrf/twis_slave" -I"../../../../../../components/libraries/log/src" -c -o _build/nrf52832_xxaa_gcc_startup_nrf52.S.o "../../../../../../components/toolchain/gcc/gcc_startup_nrf52.S" 'C:/Program' is not recognized as an internal or external command, operable program or batch file. make: *** [_build/nrf52832_xxaa_gcc_startup_nrf52.S.o] Error 1

I looked at some previous posts, and I'm wondering if this error could be related to the install directory for my GNU Toolchain being in C:\Program Files (x86)...., which contains a space. If I moved the GNU toolchain to a different director with no space in the path would it potentially resolve this error? (I know I would have to update some of the paths as per the tutorial).

I would really appreciate any advice. Thanks!

Parents Reply
  • I got the same problem, When I make the file in the command line it compiles properly, and when I build in the eclipse it also builds. However the eclipse displays some errors of unresolved inclusions.

    I think this problems come from the eclipse not recognizing some CLFAGS. For example in my makefile I have "CFLAGS += -DUSE_APP_CONFIG", but in my code eclipse considers that USE_APP_CONFIG was not defined: "#ifdef USE_APP_CONFIG" "#include "app_config.h"" "#endif"

    appears shadowed.

Children
No Data
Related