|
192 | 192 | } |
193 | 193 | ] |
194 | 194 | }, |
195 | | - { |
196 | | - "name": "Debug Mbed examples", |
197 | | - "type": "cortex-debug", |
198 | | - "request": "launch", |
199 | | - "cwd": "${workspaceRoot}/examples/${input:mbedApp}/mbed", |
200 | | - "executable": "./build-${input:mbedTarget}/${input:mbedDebugProfile}/chip-mbed-${input:mbedApp}-example.elf", |
201 | | - "armToolchainPath": "${env:PW_ENVIRONMENT_ROOT}/cipd/packages/arm/bin/", // Pigweed environment bootstraping required |
202 | | - "serverpath": "${env:OPENOCD_PATH}/bin/openocd", |
203 | | - "servertype": "openocd", |
204 | | - "searchDir": [ |
205 | | - "${workspaceRoot}/config/mbed/scripts", |
206 | | - "${env:OPENOCD_PATH}/scripts" |
207 | | - ], |
208 | | - "configFiles": ["${input:mbedTarget}.tcl"], |
209 | | - "overrideLaunchCommands": [ |
210 | | - "-enable-pretty-printing", |
211 | | - "monitor program {./build-${input:mbedTarget}/${input:mbedDebugProfile}/chip-mbed-${input:mbedApp}-example.hex}", |
212 | | - "monitor reset run", |
213 | | - "monitor sleep 200", |
214 | | - "monitor psoc6 reset_halt sysresetreq" |
215 | | - ], |
216 | | - "numberOfProcessors": 2, |
217 | | - "targetProcessor": 1, // Set to 0 for the CM0+, set to 1 for the CM4 |
218 | | - "overrideRestartCommands": [ |
219 | | - "monitor reset init", |
220 | | - "monitor reset run", |
221 | | - "monitor sleep 200", |
222 | | - "monitor psoc6 reset_halt sysresetreq" |
223 | | - ], |
224 | | - "runToMain": true, // if true, program will halt at main. Not used for a restart |
225 | | - "showDevDebugOutput": false // When set to true, displays output of GDB. |
226 | | - }, |
227 | | - { |
228 | | - "name": "Debug Mbed examples [remote]", |
229 | | - "type": "cortex-debug", |
230 | | - "request": "launch", |
231 | | - "cwd": "${workspaceRoot}/examples/${input:mbedApp}/mbed", |
232 | | - "executable": "./build-${input:mbedTarget}/${input:mbedDebugProfile}/chip-mbed-${input:mbedApp}-example.elf", |
233 | | - "armToolchainPath": "${env:PW_ENVIRONMENT_ROOT}/cipd/packages/arm/bin/", // Pigweed environment bootstraping required |
234 | | - "servertype": "external", |
235 | | - "gdbTarget": "host.docker.internal:3334", //port 3333 for the CM0+, 3334 for the CM4 |
236 | | - "overrideLaunchCommands": [ |
237 | | - "-enable-pretty-printing", |
238 | | - "monitor reset halt", |
239 | | - "load ./build-${input:mbedTarget}/${input:mbedDebugProfile}/chip-mbed-${input:mbedApp}-example.hex", |
240 | | - "monitor reset run", |
241 | | - "monitor sleep 200", |
242 | | - "monitor psoc6 reset_halt sysresetreq" |
243 | | - ], |
244 | | - "overrideRestartCommands": [ |
245 | | - "monitor reset init", |
246 | | - "monitor reset run", |
247 | | - "monitor sleep 200", |
248 | | - "monitor psoc6 reset_halt sysresetreq" |
249 | | - ], |
250 | | - "runToMain": true, // if true, program will halt at main. Not used for a restart |
251 | | - "showDevDebugOutput": false // When set to true, displays output of GDB. |
252 | | - }, |
253 | | - { |
254 | | - "name": "Flash Mbed examples", |
255 | | - "type": "cortex-debug", |
256 | | - "request": "launch", |
257 | | - "cwd": "${workspaceRoot}/examples/${input:mbedApp}/mbed", |
258 | | - "executable": "./build-${input:mbedTarget}/${input:mbedFlashProfile}/chip-mbed-${input:mbedApp}-example.elf", |
259 | | - "armToolchainPath": "${env:PW_ENVIRONMENT_ROOT}/cipd/packages/arm/bin/", // Pigweed environment bootstraping required |
260 | | - "serverpath": "${env:OPENOCD_PATH}/bin/openocd", |
261 | | - "servertype": "openocd", |
262 | | - "searchDir": [ |
263 | | - "${workspaceRoot}/config/mbed/scripts", |
264 | | - "${env:OPENOCD_PATH}/scripts" |
265 | | - ], |
266 | | - "configFiles": ["${input:mbedTarget}.tcl"], |
267 | | - "overrideLaunchCommands": [ |
268 | | - "monitor reset halt", |
269 | | - "monitor program {./build-${input:mbedTarget}/${input:mbedFlashProfile}/chip-mbed-${input:mbedApp}-example.hex}", |
270 | | - "monitor reset run", |
271 | | - "quit" |
272 | | - ], |
273 | | - "numberOfProcessors": 2, |
274 | | - "targetProcessor": 1, // Set to 0 for the CM0+, set to 1 for the CM4 |
275 | | - "showDevDebugOutput": false // When set to true, displays output of GDB. |
276 | | - }, |
277 | | - { |
278 | | - "name": "Flash Mbed examples [remote]", |
279 | | - "type": "cortex-debug", |
280 | | - "request": "launch", |
281 | | - "cwd": "${workspaceRoot}/examples/${input:mbedApp}/mbed", |
282 | | - "executable": "./build-${input:mbedTarget}/${input:mbedFlashProfile}/chip-mbed-${input:mbedApp}-example.elf", |
283 | | - "armToolchainPath": "${env:PW_ENVIRONMENT_ROOT}/cipd/packages/arm/bin/", // Pigweed environment bootstraping required |
284 | | - "servertype": "external", |
285 | | - "gdbTarget": "host.docker.internal:3334", //port 3333 for the CM0+, 3334 for the CM4 |
286 | | - "overrideLaunchCommands": [ |
287 | | - "monitor reset halt", |
288 | | - "load ./build-${input:mbedTarget}/${input:mbedFlashProfile}/chip-mbed-${input:mbedApp}-example.hex", |
289 | | - "monitor reset run", |
290 | | - "quit" |
291 | | - ], |
292 | | - "showDevDebugOutput": false // When set to true, displays output of GDB. |
293 | | - }, |
294 | | - { |
295 | | - "name": "Debug Mbed unit tests", |
296 | | - "type": "cortex-debug", |
297 | | - "request": "launch", |
298 | | - "cwd": "${workspaceRoot}/src/test_driver/mbed/unit_tests", |
299 | | - "executable": "./build-${input:mbedTarget}/${input:mbedDebugProfile}/chip-mbed-unit-tests.elf", |
300 | | - "armToolchainPath": "${env:PW_ENVIRONMENT_ROOT}/cipd/packages/arm/bin/", // Pigweed environment bootstraping required |
301 | | - "servertype": "openocd", |
302 | | - "serverpath": "${env:OPENOCD_PATH}/bin/openocd", |
303 | | - "searchDir": [ |
304 | | - "${workspaceRoot}/config/mbed/scripts", |
305 | | - "${env:OPENOCD_PATH}/scripts" |
306 | | - ], |
307 | | - "configFiles": ["${input:mbedTarget}.tcl"], |
308 | | - "overrideLaunchCommands": [ |
309 | | - "-enable-pretty-printing", |
310 | | - "monitor program {./build-${input:mbedTarget}/${input:mbedDebugProfile}/chip-mbed-unit-tests.hex}", |
311 | | - "monitor reset run", |
312 | | - "monitor sleep 200", |
313 | | - "monitor psoc6 reset_halt sysresetreq" |
314 | | - ], |
315 | | - "numberOfProcessors": 2, |
316 | | - "targetProcessor": 1, // Set to 0 for the CM0+, set to 1 for the CM4 |
317 | | - "overrideRestartCommands": [ |
318 | | - "monitor reset init", |
319 | | - "monitor reset run", |
320 | | - "monitor sleep 200", |
321 | | - "monitor psoc6 reset_halt sysresetreq" |
322 | | - ], |
323 | | - "runToMain": true, // if true, program will halt at main. Not used for a restart |
324 | | - "showDevDebugOutput": false // When set to true, displays output of GDB. |
325 | | - }, |
326 | | - { |
327 | | - "name": "Debug Mbed unit tests [remote]", |
328 | | - "type": "cortex-debug", |
329 | | - "request": "launch", |
330 | | - "cwd": "${workspaceRoot}/src/test_driver/mbed/unit_tests", |
331 | | - "executable": "./build-${input:mbedTarget}/${input:mbedDebugProfile}/chip-mbed-unit-tests.elf", |
332 | | - "armToolchainPath": "${env:PW_ENVIRONMENT_ROOT}/cipd/packages/arm/bin/", // Pigweed environment bootstraping required |
333 | | - "servertype": "external", |
334 | | - "gdbTarget": "host.docker.internal:3334", //port 3333 for the CM0+, 3334 for the CM4 |
335 | | - "overrideLaunchCommands": [ |
336 | | - "-enable-pretty-printing", |
337 | | - "monitor reset halt", |
338 | | - "load ./build-${input:mbedTarget}/${input:mbedDebugProfile}/chip-mbed-unit-tests.hex", |
339 | | - "monitor reset run", |
340 | | - "monitor sleep 200", |
341 | | - "monitor psoc6 reset_halt sysresetreq" |
342 | | - ], |
343 | | - "overrideRestartCommands": [ |
344 | | - "monitor reset init", |
345 | | - "monitor reset run", |
346 | | - "monitor sleep 200", |
347 | | - "monitor psoc6 reset_halt sysresetreq" |
348 | | - ], |
349 | | - "runToMain": true, // if true, program will halt at main. Not used for a restart |
350 | | - "showDevDebugOutput": false // When set to true, displays output of GDB. |
351 | | - }, |
352 | | - { |
353 | | - "name": "Flash Mbed unit tests", |
354 | | - "type": "cortex-debug", |
355 | | - "request": "launch", |
356 | | - "cwd": "${workspaceRoot}/src/test_driver/mbed//unit_tests", |
357 | | - "executable": "./build-${input:mbedTarget}/${input:mbedFlashProfile}/chip-mbed-unit-tests.elf", |
358 | | - "armToolchainPath": "${env:PW_ENVIRONMENT_ROOT}/cipd/packages/arm/bin/", // Pigweed environment bootstraping required |
359 | | - "servertype": "openocd", |
360 | | - "serverpath": "${env:OPENOCD_PATH}/bin/openocd", |
361 | | - "searchDir": [ |
362 | | - "${workspaceRoot}/config/mbed/scripts", |
363 | | - "${env:OPENOCD_PATH/scripts}" |
364 | | - ], |
365 | | - "configFiles": ["${input:mbedTarget}.tcl"], |
366 | | - "overrideLaunchCommands": [ |
367 | | - "monitor reset halt", |
368 | | - "monitor program {./build-${input:mbedTarget}/${input:mbedFlashProfile}/chip-mbed-unit-tests.hex}", |
369 | | - "monitor reset run", |
370 | | - "quit" |
371 | | - ], |
372 | | - "numberOfProcessors": 2, |
373 | | - "targetProcessor": 1, // Set to 0 for the CM0+, set to 1 for the CM4 |
374 | | - "showDevDebugOutput": false // When set to true, displays output of GDB. |
375 | | - }, |
376 | | - { |
377 | | - "name": "Flash Mbed unit tests [remote]", |
378 | | - "type": "cortex-debug", |
379 | | - "request": "launch", |
380 | | - "cwd": "${workspaceRoot}/src/test_driver/mbed/unit_tests", |
381 | | - "executable": "./build-${input:mbedTarget}/${input:mbedFlashProfile}/chip-mbed-unit-tests.elf", |
382 | | - "armToolchainPath": "${env:PW_ENVIRONMENT_ROOT}/cipd/packages/arm/bin/", // Pigweed environment bootstraping required |
383 | | - "servertype": "external", |
384 | | - "gdbTarget": "host.docker.internal:3334", //port 3333 for the CM0+, 3334 for the CM4 |
385 | | - "overrideLaunchCommands": [ |
386 | | - "monitor reset halt", |
387 | | - "load ./build-${input:mbedTarget}/${input:mbedFlashProfile}/chip-mbed-unit-tests.hex", |
388 | | - "monitor reset run", |
389 | | - "quit" |
390 | | - ], |
391 | | - "showDevDebugOutput": false // When set to true, displays output of GDB. |
392 | | - }, |
393 | | - { |
394 | | - "name": "Debug Mbed bootloader", |
395 | | - "type": "cortex-debug", |
396 | | - "request": "launch", |
397 | | - "cwd": "${workspaceRoot}/examples/platform/mbed/bootloader", |
398 | | - "executable": "./build-${input:mbedTarget}/${input:mbedDebugProfile}/chip-mbed-bootloader.elf", |
399 | | - "armToolchainPath": "${env:PW_ENVIRONMENT_ROOT}/cipd/packages/arm/bin/", // Pigweed environment bootstraping required |
400 | | - "servertype": "openocd", |
401 | | - "serverpath": "${env:OPENOCD_PATH}/bin/openocd", |
402 | | - "searchDir": [ |
403 | | - "${workspaceRoot}/config/mbed/scripts", |
404 | | - "${env:OPENOCD_PATH}/scripts" |
405 | | - ], |
406 | | - "configFiles": ["${input:mbedTarget}.tcl"], |
407 | | - "overrideLaunchCommands": [ |
408 | | - "-enable-pretty-printing", |
409 | | - "monitor program {./build-${input:mbedTarget}/${input:mbedDebugProfile}/chip-mbed-bootloader.hex}", |
410 | | - "monitor reset run", |
411 | | - "monitor sleep 200", |
412 | | - "monitor psoc6 reset_halt sysresetreq" |
413 | | - ], |
414 | | - "numberOfProcessors": 2, |
415 | | - "targetProcessor": 1, // Set to 0 for the CM0+, set to 1 for the CM4 |
416 | | - "overrideRestartCommands": [ |
417 | | - "monitor reset init", |
418 | | - "monitor reset run", |
419 | | - "monitor sleep 200", |
420 | | - "monitor psoc6 reset_halt sysresetreq" |
421 | | - ], |
422 | | - "runToMain": true, // if true, program will halt at main. Not used for a restart |
423 | | - "showDevDebugOutput": false // When set to true, displays output of GDB. |
424 | | - }, |
425 | | - { |
426 | | - "name": "Debug Mbed bootloader [remote]", |
427 | | - "type": "cortex-debug", |
428 | | - "request": "launch", |
429 | | - "cwd": "${workspaceRoot}/examples/platform/mbed/bootloader", |
430 | | - "executable": "./build-${input:mbedTarget}/${input:mbedDebugProfile}/chip-mbed-bootloader.elf", |
431 | | - "armToolchainPath": "${env:PW_ENVIRONMENT_ROOT}/cipd/packages/arm/bin/", // Pigweed environment bootstraping required |
432 | | - "servertype": "external", |
433 | | - "gdbTarget": "host.docker.internal:3334", //port 3333 for the CM0+, 3334 for the CM4 |
434 | | - "overrideLaunchCommands": [ |
435 | | - "-enable-pretty-printing", |
436 | | - "monitor reset halt", |
437 | | - "load ./build-${input:mbedTarget}/${input:mbedDebugProfile}/chip-mbed-bootloader.hex", |
438 | | - "monitor reset run", |
439 | | - "monitor sleep 200", |
440 | | - "monitor psoc6 reset_halt sysresetreq" |
441 | | - ], |
442 | | - "overrideRestartCommands": [ |
443 | | - "monitor reset init", |
444 | | - "monitor reset run", |
445 | | - "monitor sleep 200", |
446 | | - "monitor psoc6 reset_halt sysresetreq" |
447 | | - ], |
448 | | - "runToMain": true, // if true, program will halt at main. Not used for a restart |
449 | | - "showDevDebugOutput": false // When set to true, displays output of GDB. |
450 | | - }, |
451 | 195 | { |
452 | 196 | "name": "CHIP All Clusters App (Linux)", |
453 | 197 | "type": "lldb", |
|
572 | 316 | "command": "./out/${input:outPWFuzzTestLinux} --list_fuzz_tests | grep 'Fuzz test:' | awk -F ': ' '{print $2}'", |
573 | 317 | "description": "Select the specific FuzzTest to fuzz continuously" |
574 | 318 | } |
575 | | - }, |
576 | | - { |
577 | | - "type": "pickString", |
578 | | - "id": "mbedDebugProfile", |
579 | | - "description": "What mbed profile do you want to debug?", |
580 | | - "options": ["debug", "develop"], |
581 | | - "default": "debug" |
582 | | - }, |
583 | | - { |
584 | | - "type": "pickString", |
585 | | - "id": "mbedFlashProfile", |
586 | | - "description": "What mbed profile do you want to flash?", |
587 | | - "options": ["release", "debug", "develop"], |
588 | | - "default": "release" |
589 | | - }, |
590 | | - { |
591 | | - "type": "pickString", |
592 | | - "id": "mbedApp", |
593 | | - "description": "What mbed application do you want to use?", |
594 | | - "options": [ |
595 | | - "lock-app", |
596 | | - "lighting-app", |
597 | | - "pigweed-app", |
598 | | - "all-clusters-app", |
599 | | - "shell", |
600 | | - "ota-requestor-app" |
601 | | - ], |
602 | | - "default": "lock-app" |
603 | | - }, |
604 | | - { |
605 | | - "type": "pickString", |
606 | | - "id": "mbedTarget", |
607 | | - "description": "What mbed target do you want to use?", |
608 | | - "options": ["CY8CPROTO_062_4343W"], |
609 | | - "default": "CY8CPROTO_062_4343W" |
610 | 319 | } |
611 | 320 | ] |
612 | 321 | } |
0 commit comments