@libs-scripts-mep/grav-fw-pvi 2.2.0 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/grav-fw-pvi.js +8 -1
- package/package.json +1 -1
package/grav-fw-pvi.js
CHANGED
|
@@ -2,7 +2,7 @@ class GravaFW {
|
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Realiza gravacao nos microcontroladores ST atraves do PVI, via STVP command line
|
|
5
|
-
* @param {string} dirFirm formato esperado: "I
|
|
5
|
+
* @param {string} dirFirm formato esperado: "I:\\\\Documentos\\\Softwares\\\STM8\\\STM8S003F3\\\INV-173\\\173v01\\\173v01_1.50_Com.stp"
|
|
6
6
|
* @param {string} dirOpt formato esperado: "I:\\\Documentos\\\Softwares\\\STM8\\\STM8S003F3\\\INV-173\\\173v01\\\173v01_1.50_Com.stp"
|
|
7
7
|
* @param {string} modelo_uC formato esperado: "STM8S003F3"
|
|
8
8
|
*/
|
|
@@ -226,6 +226,13 @@ class GravaFW {
|
|
|
226
226
|
}
|
|
227
227
|
|
|
228
228
|
|
|
229
|
+
/**
|
|
230
|
+
* Realiza gravacao nos microcontroladores Nuvoton atraves do PVI, via JLink command line
|
|
231
|
+
* @param {string} sessionStorageTag nome que sera utilizado para armazenar a porta COM encontrada
|
|
232
|
+
* @param {string} appPath formato esperado: "I:\\Documentos\\Softwares\\ESP32\\INV-161\\31L\\INV-161_INV-161_HW2-31-FW-v1.bat" ou "I:\\Documentos\\Softwares\\ESP32\\INV-161\\31L\\INV-161_INV-161_HW2-31-FW-v1.bin"
|
|
233
|
+
* @param {boolean} isBatFile true = firmware esta em .bat / false = firmware esta em .bin
|
|
234
|
+
* @param {number} betweenMsgTimeout timeout maximo para inatividade na comunicação com o ESP32
|
|
235
|
+
*/
|
|
229
236
|
static async ESP32(sessionStorageTag, appPath, isBatFile, betweenMsgTimeout) {
|
|
230
237
|
|
|
231
238
|
return new Promise((resolve) => {
|