From 3b3db16c3f376ba9da4ac4a5465f3d3e5246ab3f Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 16 Nov 2025 21:30:30 +0000 Subject: [PATCH] Add VSCode tasks for building NCM example on RW612 - Build NCM for RW612: Configure and build net_lwip_webserver - Rebuild NCM for RW612: Clean and rebuild from scratch - Flash tasks for JLink and OpenOCD - Uses NCM (Network Control Model) for Windows 10+ compatibility --- .vscode/tasks.json | 172 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 172 insertions(+) create mode 100644 .vscode/tasks.json diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 000000000..9fcc3f434 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,172 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "Build NCM for RW612", + "type": "shell", + "command": "cmake", + "args": [ + "-G", + "Ninja", + "-DBOARD=frdm_rw612", + ".." + ], + "options": { + "cwd": "${workspaceFolder}/examples/device/net_lwip_webserver/build" + }, + "problemMatcher": [], + "group": { + "kind": "build", + "isDefault": false + }, + "dependsOn": ["Create build directory"], + "presentation": { + "echo": true, + "reveal": "always", + "focus": false, + "panel": "shared", + "showReuseMessage": true, + "clear": false + }, + "detail": "Configure and build net_lwip_webserver with NCM for RW612" + }, + { + "label": "Build NCM (Ninja)", + "type": "shell", + "command": "ninja", + "args": [], + "options": { + "cwd": "${workspaceFolder}/examples/device/net_lwip_webserver/build" + }, + "problemMatcher": [ + "$gcc" + ], + "group": { + "kind": "build", + "isDefault": true + }, + "dependsOn": ["Build NCM for RW612"], + "presentation": { + "echo": true, + "reveal": "always", + "focus": false, + "panel": "shared", + "showReuseMessage": true, + "clear": false + }, + "detail": "Run ninja to compile NCM example for RW612" + }, + { + "label": "Rebuild NCM for RW612", + "type": "shell", + "command": "echo", + "args": [ + "Rebuilding NCM for RW612..." + ], + "dependsOn": [ + "Clean NCM build", + "Build NCM (Ninja)" + ], + "dependsOrder": "sequence", + "problemMatcher": [], + "group": "build", + "presentation": { + "echo": true, + "reveal": "always", + "focus": false, + "panel": "shared", + "showReuseMessage": true, + "clear": false + }, + "detail": "Clean and rebuild net_lwip_webserver with NCM for RW612" + }, + { + "label": "Clean NCM build", + "type": "shell", + "command": "rm", + "args": [ + "-rf", + "build" + ], + "options": { + "cwd": "${workspaceFolder}/examples/device/net_lwip_webserver" + }, + "problemMatcher": [], + "presentation": { + "echo": true, + "reveal": "always", + "focus": false, + "panel": "shared", + "showReuseMessage": true, + "clear": false + }, + "detail": "Remove build directory for clean rebuild" + }, + { + "label": "Create build directory", + "type": "shell", + "command": "mkdir", + "args": [ + "-p", + "build" + ], + "options": { + "cwd": "${workspaceFolder}/examples/device/net_lwip_webserver" + }, + "problemMatcher": [], + "presentation": { + "echo": true, + "reveal": "silent", + "focus": false, + "panel": "shared", + "showReuseMessage": false, + "clear": false + }, + "detail": "Create build directory if it doesn't exist" + }, + { + "label": "Flash NCM to RW612 (JLink)", + "type": "shell", + "command": "ninja", + "args": [ + "net_lwip_webserver-jlink" + ], + "options": { + "cwd": "${workspaceFolder}/examples/device/net_lwip_webserver/build" + }, + "problemMatcher": [], + "group": "test", + "presentation": { + "echo": true, + "reveal": "always", + "focus": false, + "panel": "shared", + "showReuseMessage": true, + "clear": false + }, + "detail": "Flash NCM firmware to RW612 using JLink" + }, + { + "label": "Flash NCM to RW612 (OpenOCD)", + "type": "shell", + "command": "ninja", + "args": [ + "net_lwip_webserver-openocd" + ], + "options": { + "cwd": "${workspaceFolder}/examples/device/net_lwip_webserver/build" + }, + "problemMatcher": [], + "group": "test", + "presentation": { + "echo": true, + "reveal": "always", + "focus": false, + "panel": "shared", + "showReuseMessage": true, + "clear": false + }, + "detail": "Flash NCM firmware to RW612 using OpenOCD" + } + ] +}