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!

  • Hi,

    Please try with the attached Makefile.common and see if you get the same result. Removed double quotes on some of the variables as suggested by @peter (see last comment in tutorial)

    Attachment:

  • Thanks very much the Makefile that you attached fixed "Error 1" that I was getting. I had tried to modify the Makefile as per the post, but I must have done so incorrectly. Unfortunately, I still get an error that "Symbol NRF_GPIO" is not defined. I'm thinking that it's because either I'm missing a header file or some sort of register definitions. But, I've gone over the code many times and I can't figure out what I need to add to fix the error. I also tried updating the device family packs. Do you have any ideas on what might fix this? Thanks for your help!

  • Does it help if you try to rebuild the index in project options? Also, do you see if any symbols/include paths were included by the parser as shown in the last screenshot in the 'Enable auto discovery of symbols, include paths and compiler settings' of the tutorial.

  • I tried rebuilding the index by right clicking on the project folder in the "project explorer" menu and then selecting index and rebuild. Is this what you meant? Unfortunately, that doesn't fix the errors. When I go to the parser as in the last image of the tutorial section on auto discovery of symbols I don't see any of the folders in the screenshot within the tutorial. I assume this shows where my problem is coming from. I double checked the auto discovery steps that I performed and I can't find an error. I'm using SDK 12.0 with the files I downloaded with the SDK (not ones provided in this tutorial). Not sure if that could be related to the issues that I'm having. Is there something else I can try? Thanks for your help!

  • Yes that is what I meant, but not sure why it is not working. Please add some screenshots of your setup in the description that shows build log (built with the new Makefile.common file) and parser settings.

1 2 3 4