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
  • Thanks for the file. I placed in the pca10028 folder in the blinky example (and replaced the files there). Unfortunately, after setting up eclipse/the parser as per the tutorial I still get the same errors (Please see the attached image). I tried adding missing header files manually (ones that have an exclamation point next to them), but even after adding all the header files I still get the same errors. One other thing I realized: when I call make from the directory both with the attached project and the example I was working through I get an message stating: make: nothing to be done for 'default'. Is there anything else I can try? Thanks!

    image description

Reply
  • Thanks for the file. I placed in the pca10028 folder in the blinky example (and replaced the files there). Unfortunately, after setting up eclipse/the parser as per the tutorial I still get the same errors (Please see the attached image). I tried adding missing header files manually (ones that have an exclamation point next to them), but even after adding all the header files I still get the same errors. One other thing I realized: when I call make from the directory both with the attached project and the example I was working through I get an message stating: make: nothing to be done for 'default'. Is there anything else I can try? Thanks!

    image description

Children
  • Hi, the message: "make: nothing to be done for 'default'" appears when there is nothing left to compile since you didn't changed anything in your project since the last build, try for example to add a space, and it should compile. You need to replace the Makefile.common file in the following directory "/nRF5_SDK_12.1.0_0d23e2a/components/toolchain/gcc", inside the SDK folder. You can find the the correct Makefile.common attached to @Vidar Berg answear

  • Thanks for your comment. As stated in previous posts I've replaced the makefile as above and it fixed the "error 1" that I was getting (please see posts above). But, it does not fix the NRF_GPIO register error that I'm getting. Not sure how to fix this....It looks like you're using SDK 12.1 instead of 12.0 (I'm using 12.0). I wonder if switching to 12.1 could fix my error? Thanks

  • I think I finally got everything to work properly. There must have been some issue with the paths and where I placed the SDK files. I decided to try SDK 12.1 instead of 12.0. This time I placed the SDK on my desktop (Windows 10). Previously I had place the SDK files within a folder in "Documents". Using SDK 12.1 (placed on the Desktop) I can get the blinky project to compile. But, if I place the SDK 12.1 files in the "Documents" folder and remake the project from the makefile as per the tutorial it no longer compiles. Thanks for all the help!

Related