70 Commits

Author SHA1 Message Date
Earle F. Philhower, III
68de6d1e51 Use event driven STDERR/STDOUT dumping for tools (#127)
ESPOTA seems very talkative and can hang when uploading massive filesystems
because the stderr buffer fills up and blocks further writes.

Use an event driven methos to copy all command outputs instead of a
sequential iteration of out then err.

Fixes #124
1.6.3
2026-01-14 16:51:16 -08:00
Earle F. Philhower, III
c1558039e6 Update version 1.6.2 2026-01-04 10:38:45 -08:00
dankeboy36
a770425638 chore: pin IDE2-compatible Arduino API and clean up tooling (#123)
* chore: fix vulns; `npm audit fix`

Signed-off-by: dankeboy36 <dankeboy36@gmail.com>

* chore: remove mocha and its types

the extension does not contain and run any tests, therefore, it's unused

Signed-off-by: dankeboy36 <dankeboy36@gmail.com>

* chore: remove unused `glob` dev-deps

It comes with the default VS Code extension tests and is used to
collect `mocha` tests, but the extension does not have tests.

Signed-off-by: dankeboy36 <dankeboy36@gmail.com>

* fix: pin Arduino API compatible with vscode

move it to dev-dependency. it does not exist at
runtime

Signed-off-by: dankeboy36 <dankeboy36@gmail.com>

* fix: linter issues; eqeqeq and missing semi

Signed-off-by: dankeboy36 <dankeboy36@gmail.com>

---------

Signed-off-by: dankeboy36 <dankeboy36@gmail.com>
2026-01-04 10:36:53 -08:00
Earle F. Philhower, III
47273daabd Update version 1.6.1 2025-12-29 10:51:37 -08:00
Earle F. Philhower, III
7159b54a35 Manually escape spaces and backslashes for OpenOCD image path (#120)
More robust fix for #117

There doesn't seem to be a good existing library to handle
shell escaping.  Because we control the filename, as long as
the temp path only has spaces or backslashes (i..e username
with a space on Windows) OpenOCD should parse these
escape sequences correctly.
2025-12-29 10:50:22 -08:00
Earle F. Philhower, III
10896c1032 Handle backslashes in image file path on Windows (#118)
Fix path handling for OpenOCD on Windows.

Fixes #117
2025-12-29 10:11:27 -08:00
Earle F. Philhower, III
53c6c73bf4 Update version 1.6.0 2025-10-29 17:37:56 -07:00
Earle F. Philhower, III
c198e3e03e Add Build LittleFS command (#110)
Fixes #106

Adds a second command, "Build LittleFS image in sketch directory" which
does what it says.  Builds the FS to a BIN fils but does not upload it.
This lets users distribute the same FS image to many devices/users.
2025-10-29 17:37:15 -07:00
Earle F. Philhower, III
9e1f3ba5b8 Update runner to use ubuntu-latest 1.5.5 2025-10-23 17:13:07 -07:00
Earle F. Philhower, III
06e7aa6537 Update version 2025-10-23 09:44:17 -07:00
Earle F. Philhower, III
863c50c852 Hardcode ESP8266 runtime tool version identifier (#109)
Fixes #108

Hardcode the last released version string of the mklittlefs tool to
avoid issues when ESP32 and ESP8266 cores installed.
2025-10-23 09:43:44 -07:00
Earle F. Philhower, III
3c6a8ab841 Add permissions to GH action 2025-10-08 09:36:24 -07:00
Earle F. Philhower, III
fc5a3f589e Update version 1.5.4 2025-03-20 03:08:19 -07:00
Earle F. Philhower, III
11f20f11c4 Fix octothorpe comments in ESP32 partitions (#91)
The code took each partitions.csv line and cut off everything after
a "#"....and then threq out the cut line and parsed the original.
This means it would parse commented lines as if they just had a
name of "#spiffs", for example.

Actually use the trimmed line in calculations.

Fixes #90
2025-03-20 03:07:34 -07:00
MrMabulous
4346cbf643 Changed esp32 OTA upload command (#85)
* Changed esp32 OTA upload command to use "espota" instead of "espota.py" under
windows and macOS.

* Changed OTA upload under macOS to use python script.

* Updated comments in code to reflect previous changes.

---------

Co-authored-by: mrmabulous <leyla.buechel@mabulous.com>
2025-03-04 15:52:24 -08:00
Earle F. Philhower, III
4c74c4c345 ESP32 Arduino now ships binary esptool under Linux (#77)
Sometimes we'll have a PY, sometimes we'll have an ELF.  Use hueristics
to pick the right version at runtime.

Fixes #76
1.5.3
2025-01-01 10:39:29 -08:00
Earle F. Philhower, III
bf048cbfd3 Update version 1.5.2 2024-12-21 15:24:30 -08:00
Pepijn Felen
d6419c167d Enable ESP8266 OTA (#17, #70) (#74) 2024-12-21 15:23:45 -08:00
Earle F. Philhower, III
ed3bf53c74 Double-indirect the ESP32 partition file name (#71)
Fixes #69

The partition name menu selection's value only points to the proper line of
build.properties, and is not always the file name for ESP32 partitions.
Use the label to indirect to the board props to select the right file.
1.5.1
2024-12-20 08:54:54 -08:00
Earle F. Philhower, III
b8871e8e03 Update README.md 2024-11-22 13:36:16 -08:00
Earle F. Philhower, III
8b5f3e2f7e Allow OTA uploads (#66)
Fixes #17
1.5.0
2024-11-21 12:37:46 -08:00
Earle F. Philhower, III
ddceea12ce Support Picotool and OpenOCD uploads on the Picos (#65) 1.4.0 2024-11-21 11:23:19 -08:00
Earle F. Philhower, III
5edc749078 Calculate the fsEnd for ESP32 properly (#63) 1.3.0 2024-11-03 09:58:00 -08:00
Earle F. Philhower, III
71a20b8624 Redo ESP32 partitions.csv parsing (#62)
Support comments ('#'), -K and -M modifiers, don't skip 1st line,
and match on the "type" and note "name" fields.   Match "LittleFS"
type, too.

Fixes #61
2024-11-02 17:17:38 -07:00
Earle F. Philhower, III
24e2afdc60 Update version 1.2.1 2024-10-12 18:53:42 -07:00
Earle F. Philhower, III
3fa7cb359e Don't use picotool on RP2040 filesystems
The generated UF2 is not supported by the ROM, causing the chip to throw it
away silently.  Instead, use the original uf2conv upload+convert in 1 step
option.  Tested on an RP2350 and an RP2040.

Fixes #55
2024-10-12 18:45:46 -07:00
Earle F. Philhower, III
e1930d5ecc Update version 1.2.0 2024-09-13 13:24:28 -07:00
Earle F. Philhower, III
78f328ab63 Support RP2350 uploads automatically (#52)
The RP2350 needs special UF2 processing to support a binary flash.  Adjust
the command lines depending on the build revision for the Pico core to accomodate.

Fixes #51
2024-09-13 13:23:46 -07:00
Earle F. Philhower, III
bca9cc40ec Fix release instructions 2024-06-20 17:33:20 -07:00
Earle F. Philhower, III
4053e2e246 Update version 2024-06-20 17:25:55 -07:00
Earle F. Philhower, III
33c9261dc3 GH pull request somehow lost all the actual changes, redo 2024-06-20 17:24:37 -07:00
Earle F. Philhower, III
f451686df5 Update make-release.yml 2024-06-20 17:22:51 -07:00
Earle F. Philhower, III
5f65e7ceb3 Remove VSIX from repo, will be built by GH actions 2024-06-20 17:20:02 -07:00
Earle F. Philhower, III
3e48404be4 Automate build and release process w/GH Actions (#43)
Add a utility script and PACKAGE.md describing how to do a release.
    
The script will update the version number in the JSON, while a tag
push will now automate a build and release.  No reason to have the
VSIX as part of the repo anymore.
2024-06-20 17:19:27 -07:00
Earle F. Philhower, III
cc9910e4b6 Clean up action (#42) 2024-06-20 16:47:29 -07:00
Earle F. Philhower, III
2498c75502 Automate build process using GH Actions (#41) 2024-06-20 16:43:04 -07:00
Earle F. Philhower, III
98172afe78 Support setting upload speed for ESP32 (#39)
The ESP32 seems to have changed their internal menu names, so add in the
new one for the uploadSpeed(baud) setting.

Fixes #38
1.1.8
2024-06-08 08:05:06 -07:00
Earle F. Philhower, III
24d14ba76f Update to 1.1.7 version 1.1.7 2024-05-19 13:40:36 -07:00
schmidtsamuelw
cb692a46a1 Detect user-selected partitions file (and partitions.csv in sketch folder) (#34)
A board's `build.partitions` setting seems to only ever be the default
setting defined for the board. This change checks for a partitions.csv
file in the sketch folder, then refers to the partition scheme
selected in the IDE through `BoardDetails.configOptions` before falling
back to the default.
2024-05-19 13:39:33 -07:00
Earle F. Philhower, III
e02295ad55 Add more info to help debugging, color, path.sep (#32)
Use the OS-specified path separator instead of hardcoding '/" (which
should work but maybe doesn't in some strange circumstances under windows).

Add version number to output display, more verbosity as to directories and
files being accessed.  Colorize output with errors in red.
1.1.6
2024-05-15 17:26:05 -07:00
Earle F. Philhower, III
e45b07ed42 Update README.md 2024-04-29 11:02:10 -07:00
Earle F. Philhower, III
ff27d47d3e Use build.mcu, not FQBN archtecture, for ESP32 (#26)
Fix #25
1.1.5
2024-04-29 09:54:14 -07:00
Earle F. Philhower, III
da80f52703 Fix Mac ESP32 upload command (#24)
* Fix Mac ESP32 upload command

Fixes #23

* Minor stringification clean up
1.1.4
2024-04-27 09:43:59 -07:00
Earle F. Philhower, III
9fc058afc3 Rebuild VSIX with latest patch 2024-04-25 13:44:59 -07:00
per1234
3ea1886f03 Update unsupported target error to reflect addition of ESP32 support (#22)
Support for the ESP32 family of microcontrollers was recently added to the extension.

When a user attempts a filesystem upload while a board of an unsupported architecture is selected in Arduino IDE, the
extension displays a helpful error message which includes a list of supported targets. This message was not updated at
the time the ESP32 support was added.
2024-04-25 13:38:42 -07:00
Earle F. Philhower, III
a86975b4f9 Make Linux/Mac upload work for ESP32 (#20)
* Make Linux/Mac upload work for ESP32

Need to explicitly call the Python3 interpreter for the ESP32 uploads
under Linux and MacOS.

* ESP32 doesn't ship Python3, use system version
1.1.2
2024-04-23 15:09:00 -07:00
Earle F. Philhower, III
f0f514027b Use custom ESP32 board as defined in FQBN (#19)
Fixes #18
1.1.1
2024-04-23 14:25:37 -07:00
David Carson
8286a588af Add ESP32 support (#16)
* Add support for ESP32

Fix #15 Add support for ESP32 hardware.

* Update the vsix compiled extenstion

Update the compiled, bundled Arduino extension file to 1.1

* Update README.md

Clean up additions made to the Readme

* Update tsconfig.json, add allowSyntheticDefaultImports
1.1.0
2024-04-19 10:49:18 -07:00
Earle F. Philhower, III
ba902fc44d Merge pull request #7 from candideu/patch-1
Update README.md
2023-12-03 17:59:18 -08:00
Candide U
5b07e211df Update README.md -> Add installation path for Windows
Add installation path for Windows -> corrections based on https://github.com/earlephilhower/arduino-littlefs-upload/pull/7#pullrequestreview-1761411753
2023-12-03 20:51:34 -05:00