Sensor driver warnings in VSCode Extension

Hi, 

im trying to use the Bosch BMP581 I2C Sensor driver in Zephyr & NCS main. It's compiling and working fine but I get some warnings in VSCode that I was hoping you could help me track down. I should also say that I have gone though the sensor driver source code line by line and have compared with other drivers (that don't give VSCode warnings) and I can't see any problem with .h, .c, config or its bindings. It's really strange. 

Here is what I am seeing in the board overlay in VSCode:

I can use just about any other sensor driver in my overlay and don't get any of these warnings.

Any suggestions on how I could track/trace these down? 

Parents Reply
  • I’m using NCS main which has the bmp581 driver and it’s working fine. It compiles and I’m able to read the pressure data. The problem is just with the swigging red and yellow lines in VSCode. I just can’t figure out why the extension isn’t aware of the sensor. 

    the bma4xx sensor driver is an example of a recently added (to main) driver that also works fine and VSCode extension doesn’t show squiggly lines. 

Children
  • I will have to check with our VS Code Extension team for why that is the case. Please know that it might be a while before I can follow-up though, because we are in the Easter holiday period here. My apology for the inconvenience.

  • Could you please generate support information and share it?

  • {
      "platform": {
        "os": "darwin",
        "osVersion": "Darwin Kernel Version 23.4.0: Wed Feb 21 21:44:43 PST 2024; root:xnu-10063.101.15~2/RELEASE_ARM64_T6000",
        "osKernel": "23.4.0",
        "vscode": "1.87.2",
        "electron": "27.3.2",
        "node": "v18.17.1"
      },
      "system": {
        "date": "2024-03-26T14:41:22.580Z",
        "vscodeRoot": "/Applications/Visual Studio Code.app/Contents/Resources/app",
        "nrfConnectForDesktopInstalled": true,
        "vscodeUptime": "61:59:36",
        "osUptime": "94:52:04",
        "cpu": "Apple M1 Pro"
      },
      "workspace": {
        "name": "fund_less6_exer1_solution",
        "workspaceFile": null,
        "folders": [
          "/Users/pixbroker/nordic/fund_less6_exer1_solution"
        ]
      },
      "sdks": [
        {
          "version": "v2.6.99",
          "path": "/opt/nordic/ncs/main"
        },
        {
          "version": "v2.6.0",
          "path": "/opt/nordic/ncs/v2.6.0"
        }
      ],
      "activeBuild": "/Users/pixbroker/nordic/fund_less6_exer1_solution/build",
      "apps": [
        {
          "workspace": "/Users/pixbroker/nordic/fund_less6_exer1_solution",
          "uri": "/Users/pixbroker/nordic/fund_less6_exer1_solution",
          "buildConfigurations": [
            {
              "id": "/Users/pixbroker/nordic/fund_less6_exer1_solution/build",
              "name": "build",
              "boardId": "[email protected]",
              "type": "Zephyr",
              "isChild": false,
              "isStale": false,
              "taskBindings": {
                "build": [],
                "pristineBuild": [],
                "flash": [],
                "eraseAndFlash": []
              }
            }
          ]
        }
      ],
      "topdir": "/opt/nordic/ncs/main",
      "workspaceState": "freestanding-ready",
      "toolchains": [
        {
          "version": "2.6.0",
          "path": "/opt/nordic/ncs/toolchains/580e4ef81c"
        }
      ],
      "connectedDevices": [
        {
          "serialNumber": "000960054990"
        }
      ],
      "deviceProvider": "nrfutil",
      "tools": {
        "/opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc": "0.16.5",
        "/Applications/SEGGER/JLink/JLinkExe": "7.96a",
        "/usr/local/bin/nrfjprog": "10.24.0",
        "nrfutil": "Not found",
        "/opt/nordic/ncs/toolchains/580e4ef81c/bin/cmake": "3.21.0",
        "/opt/nordic/ncs/toolchains/580e4ef81c/bin/west": "1.2.0",
        "/opt/nordic/ncs/toolchains/580e4ef81c/bin/python3": "3.9.6",
        "/opt/nordic/ncs/toolchains/580e4ef81c/bin/ninja": "1.10.2",
        "/opt/nordic/ncs/toolchains/580e4ef81c/bin/gperf": "3.1",
        "/opt/nordic/ncs/toolchains/580e4ef81c/bin/dtc": "1.6.1",
        "/opt/nordic/ncs/toolchains/580e4ef81c/bin/gn": "2154",
        "/opt/nordic/ncs/toolchains/580e4ef81c/bin/git": "2.37.3",
        "gdbPath": "/opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gdb"
      },
      "nrfutil": {
        "nrfutil-device": {
          "version": "2.0.0",
          "binPath": "/Users/pixbroker/.vscode/extensions/nordic-semiconductor.nrf-connect-2024.3.25-darwin-arm64/platform/nrfutil/bin/nrfutil-device"
        },
        "nrfutil-toolchain-manager": {
          "version": "0.14.1",
          "binPath": "/Users/pixbroker/.vscode/extensions/nordic-semiconductor.nrf-connect-2024.3.25-darwin-arm64/platform/nrfutil/bin/nrfutil-toolchain-manager"
        }
      },
      "environment": {
        "westEnv": {
          "ELECTRON_RUN_AS_NODE": "1",
          "GIT_EXEC_PATH": "/opt/nordic/ncs/toolchains/580e4ef81c/Cellar/git/2.37.3/libexec/git-core",
          "HOME": "/Users/pixbroker",
          "PATH": "/opt/nordic/ncs/toolchains/580e4ef81c/bin:/opt/nordic/ncs/toolchains/580e4ef81c/usr/bin:/opt/nordic/ncs/toolchains/580e4ef81c/usr/local/bin:/opt/nordic/ncs/toolchains/580e4ef81c/opt/bin:/opt/nordic/ncs/toolchains/580e4ef81c/opt/nanopb/generator-bin:/opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk/aarch64-zephyr-elf/bin:/opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk/x86_64-zephyr-elf/bin:/opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk/arm-zephyr-eabi/bin:/opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk/riscv64-zephyr-elf/bin:/Users/pixbroker/miniforge3/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/usr/local/go/bin:/Users/pixbroker/Library/Application Support/JetBrains/Toolbox/scripts:/Users/pixbroker/flutter/bin:/Users/pixbroker/go/bin:/Users/pixbroker/miniforge3/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/usr/local/go/bin:/Users/pixbroker/Library/Application Support/JetBrains/Toolbox/scripts:/Users/pixbroker/flutter/bin:/Users/pixbroker/go/bin",
          "ZEPHYR_BASE": "/opt/nordic/ncs/main/zephyr",
          "ZEPHYR_TOOLCHAIN_VARIANT": "zephyr",
          "ZEPHYR_SDK_INSTALL_DIR": "/opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk",
          "USER": "pixbroker"
        },
        "inherited": {
          "ELECTRON_RUN_AS_NODE": "1",
          "HOME": "/Users/pixbroker",
          "PATH": "/Users/pixbroker/miniforge3/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/usr/local/go/bin:/Users/pixbroker/Library/Application Support/JetBrains/Toolbox/scripts:/Users/pixbroker/flutter/bin:/Users/pixbroker/go/bin",
          "USER": "pixbroker"
        },
        "toolchainPath": "/opt/nordic/ncs/toolchains/580e4ef81c",
        "toolchainBinPath": "/opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk/arm-zephyr-eabi/bin",
        "toolchainVersion": "2.6.0"
      },
      "terminal": {
        "defaultProfile": null
      },
      "config": {
        "nordic-semiconductor.nrf-connect": {
          "topdir": "/opt/nordic/ncs/main",
          "toolchain": {
            "path": ""
          },
          "ozonePath": "",
          "applications": [],
          "applicationOptions": {},
          "kconfig": {
            "interface": "kconfig"
          },
          "west": {
            "env": {
              "$base": "terminal"
            }
          },
          "boardRoots": [],
          "taskBindings": {},
          "buildTerminal": {
            "condensedProgress": true
          },
          "debugging": {
            "flash": true,
            "bindings": {
              "${workspaceFolder}/build": "Launch build"
            },
            "justMyCode": true
          },
          "activeAppFollowActiveEditor": true,
          "deviceProvider": "",
          "flash": {
            "softreset": false,
            "erase": false,
            "recover": false
          },
          "enableTelemetry": true,
          "thirdpartyIntegration": {},
          "toolchainManager": {
            "indexURL": null,
            "installDirectory": null
          },
          "nrfutil": {
            "home": null
          },
          "defaultOpenAction": "ask"
        },
        "nordic-semiconductor.nrf-terminal": {
          "terminalMode": "character"
        }
      },
      "extensions": {
        "internal": {
          "nordic-semiconductor.nrf-connect": {
            "version": "2024.3.25",
            "path": "/Users/pixbroker/.vscode/extensions/nordic-semiconductor.nrf-connect-2024.3.25-darwin-arm64",
            "isActive": true
          },
          "nordic-semiconductor.nrf-terminal": {
            "version": "2024.3.15",
            "path": "/Users/pixbroker/.vscode/extensions/nordic-semiconductor.nrf-terminal-2024.3.15",
            "isActive": true
          },
          "nordic-semiconductor.nrf-devicetree": {
            "version": "2024.3.78",
            "path": "/Users/pixbroker/.vscode/extensions/nordic-semiconductor.nrf-devicetree-2024.3.78",
            "isActive": true
          },
          "nordic-semiconductor.nrf-kconfig": {
            "version": "2024.3.21",
            "path": "/Users/pixbroker/.vscode/extensions/nordic-semiconductor.nrf-kconfig-2024.3.21",
            "isActive": true
          }
        },
        "external": {
          "marus25.cortex-debug": null,
          "ms-vscode.cpptools": "1.19.9",
          "ms-vscode.js-debug": "1.87.0",
          "ms-vscode.js-debug-companion": "1.1.2",
          "ms-vscode.vscode-js-profile-table": "1.0.8",
          "Dart-Code.dart-code": "3.84.0",
          "Dart-Code.flutter": "3.84.0",
          "GitHub.copilot": "1.175.0",
          "GitHub.copilot-chat": "0.13.1",
          "github.vscode-github-actions": "0.26.2",
          "ms-vscode.hexeditor": "1.9.14",
          "trond-snekvik.gnu-mapfiles": "1.1.0",
          "twxs.cmake": "0.0.17"
        }
      }
    }
    
    

  • Hi again,

    Apologies for the wait, we have had a holiday.

    Apparently, this is because the nRF Connect VS Code Extension couldn't handle the .yml file extension, which the bmp581 binding is using.

    I have noted this point with the extension team. For now, could you please change the bosch,bmp581.yml file to the .yaml extension instead?

Related