|
| 1 | +{ |
| 2 | + "version": "2.0.0", |
| 3 | + "tasks": [ |
| 4 | + { |
| 5 | + "label": "Install nanoFramework tools", |
| 6 | + "type": "shell", |
| 7 | + "group": "none", |
| 8 | + "presentation": { |
| 9 | + "echo": true, |
| 10 | + "reveal": "always", |
| 11 | + "focus": false, |
| 12 | + "panel": "shared", |
| 13 | + "showReuseMessage": true, |
| 14 | + "clear": false |
| 15 | + }, |
| 16 | + "command": "install-scripts\\install-nf-tools.ps1 -TargetSeries ${input:targetSeries} -Path '${input:toolsPath}' " |
| 17 | + }, |
| 18 | + { |
| 19 | + "label": "Flash nanoCLR to ESP32 | ESP32-S2", |
| 20 | + "type": "shell", |
| 21 | + "command": "python ${env:IDF_PATH}/components/esptool_py/esptool/esptool.py --chip auto --port \"${input:comPort}\" --baud 1500000 --before \"default_reset\" --after \"hard_reset\" write_flash -z --flash_size detect 0x1000 ${workspaceFolder}/build/bootloader/bootloader.bin 0x10000 ${workspaceFolder}/build/nanoCLR.bin 0x8000 ${workspaceFolder}/build/partitions_${input:esp32Partitions}.bin", |
| 22 | + "presentation": { |
| 23 | + "reveal": "always", |
| 24 | + "panel": "shared" |
| 25 | + }, |
| 26 | + "problemMatcher": [] |
| 27 | + }, |
| 28 | + { |
| 29 | + "label": "Flash nanoCLR to ESP32-C3 | ESP32-C6 | ESP32-H2 | ESP32-S3", |
| 30 | + "type": "shell", |
| 31 | + "command": "python ${env:IDF_PATH}/components/esptool_py/esptool/esptool.py --chip auto --port \"${input:comPort}\" --baud 1500000 --before \"default_reset\" --after \"hard_reset\" write_flash -z --flash_size detect 0x0 ${workspaceFolder}/build/bootloader/bootloader.bin 0x10000 ${workspaceFolder}/build/nanoCLR.bin 0x8000 ${workspaceFolder}/build/partitions_${input:esp32Partitions}.bin", |
| 32 | + "presentation": { |
| 33 | + "reveal": "always", |
| 34 | + "panel": "shared" |
| 35 | + }, |
| 36 | + "problemMatcher": [] |
| 37 | + }, |
| 38 | + { |
| 39 | + "label": "Erase ESP32 flash", |
| 40 | + "type": "shell", |
| 41 | + "command": "python ${env:IDF_PATH}/components/esptool_py/esptool/esptool.py --chip auto --port \"${input:comPort}\" --baud 1500000 --before \"default_reset\" --after \"hard_reset\" erase_flash", |
| 42 | + "presentation": { |
| 43 | + "reveal": "always", |
| 44 | + "panel": "shared" |
| 45 | + }, |
| 46 | + "problemMatcher": [] |
| 47 | + }, |
| 48 | + { |
| 49 | + "label": "Decode ESP32 backtrace", |
| 50 | + "type": "shell", |
| 51 | + "command": "xtensa-${input:esp32series}-elf-addr2line -apsfCire \"${input:espBacktraceElfFile}\" \"${input:espBacktrace}\"", |
| 52 | + "presentation": { |
| 53 | + "reveal": "always", |
| 54 | + "panel": "shared" |
| 55 | + }, |
| 56 | + "problemMatcher": [] |
| 57 | + }, |
| 58 | + { |
| 59 | + "label": "Decode ESP32 (riscv32 series) backtrace", |
| 60 | + "type": "shell", |
| 61 | + "command": "riscv32-esp-elf-addr2line -apsfCire \"${input:espBacktraceElfFile}\" \"${input:espBacktrace}\"", |
| 62 | + "presentation": { |
| 63 | + "reveal": "always", |
| 64 | + "panel": "shared" |
| 65 | + }, |
| 66 | + "problemMatcher": [] |
| 67 | + }, |
| 68 | + { |
| 69 | + "label": "Flash MIMXRT1060", |
| 70 | + "type": "shell", |
| 71 | + "command": "C:/nxp/MCUXpressoIDE_10.2.1_795/ide/bin/crt_emu_cm_redlink.exe", |
| 72 | + "options": { |
| 73 | + "cwd": "${workspaceFolder}/Build" |
| 74 | + }, |
| 75 | + "args": [ |
| 76 | + "-pMIMXRT1062xxxxA", |
| 77 | + "--vendor=NXP", |
| 78 | + "--flash-dir=C:/nxp/MCUXpressoIDE_10.2.1_795/ide/bin/Flash", |
| 79 | + "--flash-driver=MIMXRT1060_SFDP_QSPI.cfx", |
| 80 | + "--flash-load=nanoBooter.elf", |
| 81 | + "--rst" |
| 82 | + ], |
| 83 | + "presentation": { |
| 84 | + "reveal": "always", |
| 85 | + "panel": "dedicated" |
| 86 | + }, |
| 87 | + "problemMatcher": [] |
| 88 | + }, |
| 89 | + { |
| 90 | + "label": "Erase flash Silabs GG11", |
| 91 | + "type": "shell", |
| 92 | + "command": "${env:JLINK_PATH}/Jlink.exe -device default -si swd -CommandFile ${workspaceRoot}/.jlink/erase_gg11.jlink", |
| 93 | + "windows": { |
| 94 | + "options": { |
| 95 | + "shell": { |
| 96 | + "executable": "cmd.exe", |
| 97 | + "args": [ |
| 98 | + "/c" |
| 99 | + ] |
| 100 | + } |
| 101 | + } |
| 102 | + }, |
| 103 | + "problemMatcher": [] |
| 104 | + }, |
| 105 | + { |
| 106 | + "label": "Flash Silabs GG11", |
| 107 | + "type": "shell", |
| 108 | + "command": "${env:JLINK_PATH}/Jlink.exe -device default -si swd -CommandFile ${workspaceRoot}/.jlink/flash_gg11.jlink", |
| 109 | + "windows": { |
| 110 | + "options": { |
| 111 | + "shell": { |
| 112 | + "executable": "cmd.exe", |
| 113 | + "args": [ |
| 114 | + "/c" |
| 115 | + ] |
| 116 | + }, |
| 117 | + "cwd": "${workspaceFolder}/Build" |
| 118 | + } |
| 119 | + }, |
| 120 | + "problemMatcher": [] |
| 121 | + } |
| 122 | + ], |
| 123 | + "inputs": [ |
| 124 | + { |
| 125 | + "id": "toolsPath", |
| 126 | + "type": "promptString", |
| 127 | + "default": "C:\nftools", |
| 128 | + "description": "Path where to install the tools." |
| 129 | + }, |
| 130 | + { |
| 131 | + "id": "targetSeries", |
| 132 | + "type": "pickString", |
| 133 | + "description": "Series of the target to install the tools for.", |
| 134 | + "options": [ |
| 135 | + "ESP32", |
| 136 | + "STM32", |
| 137 | + "NXP", |
| 138 | + "TI" |
| 139 | + ] |
| 140 | + }, |
| 141 | + { |
| 142 | + "id": "comPort", |
| 143 | + "type": "promptString", |
| 144 | + "default": "COM1", |
| 145 | + "description": "COM port of the ESP32 device." |
| 146 | + }, |
| 147 | + { |
| 148 | + "id": "esp32Partitions", |
| 149 | + "type": "pickString", |
| 150 | + "description": "Partition to flash to ESP32.", |
| 151 | + "default": "4mb", |
| 152 | + "options": [ |
| 153 | + "2mb", |
| 154 | + "4mb", |
| 155 | + "8mb", |
| 156 | + "16mb", |
| 157 | + "32mb" |
| 158 | + ] |
| 159 | + }, |
| 160 | + { |
| 161 | + "id": "esp32series", |
| 162 | + "type": "pickString", |
| 163 | + "description": "ESP32 series", |
| 164 | + "default": "esp32", |
| 165 | + "options": [ |
| 166 | + "esp32", |
| 167 | + "esp32s2", |
| 168 | + "esp32s3" |
| 169 | + ] |
| 170 | + }, |
| 171 | + { |
| 172 | + "id": "espBacktrace", |
| 173 | + "type": "promptString", |
| 174 | + "default": "", |
| 175 | + "description": "Backtrace information from 'Guru Meditation Error' output. *** JUST THE BACKTRACE line, NOT the whole output! ***" |
| 176 | + }, |
| 177 | + { |
| 178 | + "id": "espBacktraceElfFile", |
| 179 | + "type": "promptString", |
| 180 | + "default": "${workspaceFolder}/build/nanoCLR.elf", |
| 181 | + "description": "Path to ELF file. Default is the current build executable." |
| 182 | + } |
| 183 | + ] |
| 184 | +} |
0 commit comments