Skip to content

Commit e144fbc

Browse files
[VSC-1572] add app bootloader partition table build flash cmds (#1436)
* add app bootloader partition table build flash cmds * add read partition from flash * add partition table and bootloader to device partition explorer * add translations * add idf.flashPartitionToUse configuration setting to flash only partition in build flash monitor cmd
1 parent 96f32e6 commit e144fbc

27 files changed

+516
-100
lines changed

docs_espressif/en/settings.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,8 @@ Extension Behaviour Settings
170170
- Enable updating source files in ``CMakeLists.txt`` (default ``true``)
171171
* - **idf.flashType**
172172
- Preferred flash method. DFU, UART or JTAG
173+
* - **idf.flashPartitionToUse**
174+
- Specifies the partition to flash during the build and flash process. (default ``all``)
173175
* - **idf.launchMonitorOnDebugSession**
174176
- Launch ESP-IDF Monitor along with ESP-IDF debug session
175177
* - **idf.notificationMode**

docs_espressif/zh_CN/settings.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,8 @@ ESP-IDF 相关设置
168168
- 启用在 ``CMakeLists.txt`` 文件中更新源文件的功能(该选项默认启用)
169169
* - **idf.flashType**
170170
- 首选烧录方法:DFU、UART 或 JTAG
171+
* - **idf.flashPartitionToUse**
172+
- 在构建和烧录过程中指定要烧录的分区。默认值为 ``all``
171173
* - **idf.launchMonitorOnDebugSession**
172174
- 在 ESP-IDF 调试会话中启动 ESP-IDF 监视器
173175
* - **idf.notificationMode**

l10n/bundle.l10n.es.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@
135135
"Error encountered while calling idf_size.py": "Error encontrado al llamar a idf_size.py",
136136
"Select the available serial port where your device is connected.": "Seleccione el puerto serie disponible donde está conectado su dispositivo.",
137137
"Port has been updated to ": "El puerto ha sido actualizado a ",
138+
"{buildFile} doesn't exist. Build first.": "{buildFile} no existe. Compile primero.",
138139
"SDK Configuration editor": "Editor de configuración del SDK",
139140
"Save": "Ahorrar",
140141
"Discard": "Desechar",

l10n/bundle.l10n.pt.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@
135135
"Error encountered while calling idf_size.py": "Erro encontrado ao chamar idf_size.py",
136136
"Select the available serial port where your device is connected.": "Selecione a porta serial disponível onde seu dispositivo está conectado.",
137137
"Port has been updated to ": "A porta foi atualizada para ",
138+
"{buildFile} doesn't exist. Build first.": "{buildFile} {buildFile} não existe. Crie primeiro.",
138139
"SDK Configuration editor": "Editor de configuração do SDK",
139140
"Save": "Salvar",
140141
"Discard": "Descartar",

l10n/bundle.l10n.ru.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@
135135
"Error encountered while calling idf_size.py": "Ошибка при вызове idf_size.py",
136136
"Select the available serial port where your device is connected.": "Выберите доступный последовательный порт, к которому подключено ваше устройство.",
137137
"Port has been updated to ": "Порт обновлен до ",
138+
"{buildFile} doesn't exist. Build first.": "{buildFile} не существует. Сначала выполните сборку.",
138139
"SDK Configuration editor": "Редактор конфигурации SDK",
139140
"Save": "Сохранить",
140141
"Discard": "Отменить",

l10n/bundle.l10n.zh-CN.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@
135135
"Error encountered while calling idf_size.py": "调用 idf_size.py 时出错",
136136
"Select the available serial port where your device is connected.": "为设备选择可用的串口。",
137137
"Port has been updated to ": "端口已更新为 ",
138+
"{buildFile} doesn't exist. Build first.": "{buildFile}不存在,请先进行生成。",
138139
"SDK Configuration editor": "SDK 配置编辑器",
139140
"Save": "保存",
140141
"Discard": "丢弃",

package.json

Lines changed: 48 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,11 @@
408408
"group": "navigation",
409409
"when": "view == idfPartitionExplorer"
410410
},
411+
{
412+
"command": "esp.webview.open.partition-table",
413+
"group": "navigation@2",
414+
"when": "view == idfPartitionExplorer"
415+
},
411416
{
412417
"command": "espIdf.apptrace.customize",
413418
"when": "view == idfAppTracer"
@@ -933,6 +938,17 @@
933938
"description": "%idf.flashType.description%",
934939
"scope": "resource"
935940
},
941+
"idf.flashPartitionToUse": {
942+
"type": "string",
943+
"enum": [
944+
"all",
945+
"app",
946+
"bootloader",
947+
"partition-table"
948+
],
949+
"default": "all",
950+
"description": "%param.flashPartitionToUse%"
951+
},
936952
"openocd.tcl.host": {
937953
"type": "string",
938954
"description": "%openocd.tcl.host.description%",
@@ -1303,6 +1319,36 @@
13031319
"title": "%espIdf.buildDevice.title%",
13041320
"category": "ESP-IDF"
13051321
},
1322+
{
1323+
"command": "espIdf.buildApp",
1324+
"title": "%espIdf.buildApp.title%",
1325+
"category": "ESP-IDF"
1326+
},
1327+
{
1328+
"command": "espIdf.flashAppUart",
1329+
"title": "%espIdf.flashAppUart.title%",
1330+
"category": "ESP-IDF"
1331+
},
1332+
{
1333+
"command": "espIdf.buildBootloader",
1334+
"title": "%espIdf.buildBootloader.title%",
1335+
"category": "ESP-IDF"
1336+
},
1337+
{
1338+
"command": "espIdf.flashBootloaderUart",
1339+
"title": "%espIdf.flashBootloaderUart.title%",
1340+
"category": "ESP-IDF"
1341+
},
1342+
{
1343+
"command": "espIdf.buildPartitionTable",
1344+
"title": "%espIdf.buildPartitionTable.title%",
1345+
"category": "ESP-IDF"
1346+
},
1347+
{
1348+
"command": "espIdf.flashPartitionTableUart",
1349+
"title": "%espIdf.flashPartitionTableUart.title%",
1350+
"category": "ESP-IDF"
1351+
},
13061352
{
13071353
"command": "espIdf.flashDevice",
13081354
"title": "%espIdf.flashDevice.title%",
@@ -1511,7 +1557,8 @@
15111557
},
15121558
{
15131559
"command": "esp.webview.open.partition-table",
1514-
"title": "%esp.webview.open.partition-table.title%"
1560+
"title": "%esp.webview.open.partition-table.title%",
1561+
"icon": "$(output)"
15151562
},
15161563
{
15171564
"command": "espIdf.jtag_flash",

package.nls.es.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,11 @@
1818
"espIdf.apptrace.archive.showReport.title": "Mostrar informe de rastreo",
1919
"espIdf.apptrace.customize.title": "Personalizar parámetros para rastreo de aplicaciones",
2020
"espIdf.apptrace.title": "Rastreo de aplicaciones",
21+
"espIdf.buildApp.title": "Aplicación de compilación solo",
22+
"espIdf.buildBootloader.title": "Construir cargador de arranque solamente",
2123
"espIdf.buildDevice.title": "Construir su proyecto",
2224
"espIdf.buildFlashMonitor.title": "Construir, Flashear y Arrancar un Monitor en su Dispositivo",
25+
"espIdf.buildPartitionTable.title": "Construir tabla de partición",
2326
"espIdf.clearDocsSearchResult.title": "Limpiar resultados de búsqueda de ESP-IDF",
2427
"espIdf.clearSavedIdfSetups.title": "Limpiar configuraciones de ESP-IDF guardadas",
2528
"espIdf.cmakeListsEditor.start.title": "Editor CMakeLists.txt",
@@ -36,11 +39,14 @@
3639
"espIdf.efuse.clearResults.title": "Limpiar resumen de efuse",
3740
"espIdf.eraseFlash.title": "Borrar memoria Flash del dispositivo",
3841
"espIdf.examples.title": "Mostrar proyectos de ejemplo",
42+
"espIdf.flashAppUart.title": "Solo aplicación Flash (UART)",
3943
"espIdf.flashAndEncryptDevice.title": "Encriptar y Flashear su Proyecto",
44+
"espIdf.flashBootloaderUart.title": "SOLO ROBAJE DE BOOTOLA FLASH (UART)",
4045
"espIdf.flashBinaryToPartition.title": "Flashear binario a partición...",
4146
"espIdf.flashDFU.title": "Flashear (DFU) su Proyecto",
4247
"espIdf.flashDevice.title": "Flashear su Proyecto",
4348
"espIdf.flashUart.title": "Flashear (UART) su Proyecto",
49+
"espIdf.flashPartitionTableUart.title": "Tabla de partición flash (UART)",
4450
"espIdf.fullClean.title": "Limpieza completa del proyecto",
4551
"espIdf.genCoverage.title": "Agregar cobertura de editor",
4652
"espIdf.getCoverageReport.title": "Obtener informe de cobertura HTML para proyecto",
@@ -125,6 +131,7 @@
125131
"param.espRainmakerPath": "Ruta para localizar el framework ESP-Rainmaker (RMAKER_PATH)",
126132
"param.exportVars": "Variables que se agregarán a las variables de entorno del sistema",
127133
"param.flashBaudRate": "Tasa de baudios de flasheo ESP-IDF",
134+
"param.flashPartitionToUse": "Especifica la partición a grabar durante el proceso de flasheo.",
128135
"param.gitPath.title": "Ruta del ejecutable de Git",
129136
"param.jtagFlashCommandExtraArgs.title": "Openocd JTAG Flash Argumentos adicionales",
130137
"param.launchMonitorOnDebugSession.title": "Iniciar Monitor IDF junto con la sesión de Adaptador de Depuración ESP-IDF",

package.nls.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,11 @@
1818
"espIdf.apptrace.archive.showReport.title": "Show Trace Report",
1919
"espIdf.apptrace.customize.title": "Customize Parameters for App Trace",
2020
"espIdf.apptrace.title": "App Trace",
21+
"espIdf.buildApp.title": "Build App Only",
22+
"espIdf.buildBootloader.title": "Build Bootloader Only",
2123
"espIdf.buildDevice.title": "Build Your Project",
2224
"espIdf.buildFlashMonitor.title": "Build, Flash and Start a Monitor on Your Device",
25+
"espIdf.buildPartitionTable.title": "Build Partition Table",
2326
"espIdf.clearDocsSearchResult.title": "Clear ESP-IDF Search Results",
2427
"espIdf.clearSavedIdfSetups.title": "Clear Saved ESP-IDF Setups",
2528
"espIdf.cmakeListsEditor.start.title": "CMakeLists.txt Editor",
@@ -36,10 +39,13 @@
3639
"espIdf.efuse.clearResults.title": "Clear eFuse Summary",
3740
"espIdf.eraseFlash.title": "Erase Flash Memory from Device",
3841
"espIdf.examples.title": "Show Example Projects",
42+
"espIdf.flashAppUart.title": "Flash App Only (UART)",
3943
"espIdf.flashAndEncryptDevice.title": "Encrypt and Flash Your Project",
4044
"espIdf.flashBinaryToPartition.title": "Flash Binary to Partition...",
45+
"espIdf.flashBootloaderUart.title": "Flash Bootloader Only (UART)",
4146
"espIdf.flashDFU.title": "Flash (DFU) Your Project",
4247
"espIdf.flashDevice.title": "Flash Your Project",
48+
"espIdf.flashPartitionTableUart.title": "Flash Partition Table (UART)",
4349
"espIdf.flashUart.title": "Flash (UART) Your Project",
4450
"espIdf.fullClean.title": "Full Clean Project",
4551
"espIdf.genCoverage.title": "Add Editor Coverage",
@@ -125,6 +131,7 @@
125131
"param.espRainmakerPath": "Path to locate ESP-Rainmaker framework (RMAKER_PATH)",
126132
"param.exportVars": "Variables to be added to system environment variables",
127133
"param.flashBaudRate": "ESP-IDF flash baud rate",
134+
"param.flashPartitionToUse": "Specifies the partition to flash during the build and flash process.",
128135
"param.gitPath.title": "Git executable path",
129136
"param.jtagFlashCommandExtraArgs.title": "OpenOCD JTAG flash extra arguments",
130137
"param.launchMonitorOnDebugSession.title": "Start IDF monitor along with ESP-IDF Debug Adapter session",

package.nls.pt.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,11 @@
1818
"espIdf.apptrace.archive.showReport.title": "Mostrar relatório de rastreamento",
1919
"espIdf.apptrace.customize.title": "Personalize parâmetros para rastreamento de aplicativos",
2020
"espIdf.apptrace.title": "Rastreamento de aplicativo",
21+
"espIdf.buildApp.title": "Crie apenas aplicativo",
22+
"espIdf.buildBootloader.title": "Construa apenas o carregador de inicialização",
2123
"espIdf.buildDevice.title": "Construa seu projeto",
2224
"espIdf.buildFlashMonitor.title": "Crie, atualize e inicie um monitor no seu dispositivo",
25+
"espIdf.buildPartitionTable.title": "Tabela de partição de construção",
2326
"espIdf.clearDocsSearchResult.title": "Limpar resultados da pesquisa ESP-IDF",
2427
"espIdf.clearSavedIdfSetups.title": "Limpar configurações ESP-IDF salvas",
2528
"espIdf.cmakeListsEditor.start.title": "Editor CMakeLists.txt",
@@ -36,10 +39,13 @@
3639
"espIdf.efuse.clearResults.title": "Limpar resumo do eFuse",
3740
"espIdf.eraseFlash.title": "Apagar memória flash do dispositivo",
3841
"espIdf.examples.title": "Mostrar exemplos de projetos",
42+
"espIdf.flashAppUart.title": "Apenas aplicativo flash (UART)",
3943
"espIdf.flashAndEncryptDevice.title": "Criptografe e atualize seu projeto",
4044
"espIdf.flashBinaryToPartition.title": "Flash binário para partição...",
45+
"espIdf.flashBootloaderUart.title": "Flash Bootloader apenas (UART)",
4146
"espIdf.flashDFU.title": "Flash (DFU) seu projeto",
4247
"espIdf.flashDevice.title": "Atualize seu projeto",
48+
"espIdf.flashPartitionTableUart.title": "Tabela de partição flash (UART)",
4349
"espIdf.flashUart.title": "Flash (UART) seu projeto",
4450
"espIdf.fullClean.title": "Projeto Totalmente Limpo",
4551
"espIdf.genCoverage.title": "Adicionar cobertura do editor",
@@ -125,6 +131,7 @@
125131
"param.espRainmakerPath": "Caminho para localizar a estrutura ESP-Rainmaker (RMAKER_PATH)",
126132
"param.exportVars": "Variáveis ​​a serem adicionadas às variáveis ​​de ambiente do sistema",
127133
"param.flashBaudRate": "Taxa de transmissão de flash ESP-IDF",
134+
"param.flashPartitionToUse": "Especifica a partição a ser gravada.",
128135
"param.gitPath.title": "Caminho executável do Git",
129136
"param.jtagFlashCommandExtraArgs.title": "Argumentos extras do Openocd JTAG Flash",
130137
"param.launchMonitorOnDebugSession.title": "Inicie o IDF Monitor junto com a sessão do adaptador de depuração ESP-IDF",

0 commit comments

Comments
 (0)