Hi,
I am using a custom board which as nrf52832 as the core device
When I try to compile with the ARMCC compiler the whole project compiles and works but when I switch to GCC version of the same I get the following error message
Build target 'nrf52832_xxaa'
compiling cfg_board.c...
../../../../../../components/softdevice/s132/headers/nrf_sdm.h(48): error: fatal error: nrf.h: No such file or directory
compiling cfg_tmp102_module.c...
../../../cfg_tmp102_module.c(21): error: fatal error: nrf.h: No such file or directory
compiling cfg_external_sense_gpio.c...
../../../../../../components/softdevice/s132/headers/nrf_sdm.h(48): error: fatal error: nrf.h: No such file or directory
compiling cfg_dtm.c...
../../../cfg_dtm.c(25): error: fatal error: nrf.h: No such file or directory
compiling cfg_examples.c...
../../../../../../components/softdevice/s132/headers/nrf_sdm.h(48): error: fatal error: nrf.h: No such file or directory
compiling cfg_bma250_module.c...
../../../cfg_bma250_module.c(21): error: fatal error: nrf.h: No such file or directory
compiling nrf_dfu_flash_buttonless.c...
../../../../../../components/softdevice/s132/headers/nrf_sdm.h(48): error: fatal error: nrf.h: No such file or directory
compiling GPS_example_main.c...
../../../../../../components/libraries/util/app_util.h(27): error: fatal error: compiler_abstraction.h: No such file or directory
compiling bsp.c...
../../../../../../components/drivers_nrf/hal/nrf_gpio.h(15): error: fatal error: nrf.h: No such file or directory
compiling ble_advdata.c...
../../../../../../components/libraries/util/app_util.h(27): error: fatal error: compiler_abstraction.h: No such file or directory
compiling ble_conn_params.c...
../../../../../../components/libraries/util/app_util.h(27): error: fatal error: compiler_abstraction.h: No such file or directory
compiling ble_srv_common.c...
../../../../../../components/libraries/util/app_util.h(27): error: fatal error: compiler_abstraction.h: No such file or directory
compiling ble_advertising.c...
../../../../../../components/libraries/util/app_util.h(27): error: fatal error: compiler_abstraction.h: No such file or directory
compiling ble_conn_state.c...
../../../../../../components/libraries/util/app_util.h(27): error: fatal error: compiler_abstraction.h: No such file or directory
compiling ble_dfu.c...
../../../../../../components/libraries/util/app_util.h(27): error: fatal error: compiler_abstraction.h: No such file or directory
compiling gatt_cache_manager.c...
../../../../../../components/ble/peer_manager/peer_manager_types.h(27): error: fatal error: nrf.h: No such file or directory
compiling gatts_cache_manager.c...
../../../../../../components/ble/peer_manager/peer_manager_types.h(27): error: fatal error: nrf.h: No such file or directory
compiling id_manager.c...
../../../../../../components/ble/peer_manager/peer_manager_types.h(27): error: fatal error: nrf.h: No such file or directory
compiling peer_data.c...
../../../../../../components/ble/peer_manager/peer_manager_types.h(27): error: fatal error: nrf.h: No such file or directory
compiling peer_data_storage.c...
../../../../../../components/ble/peer_manager/peer_manager_types.h(27): error: fatal error: nrf.h: No such file or directory
compiling peer_database.c...
../../../../../../components/ble/peer_manager/peer_manager_types.h(27): error: fatal error: nrf.h: No such file or directory
compiling peer_id.c...
../../../../../../components/ble/peer_manager/peer_manager_types.h(27): error: fatal error: nrf.h: No such file or directory
compiling peer_manager.c...
../../../../../../components/libraries/util/sdk_common.h(30): error: fatal error: compiler_abstraction.h: No such file or directory
compiling pm_buffer.c...
../../../../../../components/ble/peer_manager/pm_buffer.c: In function 'pm_buffer_block_acquire':
../../../../../../components/ble/peer_manager/pm_buffer.c(69): error: 'for' loop initial declarations are only allowed in C99 mode
../../../../../../components/ble/peer_manager/pm_buffer.c(69): error: note: use option -std=c99 or -std=gnu99 to compile your code
../../../../../../components/ble/peer_manager/pm_buffer.c(84): error: 'for' loop initial declarations are only allowed in C99 mode
compiling pm_mutex.c...
../../../../../../components/libraries/util/app_util_platform.h(26): error: fatal error: compiler_abstraction.h: No such file or directory
compiling security_dispatcher.c...
../../../../../../components/ble/peer_manager/peer_manager_types.h(27): error: fatal error: nrf.h: No such file or directory
compiling security_manager.c...
../../../../../../components/ble/peer_manager/peer_manager_types.h(27): error: fatal error: nrf.h: No such file or directory
compiling ble_dtm.c...
../../../../../../components/ble/ble_dtm/ble_dtm.h(26): error: fatal error: nrf.h: No such file or directory
compiling ble_dtm_hw_nrf52.c...
../../../../../../components/ble/ble_dtm/ble_dtm_hw.h(26): error: fatal error: nrf.h: No such file or directory
compiling nrf_drv_clock.c...
../../../../../../components/libraries/util/nrf_assert.h(18): error: fatal error: nrf.h: No such file or directory
compiling nrf_drv_common.c...
../../../../../../components/drivers_nrf/common/nrf_drv_common.h(18): error: fatal error: nrf.h: No such file or directory
compiling nrf_drv_gpiote.c...
../../../../../../components/drivers_nrf/hal/nrf_peripherals.h(49): error: fatal error: nrf52832_peripherals.h: No such file or directory
compiling nrf_drv_uart.c...
../../../../../../components/drivers_nrf/hal/nrf_uart.h(15): error: fatal error: nrf.h: No such file or directory
compiling nrf_drv_spi.c...
../../../../../../components/drivers_nrf/hal/nrf_peripherals.h(49): error: fatal error: nrf52832_peripherals.h: No such file or directory
compiling nrf_drv_twis.c...
../../../../../../components/drivers_nrf/common/nrf_drv_common.h(18): error: fatal error: nrf.h: No such file or directory
compiling ble_flash.c...
../../../../../../components/drivers_nrf/ble_flash/ble_flash.h(35): error: fatal error: nrf.h: No such file or directory
compiling nrf_drv_twi.c...
../../../../../../components/drivers_nrf/hal/nrf_twi.h(28): error: fatal error: nrf.h: No such file or directory
compiling crc16.c...
compiling crc32.c...
../../../../../../components/libraries/crc32/crc32.c: In function 'crc32_compute':
../../../../../../components/libraries/crc32/crc32.c(23): error: 'for' loop initial declarations are only allowed in C99 mode
../../../../../../components/libraries/crc32/crc32.c(23): error: note: use option -std=c99 or -std=gnu99 to compile your code
../../../../../../components/libraries/crc32/crc32.c(26): error: 'for' loop initial declarations are only allowed in C99 mode
compiling app_button.c...
../../../../../../components/libraries/button/app_button.h(41): error: fatal error: nrf.h: No such file or directory
compiling app_error.c...
../../../../../../components/libraries/util/app_error.c(22): error: fatal error: nrf.h: No such file or directory
compiling app_error_weak.c...
../../../../../../components/libraries/util/app_error.h(28): error: fatal error: nrf.h: No such file or directory
compiling app_fifo.c...
../../../../../../components/libraries/util/sdk_common.h(30): error: fatal error: compiler_abstraction.h: No such file or directory
compiling app_timer.c...
../../../../../../components/libraries/util/app_error.h(28): error: fatal error: nrf.h: No such file or directory
compiling app_util_platform.c...
../../../../../../components/libraries/util/app_util_platform.h(26): error: fatal error: compiler_abstraction.h: No such file or directory
compiling hardfault_implementation.c...
compiling nrf_assert.c...
../../../../../../components/libraries/util/nrf_assert.h(18): error: fatal error: nrf.h: No such file or directory
compiling app_uart_fifo.c...
../../../../../../components/libraries/util/app_util_platform.h(26): error: fatal error: compiler_abstraction.h: No such file or directory
compiling fstorage.c...
../../../../../../components/libraries/fstorage/fstorage_internal_defs.h(16): error: fatal error: nrf.h: No such file or directory
compiling fstorage_nosd.c...
compiling fds.c...
../../../../../../components/libraries/util/app_util.h(27): error: fatal error: compiler_abstraction.h: No such file or directory
compiling sdk_mapped_flags.c...
../../../../../../components/libraries/util/app_util.h(27): error: fatal error: compiler_abstraction.h: No such file or directory
compiling sensorsim.c...
compiling nrf_log_backend_serial.c...
compiling nrf_log_frontend.c...
compiling SEGGER_RTT.c...
../../../../../../external/segger_rtt/SEGGER_RTT_Conf.h(22): error: fatal error: compiler_abstraction.h: No such file or directory
compiling SEGGER_RTT_printf.c...
../../../../../../external/segger_rtt/SEGGER_RTT_Conf.h(22): error: fatal error: compiler_abstraction.h: No such file or directory
compiling RTT_Syscalls_GCC.c...
../../../../../../external/segger_rtt/SEGGER_RTT_Conf.h(22): error: fatal error: compiler_abstraction.h: No such file or directory
compiling softdevice_handler.c...
../../../../../../components/softdevice/s132/headers/nrf_sdm.h(48): error: fatal error: nrf.h: No such file or directory
compiling hal_nfc_t2t.c...
../../../../../../components/nfc/t2t_lib/hal_t2t/hal_nfc_t2t.c(21): error: fatal error: nrf.h: No such file or directory
compiling nfc_uri_msg.c...
../../../../../../components/nfc/ndef/generic/record/nfc_ndef_record.h(18): error: fatal error: compiler_abstraction.h: No such file or directory
compiling nfc_uri_rec.c...
../../../../../../components/nfc/ndef/generic/record/nfc_ndef_record.h(18): error: fatal error: compiler_abstraction.h: No such file or directory
compiling nfc_ndef_msg.c...
../../../../../../components/nfc/ndef/generic/record/nfc_ndef_record.h(18): error: fatal error: compiler_abstraction.h: No such file or directory
compiling nfc_ndef_record.c...
../../../../../../components/nfc/ndef/generic/record/nfc_ndef_record.h(18): error: fatal error: compiler_abstraction.h: No such file or directory
compiling nfc_launchapp_rec.c...
../../../../../../components/libraries/util/app_util.h(27): error: fatal error: compiler_abstraction.h: No such file or directory
compiling nfc_launchapp_msg.c...
../../../../../../components/nfc/ndef/generic/record/nfc_ndef_record.h(18): error: fatal error: compiler_abstraction.h: No such file or directory
compiling nrf_dfu_settings.c...
../../../../../../components/libraries/util/app_util_platform.h(26): error: fatal error: compiler_abstraction.h: No such file or directory
compiling ble_nus.c...
../../../../../../components/libraries/util/app_util.h(27): error: fatal error: compiler_abstraction.h: No such file or directory
assembling gcc_startup_nrf52.S...
RTE/Device/nRF52832_xxAA/gcc_startup_nrf52.S: Assembler messages:
RTE/Device/nRF52832_xxAA/gcc_startup_nrf52.S(35): error: bad or irreducible absolute expression
compiling system_nrf52.c...
RTE/Device/nRF52832_xxAA/system_nrf52.c(28): error: fatal error: nrf.h: No such file or directory
".\_build_gcc\nrf52832_xxaa.elf" - 68 Error(s), 0 Warning(s).
Target not created.
Build Time Elapsed: 00:00:48
here is the screenshot of the include paths for the libraries
And here is my path for the project
E:\Projects\<>\<>\WSSFM20Rx_12x-master\development\sigfox_cfg2\source_gps_example\pca10040\s132\arm5_no_packs
Kindly help us resolve the above issue.
Thanks and regards.
Siddharth Taunk