diff --git a/.vscode/launch.json b/.vscode/launch.json index 77739937fc05a0..12c6c1da16bdba 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -5,458 +5,69 @@ "version": "0.2.0", "configurations": [ { - "name": "Attach to running process", - "type": "lldb", - "request": "attach", - "pid": "${command:pickProcess}" - }, - { - "name": "QRCode Tests", - "type": "cppdbg", - "request": "launch", - "program": "${workspaceFolder}/build/default/src/setup_payload/tests/TestQRCode", - "args": [], - "stopAtEntry": false, - "cwd": "${workspaceFolder}", - "environment": [], - "externalConsole": false, - "MIMode": "gdb", - "preLaunchTask": "Build QRCode Payload Tests", - "setupCommands": [ - { - "description": "Enable pretty-printing for gdb", - "text": "-enable-pretty-printing", - "ignoreFailures": true - } - ] - }, - { - "name": "CHIP crypto Tests", - "type": "cppdbg", - "request": "launch", - "program": "${workspaceFolder}/build/default/src/crypto/tests/TestCrypto", - "args": [], - "stopAtEntry": false, - "cwd": "${workspaceFolder}", - "environment": [], - "externalConsole": false, - "MIMode": "gdb", - "preLaunchTask": "Build & Run Crypto Tests", - "setupCommands": [ - { - "description": "Enable pretty-printing for gdb", - "text": "-enable-pretty-printing", - "ignoreFailures": true - } - ] - }, - { - "name": "CHIP openSSL Tests", - "type": "cppdbg", - "request": "launch", - "program": "${workspaceFolder}/build/default/src/crypto/tests/TestCryptoPAL", - "args": [], - "stopAtEntry": false, - "cwd": "${workspaceFolder}", - "environment": [], - "externalConsole": false, - "MIMode": "gdb", - "preLaunchTask": "Build openSSL crypto Tests", - "setupCommands": [ - { - "description": "Enable pretty-printing for gdb", - "text": "-enable-pretty-printing", - "ignoreFailures": true - } - ] - }, - { - "name": "LightingApp (Linux)", - "type": "cppdbg", - "request": "launch", - "program": "${workspaceFolder}/out/lighting-app/chip-lighting-app", - "args": [], - "stopAtEntry": false, - "cwd": "${workspaceFolder}", - "environment": [], - "externalConsole": false, - "MIMode": "gdb", - "preLaunchTask": "Build Lighting App (Linux)", - "setupCommands": [ - { - "description": "Enable pretty-printing for gdb", - "text": "-enable-pretty-printing", - "ignoreFailures": true - } - ] - }, - { - "name": "LightingApp (Tizen) [remote]", - "type": "cppdbg", - "request": "launch", - "cwd": "${workspaceFolder}/out/tizen-arm-light", - "program": "${workspaceFolder}/out/tizen-arm-light/chip-lighting-app", - "miDebuggerPath": "${env:TIZEN_SDK_ROOT}/tools/arm-linux-gnueabi-gcc-9.2/bin/arm-linux-gnueabi-gdb", - "additionalSOLibSearchPath": "${env:TIZEN_ROOTFS}", - "preLaunchTask": "Launch LightingApp with gdbserver attached (Tizen)", - "miDebuggerServerAddress": "localhost:9999", - "linux": { - "MIMode": "gdb" - }, - "setupCommands": [ - { - "description": "Enable pretty-printing for gdb", - "text": "-enable-pretty-printing", - "ignoreFailures": true - }, - { - "text": "set solib-absolute-prefix ${env:TIZEN_ROOTFS}" - }, - { - "text": "set sysroot ${env:TIZEN_SDK_SYSROOT}" - }, - { - "text": "set debug-file-directory {env:TIZEN_SDK_SYSROOT}/usr/lib/debug" - }, - { - "text": "set solib-search-path ${workspaceFolder}/out/tizen-arm-light" - } - ] - }, - - { - "name": "Debug Mbed examples", - "type": "cortex-debug", - "request": "launch", - "cwd": "${workspaceRoot}/examples/${input:mbedApp}/mbed", - "executable": "./build-${input:mbedTarget}/${input:mbedDebugProfile}/chip-mbed-${input:mbedApp}-example.elf", - "armToolchainPath": "${env:PW_ENVIRONMENT_ROOT}/cipd/packages/arm/bin/", // Pigweed environment bootstraping required - "serverpath": "${env:OPENOCD_PATH}/bin/openocd", - "servertype": "openocd", - "searchDir": [ - "${workspaceRoot}/config/mbed/scripts", - "${env:OPENOCD_PATH}/scripts" - ], - "configFiles": ["${input:mbedTarget}.tcl"], - "overrideLaunchCommands": [ - "-enable-pretty-printing", - "monitor program {./build-${input:mbedTarget}/${input:mbedDebugProfile}/chip-mbed-${input:mbedApp}-example.hex}", - "monitor reset run", - "monitor sleep 200", - "monitor psoc6 reset_halt sysresetreq" - ], - "numberOfProcessors": 2, - "targetProcessor": 1, // Set to 0 for the CM0+, set to 1 for the CM4 - "overrideRestartCommands": [ - "monitor reset init", - "monitor reset run", - "monitor sleep 200", - "monitor psoc6 reset_halt sysresetreq" - ], - "runToMain": true, // if true, program will halt at main. Not used for a restart - "showDevDebugOutput": false // When set to true, displays output of GDB. - }, - - { - "name": "Debug Mbed examples [remote]", - "type": "cortex-debug", - "request": "launch", - "cwd": "${workspaceRoot}/examples/${input:mbedApp}/mbed", - "executable": "./build-${input:mbedTarget}/${input:mbedDebugProfile}/chip-mbed-${input:mbedApp}-example.elf", - "armToolchainPath": "${env:PW_ENVIRONMENT_ROOT}/cipd/packages/arm/bin/", // Pigweed environment bootstraping required - "servertype": "external", - "gdbTarget": "host.docker.internal:3334", //port 3333 for the CM0+, 3334 for the CM4 - "overrideLaunchCommands": [ - "-enable-pretty-printing", - "monitor reset halt", - "load ./build-${input:mbedTarget}/${input:mbedDebugProfile}/chip-mbed-${input:mbedApp}-example.hex", - "monitor reset run", - "monitor sleep 200", - "monitor psoc6 reset_halt sysresetreq" - ], - "overrideRestartCommands": [ - "monitor reset init", - "monitor reset run", - "monitor sleep 200", - "monitor psoc6 reset_halt sysresetreq" - ], - "runToMain": true, // if true, program will halt at main. Not used for a restart - "showDevDebugOutput": false // When set to true, displays output of GDB. - }, - - { - "name": "Flash Mbed examples", - "type": "cortex-debug", - "request": "launch", - "cwd": "${workspaceRoot}/examples/${input:mbedApp}/mbed", - "executable": "./build-${input:mbedTarget}/${input:mbedFlashProfile}/chip-mbed-${input:mbedApp}-example.elf", - "armToolchainPath": "${env:PW_ENVIRONMENT_ROOT}/cipd/packages/arm/bin/", // Pigweed environment bootstraping required - "serverpath": "${env:OPENOCD_PATH}/bin/openocd", - "servertype": "openocd", - "searchDir": [ - "${workspaceRoot}/config/mbed/scripts", - "${env:OPENOCD_PATH}/scripts" - ], - "configFiles": ["${input:mbedTarget}.tcl"], - "overrideLaunchCommands": [ - "monitor reset halt", - "monitor program {./build-${input:mbedTarget}/${input:mbedFlashProfile}/chip-mbed-${input:mbedApp}-example.hex}", - "monitor reset run", - "quit" - ], - "numberOfProcessors": 2, - "targetProcessor": 1, // Set to 0 for the CM0+, set to 1 for the CM4 - "showDevDebugOutput": false // When set to true, displays output of GDB. - }, - - { - "name": "Flash Mbed examples [remote]", - "type": "cortex-debug", - "request": "launch", - "cwd": "${workspaceRoot}/examples/${input:mbedApp}/mbed", - "executable": "./build-${input:mbedTarget}/${input:mbedFlashProfile}/chip-mbed-${input:mbedApp}-example.elf", - "armToolchainPath": "${env:PW_ENVIRONMENT_ROOT}/cipd/packages/arm/bin/", // Pigweed environment bootstraping required - "servertype": "external", - "gdbTarget": "host.docker.internal:3334", //port 3333 for the CM0+, 3334 for the CM4 - "overrideLaunchCommands": [ - "monitor reset halt", - "load ./build-${input:mbedTarget}/${input:mbedFlashProfile}/chip-mbed-${input:mbedApp}-example.hex", - "monitor reset run", - "quit" - ], - "showDevDebugOutput": false // When set to true, displays output of GDB. - }, - - { - "name": "Debug Mbed unit tests", - "type": "cortex-debug", - "request": "launch", - "cwd": "${workspaceRoot}/src/test_driver/mbed/unit_tests", - "executable": "./build-${input:mbedTarget}/${input:mbedDebugProfile}/chip-mbed-unit-tests.elf", - "armToolchainPath": "${env:PW_ENVIRONMENT_ROOT}/cipd/packages/arm/bin/", // Pigweed environment bootstraping required - "servertype": "openocd", - "serverpath": "${env:OPENOCD_PATH}/bin/openocd", - "searchDir": [ - "${workspaceRoot}/config/mbed/scripts", - "${env:OPENOCD_PATH}/scripts" - ], - "configFiles": ["${input:mbedTarget}.tcl"], - "overrideLaunchCommands": [ - "-enable-pretty-printing", - "monitor program {./build-${input:mbedTarget}/${input:mbedDebugProfile}/chip-mbed-unit-tests.hex}", - "monitor reset run", - "monitor sleep 200", - "monitor psoc6 reset_halt sysresetreq" - ], - "numberOfProcessors": 2, - "targetProcessor": 1, // Set to 0 for the CM0+, set to 1 for the CM4 - "overrideRestartCommands": [ - "monitor reset init", - "monitor reset run", - "monitor sleep 200", - "monitor psoc6 reset_halt sysresetreq" - ], - "runToMain": true, // if true, program will halt at main. Not used for a restart - "showDevDebugOutput": false // When set to true, displays output of GDB. - }, - - { - "name": "Debug Mbed unit tests [remote]", - "type": "cortex-debug", - "request": "launch", - "cwd": "${workspaceRoot}/src/test_driver/mbed/unit_tests", - "executable": "./build-${input:mbedTarget}/${input:mbedDebugProfile}/chip-mbed-unit-tests.elf", - "armToolchainPath": "${env:PW_ENVIRONMENT_ROOT}/cipd/packages/arm/bin/", // Pigweed environment bootstraping required - "servertype": "external", - "gdbTarget": "host.docker.internal:3334", //port 3333 for the CM0+, 3334 for the CM4 - "overrideLaunchCommands": [ - "-enable-pretty-printing", - "monitor reset halt", - "load ./build-${input:mbedTarget}/${input:mbedDebugProfile}/chip-mbed-unit-tests.hex", - "monitor reset run", - "monitor sleep 200", - "monitor psoc6 reset_halt sysresetreq" - ], - "overrideRestartCommands": [ - "monitor reset init", - "monitor reset run", - "monitor sleep 200", - "monitor psoc6 reset_halt sysresetreq" - ], - "runToMain": true, // if true, program will halt at main. Not used for a restart - "showDevDebugOutput": false // When set to true, displays output of GDB. - }, - - { - "name": "Flash Mbed unit tests", + "name": "Debug efr32 example app", "type": "cortex-debug", "request": "launch", - "cwd": "${workspaceRoot}/src/test_driver/mbed//unit_tests", - "executable": "./build-${input:mbedTarget}/${input:mbedFlashProfile}/chip-mbed-unit-tests.elf", - "armToolchainPath": "${env:PW_ENVIRONMENT_ROOT}/cipd/packages/arm/bin/", // Pigweed environment bootstraping required - "servertype": "openocd", - "serverpath": "${env:OPENOCD_PATH}/bin/openocd", - "searchDir": [ - "${workspaceRoot}/config/mbed/scripts", - "${env:OPENOCD_PATH/scripts}" - ], - "configFiles": ["${input:mbedTarget}.tcl"], - "overrideLaunchCommands": [ - "monitor reset halt", - "monitor program {./build-${input:mbedTarget}/${input:mbedFlashProfile}/chip-mbed-unit-tests.hex}", - "monitor reset run", - "quit" - ], - "numberOfProcessors": 2, - "targetProcessor": 1, // Set to 0 for the CM0+, set to 1 for the CM4 - "showDevDebugOutput": false // When set to true, displays output of GDB. - }, - - { - "name": "Flash Mbed unit tests [remote]", - "type": "cortex-debug", - "request": "launch", - "cwd": "${workspaceRoot}/src/test_driver/mbed/unit_tests", - "executable": "./build-${input:mbedTarget}/${input:mbedFlashProfile}/chip-mbed-unit-tests.elf", - "armToolchainPath": "${env:PW_ENVIRONMENT_ROOT}/cipd/packages/arm/bin/", // Pigweed environment bootstraping required - "servertype": "external", - "gdbTarget": "host.docker.internal:3334", //port 3333 for the CM0+, 3334 for the CM4 - "overrideLaunchCommands": [ - "monitor reset halt", - "load ./build-${input:mbedTarget}/${input:mbedFlashProfile}/chip-mbed-unit-tests.hex", - "monitor reset run", - "quit" - ], - "showDevDebugOutput": false // When set to true, displays output of GDB. - }, - - { - "name": "Debug Mbed bootloader", - "type": "cortex-debug", - "request": "launch", - "cwd": "${workspaceRoot}/examples/platform/mbed/bootloader", - "executable": "./build-${input:mbedTarget}/${input:mbedDebugProfile}/chip-mbed-bootloader.elf", - "armToolchainPath": "${env:PW_ENVIRONMENT_ROOT}/cipd/packages/arm/bin/", // Pigweed environment bootstraping required - "servertype": "openocd", - "serverpath": "${env:OPENOCD_PATH}/bin/openocd", - "searchDir": [ - "${workspaceRoot}/config/mbed/scripts", - "${env:OPENOCD_PATH}/scripts" - ], - "configFiles": ["${input:mbedTarget}.tcl"], - "overrideLaunchCommands": [ - "-enable-pretty-printing", - "monitor program {./build-${input:mbedTarget}/${input:mbedDebugProfile}/chip-mbed-bootloader.hex}", - "monitor reset run", - "monitor sleep 200", - "monitor psoc6 reset_halt sysresetreq" - ], - "numberOfProcessors": 2, - "targetProcessor": 1, // Set to 0 for the CM0+, set to 1 for the CM4 - "overrideRestartCommands": [ - "monitor reset init", - "monitor reset run", - "monitor sleep 200", - "monitor psoc6 reset_halt sysresetreq" - ], - "runToMain": true, // if true, program will halt at main. Not used for a restart - "showDevDebugOutput": false // When set to true, displays output of GDB. - }, - - { - "name": "Debug Mbed bootloader [remote]", - "type": "cortex-debug", - "request": "launch", - "cwd": "${workspaceRoot}/examples/platform/mbed/bootloader", - "executable": "./build-${input:mbedTarget}/${input:mbedDebugProfile}/chip-mbed-bootloader.elf", - "armToolchainPath": "${env:PW_ENVIRONMENT_ROOT}/cipd/packages/arm/bin/", // Pigweed environment bootstraping required - "servertype": "external", - "gdbTarget": "host.docker.internal:3334", //port 3333 for the CM0+, 3334 for the CM4 - "overrideLaunchCommands": [ - "-enable-pretty-printing", - "monitor reset halt", - "load ./build-${input:mbedTarget}/${input:mbedDebugProfile}/chip-mbed-bootloader.hex", - "monitor reset run", - "monitor sleep 200", - "monitor psoc6 reset_halt sysresetreq" - ], - "overrideRestartCommands": [ - "monitor reset init", - "monitor reset run", - "monitor sleep 200", - "monitor psoc6 reset_halt sysresetreq" - ], - "runToMain": true, // if true, program will halt at main. Not used for a restart - "showDevDebugOutput": false // When set to true, displays output of GDB. - }, - - { - "name": "OTA Requestor App (Linux)", - "type": "lldb", - "request": "launch", - "program": "${workspaceFolder}/out/ota-requestor/chip-ota-requestor-app", - "args": [ - "--discriminator", - "18", - "--secured-device-port", - "5560", - "--KVS", - "/tmp/chip_kvs_requestor" - ], - "cwd": "${workspaceFolder}" - }, - - { - "name": "OTA Provider App (Linux)", - "type": "lldb", - "request": "launch", - "program": "${workspaceFolder}/out/ota-provider/chip-ota-provider-app", - "args": [ - "--discriminator", - "22", - "--KVS", - "/tmp/chip_kvs_provider", - "--filepath", - "/tmp/ota-image.bin" - ], - "cwd": "${workspaceFolder}" - } + "cwd": "${workspaceRoot}", + "executable": "${workspaceFolder}/out/${input:efr32Examples}-app/${input:efr32Boards}/chip-efr32-${input:efr32Examples}-example.out", + "serverpath": "/Applications/SEGGER/JLink_V758e/JLinkGDBServerCLExe", + "servertype": "jlink", + "device": "${input:efr32MCU}", + "interface": "swd", + "serialNumber": "", //If you have more than one J-Link probe, add the serial number here. + "runToMain": true, + "rttConfig": { + "enabled": true, + "address": "auto", + "decoders": [ + { + "port": 0, // In RTT lingo, this is the buffer index (or channel) + "type": "console" + } + ] + } + } ], "inputs": [ { "type": "pickString", - "id": "mbedDebugProfile", - "description": "What mbed profile do you want to debug?", - "options": ["debug", "develop"], - "default": "debug" - }, - { - "type": "pickString", - "id": "mbedFlashProfile", - "description": "What mbed profile do you want to flash?", - "options": ["release", "debug", "develop"], - "default": "release" + "id": "efr32Examples", + "description": "What efr32 example do you want to build?", + "options": [ + "lock", + "lighting", + "window", + "light-switch", + ], + "default": "lighting" }, { "type": "pickString", - "id": "mbedApp", - "description": "What mbed application do you want to use?", + "id": "efr32Boards", + "description": "What efr32 example do you want to build?", "options": [ - "lock-app", - "lighting-app", - "pigweed-app", - "all-clusters-app", - "shell", - "ota-requestor-app" + "BRD4161A", + "BRD4164A", + "BRD4166A", + "BRD4170A", + "BRD4170A", + "BRD4304A", + "BRD4186A", + "BRD4187A" ], - "default": "lock-app" + "default": "BRD4161A" }, { "type": "pickString", - "id": "mbedTarget", - "description": "What mbed target do you want to use?", - "options": ["CY8CPROTO_062_4343W"], - "default": "CY8CPROTO_062_4343W" + "id": "efr32MCU", + "description": "What efr32 MCU do you want to build?", + "options": [ + "EFR32MG12P432F1024GL125", // BRD4164A + "EFR32MG12P433F1024GL125", // BRD4161A + "EFR32MG24A010F1536GM48", // BRD4186A/87A + "EFR32MG12P332F1024GL125" // BRD4166A + ], + "default": "EFR32MG12P432F1024GL125" } ] } diff --git a/.vscode/tasks.json b/.vscode/tasks.json index d6fedb4eb102bd..8150f03d236506 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -2,37 +2,26 @@ "version": "2.0.0", "tasks": [ { - "label": "Build specific example", + "label": "Build efr32 examples", "type": "shell", - "command": "scripts/run_in_build_env.sh", - "args": [ - "./scripts/build/build_examples.py --target ${input:exampleTarget} build" - ], - "group": "build", - "problemMatcher": { - "base": "$gcc" - } - }, - { - "label": "Build examples (glob)", - "type": "shell", - "command": "scripts/run_in_build_env.sh", + "windows": { + "command": "./scripts/examples/gn_efr32_example.ps1" + }, + "linux": { + "command": "./scripts/examples/gn_efr32_example.sh" + }, + "osx": { + "command": "./scripts/examples/gn_efr32_example.sh" + }, "args": [ - "./scripts/build/build_examples.py --target-glob \"${input:exampleGlob}\" build" + "examples/${input:efr32Examples}/efr32/", + "out/${input:efr32Examples}", + "${input:efr32Boards}", + "chip_build_libshell=false", + "enable_openthread_cli=true", + "show_qr_code=true" ], "group": "build", - "problemMatcher": { - "base": "$gcc" - } - }, - { - "label": "Main Build", - "type": "shell", - "command": "scripts/build/default.sh", - "group": { - "kind": "build", - "isDefault": true - }, "isBackground": false, "presentation": { "reveal": "always", @@ -40,13 +29,14 @@ }, "problemMatcher": { "base": "$gcc", - "fileLocation": ["relative", "${workspaceFolder}/out/default/"] + "fileLocation": ["relative", "${workspaceFolder}/out/"] } }, { - "label": "Build & Test (all)", + "label": "Windows setup", "type": "shell", - "command": "./gn_build.sh", + "command": "./scripts/windows_setup.ps1", + "args": ["--${input:windowsSetupOptions}"], "group": "build", "isBackground": false, "presentation": { @@ -55,412 +45,66 @@ }, "problemMatcher": { "base": "$gcc", - "fileLocation": ["relative", "${workspaceFolder}/out/debug/"] - } - }, - { - "label": "Update compilation database", - "type": "shell", - "command": "scripts/helpers/update_compile_commands.sh", - "group": "none", - "dependsOn": "Build & Test (all)", - "isBackground": false, - "presentation": { - "reveal": "always", - "panel": "shared" - }, - "problemMatcher": [] - }, - { - "label": "Run Unit and Functional Tests", - "type": "shell", - "command": "scripts/tests/all_tests.sh", - "group": "test", - "problemMatcher": { - "base": "$gcc", - "fileLocation": ["relative", "${workspaceFolder}/out/default/"] + "fileLocation": ["relative", "${workspaceFolder}/out/"] } }, { "label": "Bootstrap", "type": "shell", "command": "bash scripts/bootstrap.sh", - "group": "none", - "problemMatcher": ["$gcc"] - }, - { - "label": "Clean Output", - "type": "shell", - "command": "scripts/helpers/clean.sh", - "group": "none", - "problemMatcher": ["$gcc"] - }, - { - "label": "Clean Tree", - "type": "shell", - "command": "scripts/helpers/clean_tree.sh", - "group": "none", - "problemMatcher": ["$gcc"] - }, - { - "label": "Build Minimal MDNS Example", - "type": "shell", - "command": "scripts/examples/gn_build_example.sh examples/minimal-mdns out/minimal_mdns 'chip_build_tools=false is_debug=false optimize_for_size=true'", - "group": "build", - "problemMatcher": { - "base": "$gcc", - "fileLocation": [ - "relative", - "${workspaceFolder}/out/minimal_mdns/" - ] - } - }, - { - "label": "QEMU: run esp32-qemu unit tests", - "type": "shell", - "command": "scripts/tests/esp32_qemu_tests.sh /tmp/test_logs", - "problemMatcher": [] - }, - { - "label": "Build nRF Connect Pigweed Example (nRF52840)", - "type": "shell", - "command": "source scripts/activate.sh && scripts/examples/nrfconnect_example.sh pigweed-app nrf52840dk_nrf52840", - "group": "build", - "problemMatcher": { - "base": "$gcc", - "fileLocation": [ - "relative", - "${workspaceFolder}/examples/pigweed-app/nrfconnect/build/nrf52840dk_nrf52840" - ] - } - }, - { - "label": "Build i.MX Linux examples", - "type": "shell", - "command": "./scripts/examples/imxlinux_example.sh ${input:imxExampleTarget} out/aarch64", - "group": "build", - "problemMatcher": { - "base": "$gcc", - "fileLocation": ["relative", "${workspaceFolder}/out/aarch64/"] - } - }, - { - "label": "Run Mbed Application", - "type": "shell", - "command": "scripts/examples/mbed_example.sh", - "args": [ - "-c=${input:mbedCommand}", - "-a=${input:mbedApp}", - "-b=${input:mbedTarget}", - "-p=${input:mbedProfile}", - "-T=${input:mbedAppType}" - ], "group": "build", - "problemMatcher": { - "base": "$gcc", - "fileLocation": [ - "relative", - "${workspaceFolder}/examples/${input:mbedApp}/mbed/build" - ] - } - }, - { - "label": "Run Mbed Unit Tests", - "type": "shell", - "command": "scripts/tests/mbed/mbed_unit_tests.sh", - "args": [ - "-c=${input:mbedCommand}", - "-b=${input:mbedTarget}", - "-p=${input:mbedProfile}" - ], - "group": "build", - "problemMatcher": { - "base": "$gcc", - "fileLocation": [ - "relative", - "${workspaceFolder}/src/test_driver/mbed/unit_tests/build" - ] - } + "problemMatcher": ["$gcc"] }, { "label": "Flash EFR32 board", "type": "shell", "command": "python3", + "group": "build", "args": [ - "${workspaceFolder}/out/${input:exampleTarget}/chip-efr32-*.flash.py" + "${workspaceFolder}/out/${input:efr32Examples}/${input:efr32Boards}/chip-efr32-*.flash.py" ], "problemMatcher": { "base": "$gcc" } - }, - { - "label": "Build LightingApp (Tizen)", - "type": "shell", - "command": "scripts/run_in_build_env.sh", - "args": [ - "${workspaceFolder}/scripts/build/build_examples.py --target tizen-arm-light --enable-flashbundle build" - ], - "group": "build", - "problemMatcher": { - "base": "$gcc" - } - }, - { - "label": "Connect to device (Tizen)", - "type": "shell", - "command": "sdb", - "args": ["connect", "${input:tizenTargetDeviceAddress}"], - "problemMatcher": [], - "runOptions": { - "reevaluateOnRerun": false - } - }, - { - "label": "Install LightingApp (Tizen)", - "type": "shell", - "command": "sdb", - "args": [ - "-s", - "${input:tizenTargetDeviceAddressSdb}", - "install", - "${workspaceFolder}/out/tizen-arm-light/package/out/org.tizen.matter.example.lighting-1.0.0.tpk" - ], - "problemMatcher": [], - "runOptions": { - "reevaluateOnRerun": false - } - }, - { - "label": "Launch LightingApp with gdbserver attached (Tizen)", - "type": "shell", - "command": "bash", - "args": [ - "${workspaceFolder}/scripts/helpers/tizen_gdbserver_run.sh", - "--app-name", - "org.tizen.matter.example.lighting", - "--target", - "${input:tizenTargetDeviceAddressSdb}" - ], - "problemMatcher": [], - "runOptions": { - "reevaluateOnRerun": false - }, - "isBackground": false, - "presentation": { - "echo": true, - "reveal": "always", - "focus": false, - "panel": "dedicated", - "showReuseMessage": true, - "clear": true - } } ], "inputs": [ { "type": "pickString", - "id": "mbedCommand", - "description": "What do you want to do?", - "options": ["build", "flash", "build-flash"], - "default": "build" - }, - { - "type": "pickString", - "id": "mbedApp", - "description": "What mbed application do you want to use?", + "id": "efr32Examples", + "description": "What efr32 example do you want to build?", "options": [ "lock-app", "lighting-app", - "pigweed-app", - "all-clusters-app", - "shell", - "ota-requestor-app" + "window-app", + "light-switch-app", + "ota-requestor-app", + "shell" ], - "default": "lock-app" + "default": "lighting-app" }, { "type": "pickString", - "id": "mbedTarget", - "description": "What mbed target do you want to use?", - "options": ["CY8CPROTO_062_4343W"], - "default": "CY8CPROTO_062_4343W" + "id": "windowsSetupOptions", + "description": "What would you like to excecute?", + "options": ["setup", "cleanup"], + "default": "setup" }, { "type": "pickString", - "id": "mbedProfile", - "description": "What mbed profile do you want to use?", - "options": ["release", "develop", "debug"], - "default": "release" - }, - { - "type": "pickString", - "id": "mbedAppType", - "description": "What mbed application type do you want to use?", - "options": ["simple", "boot", "upgrade"], - "default": "simple" - }, - { - "type": "promptString", - "id": "exampleGlob", - "description": "What applications to build (e.g. '*m5stack*' or 'esp32-*')" - }, - { - "type": "pickString", - "id": "imxExampleTarget", - "description": "What example application type do you want to build?", + "id": "efr32Boards", + "description": "What efr32 example do you want to build?", "options": [ - "examples/chip-tool", - "examples/lighting-app/linux", - "examples/thermostat/linux" + "BRD4161A", + "BRD4164A", + "BRD4166A", + "BRD4170A", + "BRD4170A", + "BRD4304A", + "BRD4186A", + "BRD4187A" ], - "default": "examples/chip-tool" - }, - { - "type": "pickString", - "id": "exampleTarget", - "description": "What target to build", - "options": [ - "ameba-amebad-all-clusters", - "android-androidstudio-arm-chip-tool", - "android-androidstudio-arm64-chip-tool", - "android-androidstudio-x64-chip-tool", - "android-androidstudio-x86-chip-tool", - "android-arm-chip-tool", - "android-arm64-chip-test", - "android-arm64-chip-tool", - "android-arm64-chip-tvserver", - "android-x64-chip-tool", - "android-x86-chip-tool", - "bl602-light", - "bouffalolab-BL702-IoT-DVK-light", - "bouffalolab-BL702-IoT-DVK-light-rpc", - "bouffalolab-BL706-IoT-DVK-BL706C-22-light", - "bouffalolab-BL706-IoT-DVK-BL706C-22-light-rpc", - "bouffalolab-BL706-NIGHT-LIGHT", - "efr32-brd4161a-light", - "efr32-brd4163a-light", - "efr32-brd4164a-light", - "efr32-brd4166a-light", - "efr32-brd4170a-light", - "efr32-brd4186a-light", - "efr32-brd4187a-light", - "efr32-brd4304a-light", - "efr32-brd4161a-light-rpc", - "efr32-brd4163a-light-rpc", - "efr32-brd4164a-light-rpc", - "efr32-brd4166a-light-rpc", - "efr32-brd4170a-light-rpc", - "efr32-brd4186a-light-rpc", - "efr32-brd4187a-light-rpc", - "efr32-brd4304a-light-rpc", - "efr32-brd4161a-lock", - "efr32-brd4163a-lock", - "efr32-brd4164a-lock", - "efr32-brd4166a-lock", - "efr32-brd4170a-lock", - "efr32-brd4186a-lock", - "efr32-brd4187a-lock", - "efr32-brd4304a-lock", - "efr32-brd4161a-unit-test", - "efr32-brd4163a-unit-test", - "efr32-brd4164a-unit-test", - "efr32-brd4166a-unit-test", - "efr32-brd4170a-unit-test", - "efr32-brd4186a-unit-test", - "efr32-brd4187a-unit-test", - "efr32-brd4304a-unit-test", - "efr32-brd4161a-switch", - "efr32-brd4163a-switch", - "efr32-brd4164a-switch", - "efr32-brd4166a-switch", - "efr32-brd4170a-switch", - "efr32-brd4186a-switch", - "efr32-brd4187a-switch", - "efr32-brd4304a-switch", - "efr32-brd4161a-window-covering", - "efr32-brd4163a-window-covering", - "efr32-brd4164a-window-covering", - "efr32-brd4166a-window-covering", - "efr32-brd4170a-window-covering", - "efr32-brd4186a-window-covering", - "efr32-brd4187a-window-covering", - "efr32-brd4304a-window-covering", - "esp32-c3devkit-all-clusters", - "esp32-devkitc-all-clusters", - "esp32-devkitc-all-clusters-ipv6only", - "esp32-devkitc-bridge", - "esp32-devkitc-lock", - "esp32-devkitc-shell", - "esp32-devkitc-temperature-measurement", - "esp32-m5stack-all-clusters", - "esp32-m5stack-all-clusters-ipv6only", - "esp32-m5stack-all-clusters-rpc", - "esp32-m5stack-all-clusters-rpc-ipv6only", - "infineon-psoc6-all-clusters", - "infineon-psoc6-lock", - "infineon-psoc6-light", - "linux-arm64-all-clusters", - "linux-arm64-all-clusters-ipv6only", - "linux-arm64-chip-tool", - "linux-arm64-chip-tool-ipv6only", - "linux-arm64-rpc-console", - "linux-arm64-thermostat", - "linux-arm64-thermostat-ipv6only", - "linux-x64-all-clusters", - "linux-x64-all-clusters-ipv6only", - "linux-x64-chip-tool", - "linux-x64-chip-tool-ipv6only", - "linux-x64-rpc-console", - "linux-x64-thermostat", - "linux-x64-thermostat-ipv6only", - "mbed-CY8CPROTO_062_4343W-all-clusters-debug", - "mbed-CY8CPROTO_062_4343W-all-clusters-develop", - "mbed-CY8CPROTO_062_4343W-all-clusters-release", - "mbed-CY8CPROTO_062_4343W-light-debug", - "mbed-CY8CPROTO_062_4343W-light-develop", - "mbed-CY8CPROTO_062_4343W-light-release", - "mbed-CY8CPROTO_062_4343W-lock-debug", - "mbed-CY8CPROTO_062_4343W-lock-develop", - "mbed-CY8CPROTO_062_4343W-lock-release", - "mbed-CY8CPROTO_062_4343W-pigweed-debug", - "mbed-CY8CPROTO_062_4343W-pigweed-develop", - "mbed-CY8CPROTO_062_4343W-pigweed-release", - "mbed-CY8CPROTO_062_4343W-shell-debug", - "mbed-CY8CPROTO_062_4343W-shell-develop", - "mbed-CY8CPROTO_062_4343W-shell-release", - "nrf-nrf52840-light", - "nrf-nrf52840-light-rpc", - "nrf-nrf52840-lock", - "nrf-nrf52840-pump", - "nrf-nrf52840-pump-controller", - "nrf-nrf52840-shell", - "nrf-nrf5340-light", - "nrf-nrf5340-light-rpc", - "nrf-nrf5340-lock", - "nrf-nrf5340-pump", - "nrf-nrf5340-pump-controller", - "nrf-nrf5340-shell", - "qpg-qpg6100-lock", - "telink-tlsr9518adk80d-light", - "telink-tlsr9518adk80d-light-switch", - "telink-tlsr9518adk80d-ota-requestor", - "tizen-arm-light" - ] - }, - { - "type": "promptString", - "id": "tizenTargetDeviceAddress", - "description": "Enter the target device address and port in format
: