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

Unable to build ble_app_hrs_s132_with_dfu_pca10040 example with GNU and Eclipse.

First off, I have worked through Vidar's excellent tutorial located at "devzone.nordicsemi.com/.../" and have successfully built and run the blank blinky example so my installation of the tools is probably correct.

The next step is to build an example that actually uses BLE so I started working on the ble_app_hrs_s132_with_dfu_pca10040 example as Vidar provided the settings files for that project as well.

I can successfully build the project by typing "make" on the command line. However, when I attempt to build the project in Eclipse I get 33 errors as follows:

Description Resource Path Location Type Field 'BLE_GAP_CONN_SEC_MODE_SET_NO_ACCESS(&bas_init.battery_level_char_attr_md.write_perm)' could not be resolved main.c /ble_app_hrs_s132_with_dfu_pca10040/Application line 470 Semantic Error Field 'BLE_GAP_CONN_SEC_MODE_SET_NO_ACCESS(&bas_init.battery_level_char_attr_md.write_perm)' could not be resolved main.c /ble_app_hrs_s132_with_dfu_pca10040/Application line 470 Semantic Error Field 'BLE_GAP_CONN_SEC_MODE_SET_NO_ACCESS(&dis_init.dis_attr_md.write_perm)' could not be resolved main.c /ble_app_hrs_s132_with_dfu_pca10040/Application line 488 Semantic Error Field 'BLE_GAP_CONN_SEC_MODE_SET_NO_ACCESS(&dis_init.dis_attr_md.write_perm)' could not be resolved main.c /ble_app_hrs_s132_with_dfu_pca10040/Application line 488 Semantic Error Field 'BLE_GAP_CONN_SEC_MODE_SET_NO_ACCESS(&hrs_init.hrs_bsl_attr_md.write_perm)' could not be resolved main.c /ble_app_hrs_s132_with_dfu_pca10040/Application line 459 Semantic Error Field 'BLE_GAP_CONN_SEC_MODE_SET_NO_ACCESS(&hrs_init.hrs_bsl_attr_md.write_perm)' could not be resolved main.c /ble_app_hrs_s132_with_dfu_pca10040/Application line 459 Semantic Error Field 'BLE_GAP_CONN_SEC_MODE_SET_NO_ACCESS(&hrs_init.hrs_hrm_attr_md.read_perm)' could not be resolved main.c /ble_app_hrs_s132_with_dfu_pca10040/Application line 455 Semantic Error Field 'BLE_GAP_CONN_SEC_MODE_SET_NO_ACCESS(&hrs_init.hrs_hrm_attr_md.read_perm)' could not be resolved main.c /ble_app_hrs_s132_with_dfu_pca10040/Application line 455 Semantic Error Field 'BLE_GAP_CONN_SEC_MODE_SET_NO_ACCESS(&hrs_init.hrs_hrm_attr_md.write_perm)' could not be resolved main.c /ble_app_hrs_s132_with_dfu_pca10040/Application line 456 Semantic Error Field 'BLE_GAP_CONN_SEC_MODE_SET_NO_ACCESS(&hrs_init.hrs_hrm_attr_md.write_perm)' could not be resolved main.c /ble_app_hrs_s132_with_dfu_pca10040/Application line 456 Semantic Error Field 'BLE_GAP_CONN_SEC_MODE_SET_OPEN(&bas_init.battery_level_char_attr_md.cccd_write_perm)' could not be resolved main.c /ble_app_hrs_s132_with_dfu_pca10040/Application line 468 Semantic Error Field 'BLE_GAP_CONN_SEC_MODE_SET_OPEN(&bas_init.battery_level_char_attr_md.cccd_write_perm)' could not be resolved main.c /ble_app_hrs_s132_with_dfu_pca10040/Application line 468 Semantic Error Field 'BLE_GAP_CONN_SEC_MODE_SET_OPEN(&bas_init.battery_level_char_attr_md.read_perm)' could not be resolved main.c /ble_app_hrs_s132_with_dfu_pca10040/Application line 469 Semantic Error Field 'BLE_GAP_CONN_SEC_MODE_SET_OPEN(&bas_init.battery_level_char_attr_md.read_perm)' could not be resolved main.c /ble_app_hrs_s132_with_dfu_pca10040/Application line 469 Semantic Error Field 'BLE_GAP_CONN_SEC_MODE_SET_OPEN(&bas_init.battery_level_report_read_perm)' could not be resolved main.c /ble_app_hrs_s132_with_dfu_pca10040/Application line 472 Semantic Error Field 'BLE_GAP_CONN_SEC_MODE_SET_OPEN(&bas_init.battery_level_report_read_perm)' could not be resolved main.c /ble_app_hrs_s132_with_dfu_pca10040/Application line 472 Semantic Error Field 'BLE_GAP_CONN_SEC_MODE_SET_OPEN(&dis_init.dis_attr_md.read_perm)' could not be resolved main.c /ble_app_hrs_s132_with_dfu_pca10040/Application line 487 Semantic Error Field 'BLE_GAP_CONN_SEC_MODE_SET_OPEN(&dis_init.dis_attr_md.read_perm)' could not be resolved main.c /ble_app_hrs_s132_with_dfu_pca10040/Application line 487 Semantic Error Field 'BLE_GAP_CONN_SEC_MODE_SET_OPEN(&hrs_init.hrs_bsl_attr_md.read_perm)' could not be resolved main.c /ble_app_hrs_s132_with_dfu_pca10040/Application line 458 Semantic Error Field 'BLE_GAP_CONN_SEC_MODE_SET_OPEN(&hrs_init.hrs_bsl_attr_md.read_perm)' could not be resolved main.c /ble_app_hrs_s132_with_dfu_pca10040/Application line 458 Semantic Error Field 'BLE_GAP_CONN_SEC_MODE_SET_OPEN(&hrs_init.hrs_hrm_attr_md.cccd_write_perm)' could not be resolved main.c /ble_app_hrs_s132_with_dfu_pca10040/Application line 454 Semantic Error Field 'BLE_GAP_CONN_SEC_MODE_SET_OPEN(&hrs_init.hrs_hrm_attr_md.cccd_write_perm)' could not be resolved main.c /ble_app_hrs_s132_with_dfu_pca10040/Application line 454 Semantic Error Field 'bond' could not be resolved main.c /ble_app_hrs_s132_with_dfu_pca10040/Application line 842 Semantic Error Field 'cccd_handle' could not be resolved main.c /ble_app_hrs_s132_with_dfu_pca10040/Application line 608 Semantic Error Field 'io_caps' could not be resolved main.c /ble_app_hrs_s132_with_dfu_pca10040/Application line 846 Semantic Error Field 'keypress' could not be resolved main.c /ble_app_hrs_s132_with_dfu_pca10040/Application line 845 Semantic Error Field 'lesc' could not be resolved main.c /ble_app_hrs_s132_with_dfu_pca10040/Application line 844 Semantic Error Field 'max_key_size' could not be resolved main.c /ble_app_hrs_s132_with_dfu_pca10040/Application line 849 Semantic Error Field 'min_key_size' could not be resolved main.c /ble_app_hrs_s132_with_dfu_pca10040/Application line 848 Semantic Error Field 'mitm' could not be resolved main.c /ble_app_hrs_s132_with_dfu_pca10040/Application line 843 Semantic Error Field 'oob' could not be resolved main.c /ble_app_hrs_s132_with_dfu_pca10040/Application line 847 Semantic Error Symbol 'NRF_CLOCK_LFCLKSRC' could not be resolved main.c /ble_app_hrs_s132_with_dfu_pca10040/Application line 735 Semantic Error

None of these errors seems to relate to a file access problem so I assume all the paths are correct. To attempt to trace the problem further I located where NRF_CLOCK_LFCLKSRC is defined. It is in pca10040.h so I traced down through the relevant header files looking for which symbols are necessary to find this definition. As far as I can determine the appropriate symbols for this are all defined so I am at a loss to explain what is going on. Presumably there is something in the Eclipse project setup that I have missed. Any help would be appreciated.

Related