Many thanks! Resolved in fbfbf340c12caf56d8566e24df8c14441d5c9c68. Please retest with the latest platformio from dev branch, just run pio upgrade --dev in the terminal.
Solved, thank you.
I also get a same problem on lubuntu, which is the Virtual Machine I add on my original windows PC.May I ask why?

@gracedotdotdot do you use the latest PIO Core? Please open PlatformIO IDE Terminal and type pio upgrade.
I am on a Mac and i still got that same problem, even when upgrading with "pio upgrade --dev":

The error also says:
#include errors detected. Please update your includePath. Squiggles are disabled for this translation unit
I ve been searching for at least 2 days to solve this issue...
Hi @sajadghawami ! What are the platform and board you're using? Could you please upload somewhere your c_cpp_properties.json file.
hey @valeros Thanks for the quick reply! :)
This is the plattformio.ini:
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[env:nano33ble]
platform = nordicnrf52
board = nano33ble
framework = arduino
And this is the c_cpp_properties.json:
{
"configurations": [
{
"name": "!!! WARNING !!! AUTO-GENERATED FILE, PLEASE DO NOT MODIFY IT AND USE https://docs.platformio.org/page/projectconf/section_env_build.html#build-flags"
},
{
"name": "Mac",
"macFrameworkPath": [],
"includePath": [
"/Users/CURRENT_USER/CURRENT_PROJECT/include",
"/Users/CURRENT_USER/CURRENT_PROJECT/src",
"/Users/CURRENT_USER/.platformio/packages/framework-arduino-nrf52-mbedos/cores/arduino",
"/Users/CURRENT_USER/.platformio/packages/framework-arduino-nrf52-mbedos/cores/arduino/api/deprecated",
"/Users/CURRENT_USER/.platformio/packages/framework-arduino-nrf52-mbedos/variants/ARDUINO_NANO33BLE",
"/Users/CURRENT_USER/.platformio/lib/ArduinoBLE_ID5878/src",
"/Users/CURRENT_USER/.platformio/packages/framework-arduino-nrf52-mbedos/libraries/PDM/src",
"/Users/CURRENT_USER/.platformio/packages/framework-arduino-nrf52-mbedos/libraries/SPI",
"/Users/CURRENT_USER/.platformio/packages/framework-arduino-nrf52-mbedos/libraries/USBHID",
"/Users/CURRENT_USER/.platformio/packages/framework-arduino-nrf52-mbedos/libraries/USBMSD",
"/Users/CURRENT_USER/.platformio/packages/framework-arduino-nrf52-mbedos/libraries/Wire",
"/Users/CURRENT_USER/.platformio/packages/tool-unity",
""
],
"browse": {
"limitSymbolsToIncludedHeaders": true,
"path": [
"/Users/CURRENT_USER/CURRENT_PROJECT/include",
"/Users/CURRENT_USER/CURRENT_PROJECT/src",
"/Users/CURRENT_USER/.platformio/packages/framework-arduino-nrf52-mbedos/cores/arduino",
"/Users/CURRENT_USER/.platformio/packages/framework-arduino-nrf52-mbedos/cores/arduino/api/deprecated",
"/Users/CURRENT_USER/.platformio/packages/framework-arduino-nrf52-mbedos/variants/ARDUINO_NANO33BLE",
"/Users/CURRENT_USER/.platformio/lib/ArduinoBLE_ID5878/src",
"/Users/CURRENT_USER/.platformio/packages/framework-arduino-nrf52-mbedos/libraries/PDM/src",
"/Users/CURRENT_USER/.platformio/packages/framework-arduino-nrf52-mbedos/libraries/SPI",
"/Users/CURRENT_USER/.platformio/packages/framework-arduino-nrf52-mbedos/libraries/USBHID",
"/Users/CURRENT_USER/.platformio/packages/framework-arduino-nrf52-mbedos/libraries/USBMSD",
"/Users/CURRENT_USER/.platformio/packages/framework-arduino-nrf52-mbedos/libraries/Wire",
"/Users/CURRENT_USER/.platformio/packages/tool-unity",
""
]
},
"defines": [
"PLATFORMIO=40300",
"ARDUINO_ARDUINO_NANO33BLE",
"ARDUINO_ARCH_NRF52840",
"ARM_MATH_CM4",
"BOARD_PCA10056",
"__CMSIS_RTOS",
"CMSIS_VECTAB_VIRTUAL",
"CMSIS_VECTAB_VIRTUAL_HEADER_FILE=\"cmsis_nvic.h\"",
"COMPONENT_FLASHIAP=1",
"COMPONENT_NSPE=1",
"COMPONENT_PSA_SRV_EMUL=1",
"COMPONENT_PSA_SRV_IMPL=1",
"CONFIG_GPIO_AS_PINRESET",
"__CORTEX_M4",
"DEVICE_ANALOGIN=1",
"DEVICE_FLASH=1",
"DEVICE_I2C=2",
"DEVICE_I2C_ASYNCH=1",
"DEVICE_INTERRUPTIN=1",
"DEVICE_ITM=1",
"DEVICE_LPTICKER=1",
"DEVICE_PORTIN=1",
"DEVICE_PORTINOUT=1",
"DEVICE_PORTOUT=1",
"DEVICE_PWMOUT=1",
"DEVICE_SERIAL=1",
"DEVICE_SERIAL_ASYNCH=1",
"DEVICE_SERIAL_FC=1",
"DEVICE_SLEEP=1",
"DEVICE_SPI=1",
"DEVICE_SPI_ASYNCH=1",
"DEVICE_SYSTICK_CLK_OFF_DURING_SLEEP=1",
"DEVICE_TRNG=1",
"DEVICE_USBDEVICE=1",
"DEVICE_USTICKER=1",
"FEATURE_BLE=1",
"FEATURE_CRYPTOCELL310=1",
"FEATURE_STORAGE=1",
"__FPU_PRESENT=1",
"__MBED__=1",
"MBED_BUILD_TIMESTAMP=1568118004.1384244",
"__MBED_CMSIS_RTOS_CM",
"MBED_MPU_CUSTOM",
"MBED_TICKLESS",
"MBEDTLS_CONFIG_HW_SUPPORT",
"NRF52840_XXAA",
"NRF52_ERRATA_20",
"TARGET_ARDUINO_NANO33BLE",
"TARGET_CORDIO",
"TARGET_CORDIO_LL",
"TARGET_CORTEX",
"TARGET_CORTEX_M",
"TARGET_LIKE_CORTEX_M4",
"TARGET_LIKE_MBED",
"TARGET_M4",
"TARGET_MCU_NRF52840",
"TARGET_NAME=ARDUINO_NANO33BLE",
"TARGET_NORDIC",
"TARGET_NORDIC_CORDIO",
"TARGET_NRF52",
"TARGET_NRF52840",
"TARGET_NRF5x",
"TARGET_RELEASE",
"TARGET_RTOS_M4_M7",
"TARGET_SDK_15_0",
"TARGET_SOFTDEVICE_NONE",
"TOOLCHAIN_GCC",
"TOOLCHAIN_GCC_ARM",
"WSF_MAX_HANDLERS=10",
"MBED_NO_GLOBAL_USING_DIRECTIVE=1",
"USE_ARDUINO_PINOUT",
"ARDUINO=10810",
"ARDUINO_ARCH_MBED",
""
],
"intelliSenseMode": "clang-x64",
"cStandard": "c11",
"cppStandard": "c++14",
"compilerPath": "/Users/CURRENT_USER/.platformio/packages/toolchain-gccarmnoneeabi/bin/arm-none-eabi-gcc",
"compilerArgs": [
"-mcpu=cortex-m4",
"-mfloat-abi=softfp",
"-mfpu=fpv4-sp-d16",
"-mthumb",
"-iprefix/Users/CURRENT_USER/.platformio/packages/framework-arduino-nrf52-mbedos/cores/arduino",
"@\"/Users/CURRENT_USER/.platformio/packages/framework-arduino-nrf52-mbedos/variants/ARDUINO_NANO33BLE/includes.txt\"",
""
]
}
],
"version": 4
}
Its basically a newly created and empty project
OK, that's strange, could you please try the following config:
[env:nano33ble]
platform = https://github.com/platformio/platform-nordicnrf52.git
board = nano33ble
framework = arduino
after doing this, and rebuildig it seems to have worked! Thanks :)
Out of curiosity - how come?
Most helpful comment
OK, that's strange, could you please try the following config: