ARMmbed / mbed-os

Arm Mbed OS is a platform operating system designed for the internet of things
https://mbed.com
Other
4.67k stars 2.98k forks source link

nrf52-dk: Unable to export to gnuarmeclipse #5763

Closed aldrinleal closed 6 years ago

aldrinleal commented 6 years ago

Note: This is just a template, so feel free to use/remove the unnecessary things

Description


Bug

Target nrf52_dk

Toolchain: GCC_ARM

Toolchain version:

mbed-cli version: (mbed --version) 1.3.0

mbed-os sha: (git log -n1 --oneline) any

DAPLink version:

Expected behavior Should Compile on Eclipse

Actual behavior

Dumps these error messages:

Building file: ../mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/lp_ticker.c
Invoking: Cross ARM C Compiler
arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=softfp -mfpu=fpv4-sp-d16 -O0 -fmessage-length=0 -ffunction-sections -fdata-sections -fno-builtin -funsigned-char -fno-delete-null-pointer-checks -fomit-frame-pointer -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers  -g3 -DDEVICE_ERROR_PATTERN=1 -DTARGET_MCU_NRF52832 -DTARGET_SDK11 -D__MBED__=1 -DNRF52_PAN_53 -DTARGET_NRF52_COMMON -DDEVICE_PORTINOUT=1 -DTARGET_RTOS_M4_M7 -DDEVICE_LOWPOWERTIMER=1 -DDEVICE_RTC=1 -DTOOLCHAIN_object -DDEVICE_SERIAL_ASYNCH=1 -D__CMSIS_RTOS -DBOARD_PCA10040 -DTARGET_FF_ARDUINO -DNRF52_PAN_12 -DTOOLCHAIN_GCC -DNRF52_PAN_58 -DDEVICE_SPISLAVE=1 -DNRF52_PAN_55 -DNRF52_PAN_54 -DTARGET_CORTEX_M -DTARGET_DEBUG -DTARGET_NRF52_DK -DNRF52_PAN_36 -DTARGET_LIKE_CORTEX_M4 -DTARGET_M4 -DTARGET_UVISOR_UNSUPPORTED -DTARGET_NRF5 -DFEATURE_BLE=1 -DTARGET_MCU_NRF52 -DCMSIS_VECTAB_VIRTUAL -DDEVICE_SERIAL=1 -DDEVICE_SPI_ASYNCH=1 -DNRF52 -DDEVICE_I2C=1 -DDEVICE_PORTOUT=1 -DTARGET_NRF52832 -D__CORTEX_M4 -D__FPU_PRESENT=1 -DS132 -DDEVICE_SLEEP=1 -DDEVICE_PORTIN=1 -DNRF52_PAN_51 -DTARGET_NORDIC -DNRF52_PAN_30 -DBLE_STACK_SUPPORT_REQD -DNRF52_PAN_15 -DCONFIG_GPIO_AS_PINRESET -DMBED_BUILD_TIMESTAMP=1514470223.58 -DTARGET_LIKE_MBED -D__MBED_CMSIS_RTOS_CM -DNRF52_PAN_31 -DTOOLCHAIN_GCC_ARM -DSWI_DISABLE0 -DSOFTDEVICE_PRESENT -DDEVICE_I2C_ASYNCH=1 -DCMSIS_VECTAB_VIRTUAL_HEADER_FILE=\"cmsis_nvic.h\" -DDEVICE_INTERRUPTIN=1 -DNRF52_PAN_64 -DNRF52_PAN_20 -DDEVICE_ANALOGIN=1 -DDEVICE_PWMOUT=1 -DNRF52_PAN_62 -DNRF52_PAN_63 -DDEVICE_SPI=1 -DARM_MATH_CM4 -DDEVICE_SERIAL_FC=1 -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/." -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/DHT11" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/DHT11/mbed" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/DHT11/mbed/e188a91d3eaa" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/rtos" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/rtos/rtx4" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/rtos/rtx5" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/rtos/rtx5/TARGET_CORTEX_M" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/rtos/rtx5/TARGET_CORTEX_M/TARGET_RTOS_M4_M7" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/rtos/rtx5/TARGET_CORTEX_M/TARGET_RTOS_M4_M7/TOOLCHAIN_GCC" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/drivers" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/features" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/features/nanostack" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/features/storage" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/features/frameworks" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/features/frameworks/utest" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/features/frameworks/utest/utest" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/features/frameworks/utest/source" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/features/frameworks/unity" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/features/frameworks/unity/unity" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/features/frameworks/unity/source" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/features/frameworks/greentea-client" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/features/frameworks/greentea-client/greentea-client" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/features/frameworks/greentea-client/source" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/features/filesystem" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/features/filesystem/bd" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/features/filesystem/fat" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/features/filesystem/fat/ChaN" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/features/netsocket" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/features/netsocket/cellular" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/features/netsocket/cellular/utils" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/features/netsocket/cellular/generic_modem_driver" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/features/mbedtls" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/features/mbedtls/importer" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/features/mbedtls/platform" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/features/mbedtls/platform/inc" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/features/mbedtls/platform/src" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/features/mbedtls/targets" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/features/mbedtls/inc" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/features/mbedtls/inc/mbedtls" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/features/mbedtls/src" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/platform" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/hal" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/hal/storage_abstraction" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/targets" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/targets/TARGET_NORDIC" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/targets/TARGET_NORDIC/TARGET_NRF5" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_NRF52_COMMON" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk_patch" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/TARGET_NRF52_DK" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/driver_nrf" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/driver_nrf/saadc" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/driver_nrf/pwm" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf52" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/hex" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/device" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/device/TOOLCHAIN_GCC_ARM" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/porting_tools" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK11" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK11/ble" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK11/ble/ble_dtm" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK11/ble/common" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK11/ble/device_manager" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK11/ble/device_manager/config" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK11/ble/ble_services" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK11/ble/ble_services/ble_dfu" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK11/ble/ble_debug_assert_handler" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK11/ble/ble_error_log" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK11/ble/ble_advertising" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK11/ble/ble_racp" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK11/ble/ble_db_discovery" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK11/ble/peer_manager" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK11/ble/ble_radio_notification" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK11/device" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK11/drivers_nrf" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK11/drivers_nrf/common" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK11/drivers_nrf/ppi" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK11/drivers_nrf/spi_slave" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK11/drivers_nrf/hal" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK11/drivers_nrf/delay" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK11/drivers_nrf/timer" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK11/drivers_nrf/pstorage" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK11/drivers_nrf/pstorage/config" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK11/drivers_nrf/clock" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK11/drivers_nrf/gpiote" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK11/drivers_nrf/config" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK11/drivers_nrf/ble_flash" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK11/drivers_nrf/spi_master" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK11/softdevice" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK11/softdevice/common" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK11/softdevice/common/softdevice_handler" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK11/libraries" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK11/libraries/fstorage" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK11/libraries/fstorage/config" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK11/libraries/crc16" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK11/libraries/scheduler" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK11/libraries/trace" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK11/libraries/util" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK11/libraries/fds" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK11/libraries/fds/config" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK11/libraries/hci" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK11/libraries/hci/config" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK11/libraries/experimental_section_vars" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK11/libraries/pwm" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK11/libraries/bootloader_dfu" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_SDK11/libraries/bootloader_dfu/hci_transport" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/events" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/events/equeue" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/cmsis" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/cmsis/TOOLCHAIN_GCC" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/cmsis/TARGET_CORTEX_M" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/cmsis/TARGET_CORTEX_M/TOOLCHAIN_GCC" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/features/FEATURE_BLE" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/features/FEATURE_BLE/ble" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/features/FEATURE_BLE/ble/services" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/features/FEATURE_BLE/targets" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/features/FEATURE_BLE/targets/TARGET_NORDIC" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NRF5" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NRF5/source" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NRF5/source/common" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NRF5/source/btle" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NRF5/source/btle/custom" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/features/FEATURE_BLE/source" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed-os/features/FEATURE_BLE/source/services" -I"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/" -include"/home/aldrin/projetos/sources/mbed-work/test-nrf52-dht11/mbed_config.h" -std=gnu99 -DMBED_DEBUG -DMBED_TRAP_ERRORS_ENABLED=1 -MMD -MP -MF"mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/lp_ticker.d" -MT"mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/lp_ticker.o" -c -o "mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/lp_ticker.o" "../mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/lp_ticker.c"
../mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/i2c_api.c: In function 'twi_irq_handler':
../mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/i2c_api.c:152:29: error: 'I2C_EVENT_ERROR' undeclared (first use in this function)
         twi_info->events |= I2C_EVENT_ERROR;
                             ^~~~~~~~~~~~~~~
../mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/i2c_api.c:152:29: note: each undeclared identifier is reported only once for each function it appears in
../mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/i2c_api.c:154:33: error: 'I2C_EVENT_ERROR_NO_SLAVE' undeclared (first use in this function)
             twi_info->events |= I2C_EVENT_ERROR_NO_SLAVE;
                                 ^~~~~~~~~~~~~~~~~~~~~~~~
../mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/i2c_api.c:157:33: error: 'I2C_EVENT_TRANSFER_EARLY_NACK' undeclared (first use in this function)
             twi_info->events |= I2C_EVENT_TRANSFER_EARLY_NACK;
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/i2c_api.c:183:33: error: 'I2C_EVENT_TRANSFER_COMPLETE' undeclared (first use in this function)
             twi_info->events |= I2C_EVENT_TRANSFER_COMPLETE;
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/i2c_api.c: In function 'i2c_init':
../mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/i2c_api.c:59:35: error: 'i2c_t {aka struct i2c_s}' has no member named 'i2c'
     #define TWI_IDX(obj)    ((obj)->i2c.twi_idx)
                                   ^
../mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/i2c_api.c:300:13: note: in expansion of macro 'TWI_IDX'
             TWI_IDX(obj) = i;
             ^~~~~~~
../mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/i2c_api.c:59:35: error: 'i2c_t {aka struct i2c_s}' has no member named 'i2c'
     #define TWI_IDX(obj)    ((obj)->i2c.twi_idx)
                                   ^
../mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/i2c_api.c:63:38: note: in expansion of macro 'TWI_IDX'
 #define TWI_INFO(obj)   (&m_twi_info[TWI_IDX(obj)])
                                      ^~~~~~~
../mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/i2c_api.c:301:13: note: in expansion of macro 'TWI_INFO'
             TWI_INFO(obj)->frequency = NRF_TWI_FREQ_100K;
             ^~~~~~~~
../mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/i2c_api.c:59:35: error: 'i2c_t {aka struct i2c_s}' has no member named 'i2c'
     #define TWI_IDX(obj)    ((obj)->i2c.twi_idx)
                                   ^
../mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/i2c_api.c:316:13: note: in expansion of macro 'TWI_IDX'
             TWI_IDX(obj) = i;
             ^~~~~~~
../mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/i2c_api.c:59:35: error: 'i2c_t {aka struct i2c_s}' has no member named 'i2c'
     #define TWI_IDX(obj)    ((obj)->i2c.twi_idx)
                                   ^
../mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/i2c_api.c:63:38: note: in expansion of macro 'TWI_IDX'
 #define TWI_INFO(obj)   (&m_twi_info[TWI_IDX(obj)])
                                      ^~~~~~~
../mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/i2c_api.c:318:36: note: in expansion of macro 'TWI_INFO'
             twi_info_t *twi_info = TWI_INFO(obj);
                                    ^~~~~~~~
../mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/i2c_api.c: In function 'i2c_reset':
../mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/i2c_api.c:59:35: error: 'i2c_t {aka struct i2c_s}' has no member named 'i2c'
     #define TWI_IDX(obj)    ((obj)->i2c.twi_idx)
                                   ^
../mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/i2c_api.c:63:38: note: in expansion of macro 'TWI_IDX'
 #define TWI_INFO(obj)   (&m_twi_info[TWI_IDX(obj)])
                                      ^~~~~~~
../mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/i2c_api.c:349:28: note: in expansion of macro 'TWI_INFO'
     twi_info_t *twi_info = TWI_INFO(obj);
                            ^~~~~~~~
../mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/i2c_api.c:59:35: error: 'i2c_t {aka struct i2c_s}' has no member named 'i2c'
     #define TWI_IDX(obj)    ((obj)->i2c.twi_idx)
                                   ^
../mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/i2c_api.c:350:41: note: in expansion of macro 'TWI_IDX'
     NRF_TWI_Type *twi = m_twi_instances[TWI_IDX(obj)];
                                         ^~~~~~~
../mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/i2c_api.c: In function 'i2c_start':
../mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/i2c_api.c:59:35: error: 'i2c_t {aka struct i2c_s}' has no member named 'i2c'
     #define TWI_IDX(obj)    ((obj)->i2c.twi_idx)
                                   ^
../mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/i2c_api.c:63:38: note: in expansion of macro 'TWI_IDX'
 #define TWI_INFO(obj)   (&m_twi_info[TWI_IDX(obj)])
                                      ^~~~~~~
../mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/i2c_api.c:360:28: note: in expansion of macro 'TWI_INFO'
     twi_info_t *twi_info = TWI_INFO(obj);
                            ^~~~~~~~
../mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/i2c_api.c: In function 'i2c_stop':
../mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/i2c_api.c:59:35: error: 'i2c_t {aka struct i2c_s}' has no member named 'i2c'
     #define TWI_IDX(obj)    ((obj)->i2c.twi_idx)
                                   ^
../mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/i2c_api.c:373:41: note: in expansion of macro 'TWI_IDX'
     NRF_TWI_Type *twi = m_twi_instances[TWI_IDX(obj)];
                                         ^~~~~~~
../mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/i2c_api.c: In function 'i2c_frequency':
../mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/i2c_api.c:59:35: error: 'i2c_t {aka struct i2c_s}' has no member named 'i2c'
     #define TWI_IDX(obj)    ((obj)->i2c.twi_idx)
                                   ^
../mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/i2c_api.c:63:38: note: in expansion of macro 'TWI_IDX'
 #define TWI_INFO(obj)   (&m_twi_info[TWI_IDX(obj)])
                                      ^~~~~~~
../mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/i2c_api.c:391:28: note: in expansion of macro 'TWI_INFO'
     twi_info_t *twi_info = TWI_INFO(obj);
                            ^~~~~~~~
../mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/i2c_api.c:59:35: error: 'i2c_t {aka struct i2c_s}' has no member named 'i2c'
     #define TWI_IDX(obj)    ((obj)->i2c.twi_idx)
                                   ^
../mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/i2c_api.c:392:41: note: in expansion of macro 'TWI_IDX'
     NRF_TWI_Type *twi = m_twi_instances[TWI_IDX(obj)];
                                         ^~~~~~~
../mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/i2c_api.c: In function 'i2c_read':
../mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/i2c_api.c:59:35: error: 'i2c_t {aka struct i2c_s}' has no member named 'i2c'
     #define TWI_IDX(obj)    ((obj)->i2c.twi_idx)
                                   ^
../mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/i2c_api.c:63:38: note: in expansion of macro 'TWI_IDX'
 #define TWI_INFO(obj)   (&m_twi_info[TWI_IDX(obj)])
                                      ^~~~~~~
../mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/i2c_api.c:432:28: note: in expansion of macro 'TWI_INFO'
     twi_info_t *twi_info = TWI_INFO(obj);
                            ^~~~~~~~
../mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/i2c_api.c:59:35: error: 'i2c_t {aka struct i2c_s}' has no member named 'i2c'
     #define TWI_IDX(obj)    ((obj)->i2c.twi_idx)
                                   ^
../mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/i2c_api.c:440:41: note: in expansion of macro 'TWI_IDX'
     NRF_TWI_Type *twi = m_twi_instances[TWI_IDX(obj)];
                                         ^~~~~~~
../mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/i2c_api.c: In function 'i2c_write':
../mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/i2c_api.c:59:35: error: 'i2c_t {aka struct i2c_s}' has no member named 'i2c'
     #define TWI_IDX(obj)    ((obj)->i2c.twi_idx)
                                   ^
../mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/i2c_api.c:63:38: note: in expansion of macro 'TWI_IDX'
 #define TWI_INFO(obj)   (&m_twi_info[TWI_IDX(obj)])
                                      ^~~~~~~
../mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/i2c_api.c:502:28: note: in expansion of macro 'TWI_INFO'
     twi_info_t *twi_info = TWI_INFO(obj);
                            ^~~~~~~~
../mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/i2c_api.c:59:35: error: 'i2c_t {aka struct i2c_s}' has no member named 'i2c'
     #define TWI_IDX(obj)    ((obj)->i2c.twi_idx)
                                   ^
../mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/i2c_api.c:510:41: note: in expansion of macro 'TWI_IDX'
     NRF_TWI_Type *twi = m_twi_instances[TWI_IDX(obj)];
                                         ^~~~~~~
../mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/i2c_api.c: In function 'i2c_byte_read':
../mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/i2c_api.c:59:35: error: 'i2c_t {aka struct i2c_s}' has no member named 'i2c'
     #define TWI_IDX(obj)    ((obj)->i2c.twi_idx)
                                   ^
../mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/i2c_api.c:576:41: note: in expansion of macro 'TWI_IDX'
     NRF_TWI_Type *twi = m_twi_instances[TWI_IDX(obj)];
                                         ^~~~~~~
../mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/i2c_api.c: In function 'i2c_byte_write':
../mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/i2c_api.c:59:35: error: 'i2c_t {aka struct i2c_s}' has no member named 'i2c'
mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/subdir.mk:57: recipe for target 'mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/i2c_api.o' failed
     #define TWI_IDX(obj)    ((obj)->i2c.twi_idx)
                                   ^
../mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/i2c_api.c:600:41: note: in expansion of macro 'TWI_IDX'
     NRF_TWI_Type *twi = m_twi_instances[TWI_IDX(obj)];
                                         ^~~~~~~
../mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/i2c_api.c:59:35: error: 'i2c_t {aka struct i2c_s}' has no member named 'i2c'
     #define TWI_IDX(obj)    ((obj)->i2c.twi_idx)
                                   ^
../mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/i2c_api.c:63:38: note: in expansion of macro 'TWI_IDX'
 #define TWI_INFO(obj)   (&m_twi_info[TWI_IDX(obj)])
                                      ^~~~~~~
../mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/i2c_api.c:601:28: note: in expansion of macro 'TWI_INFO'
     twi_info_t *twi_info = TWI_INFO(obj);
                            ^~~~~~~~
../mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/i2c_api.c: At top level:
../mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/i2c_api.c:625:42: error: unknown type name 'DMAUsage'
                          uint32_t event, DMAUsage hint)
                                          ^~~~~~~~
../mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/i2c_api.c: In function 'i2c_irq_handler_asynch':
../mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/i2c_api.c:59:35: error: 'i2c_t {aka struct i2c_s}' has no member named 'i2c'
     #define TWI_IDX(obj)    ((obj)->i2c.twi_idx)
                                   ^
../mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/i2c_api.c:63:38: note: in expansion of macro 'TWI_IDX'
 #define TWI_INFO(obj)   (&m_twi_info[TWI_IDX(obj)])
                                      ^~~~~~~
../mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/i2c_api.c:684:28: note: in expansion of macro 'TWI_INFO'
     twi_info_t *twi_info = TWI_INFO(obj);
                            ^~~~~~~~
../mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/i2c_api.c: In function 'i2c_active':
../mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/i2c_api.c:59:35: error: 'i2c_t {aka struct i2c_s}' has no member named 'i2c'
     #define TWI_IDX(obj)    ((obj)->i2c.twi_idx)
                                   ^
../mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/i2c_api.c:63:38: note: in expansion of macro 'TWI_IDX'
 #define TWI_INFO(obj)   (&m_twi_info[TWI_IDX(obj)])
                                      ^~~~~~~
../mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/i2c_api.c:690:28: note: in expansion of macro 'TWI_INFO'
     twi_info_t *twi_info = TWI_INFO(obj);
                            ^~~~~~~~
make: *** [mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/i2c_api.o] Error 1
Finished building: ../mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/gpio_api.c

make: *** Waiting for unfinished jobs....
Finished building: ../mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/flash_api.c

Finished building: ../mbed-os/targets/TARGET_NORDIC/TARGET_NRF5/lp_ticker.c

09:11:13 Build Finished (took 10s.857ms)

Steps to reproduce

0xc0170 commented 6 years ago

Just in case, building with GCC_ARM using mbed compile works

Based on the errors seems like it does not use correct i2c structures (might be missing some configuration like i2c async or similar) ?

aldrinleal commented 6 years ago

@0xc0170 yes, mbed compile works. I wonder whats wrong with it

theotherjimmy commented 6 years ago

@aldrinleal We have been testing this particular export combination, and a recent run pased: http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/exporter/6447/PASS/NRF52_DK/

theotherjimmy commented 6 years ago

Full log here: http://mbed-os.s3-eu-west-1.amazonaws.com/builds/exporter/6447/PASS/NRF52_DK/gnuarmeclipse/f9ed86849fd49103c75982e3bc00834760b61666_exporter_build_log_NRF52_DK_gnuarmeclipse.txt

aldrinleal commented 6 years ago

Awesome! Thank you guys!