131 Commits

Author SHA1 Message Date
Johannes Löthberg
99d6d690b3
eFuse write support (#962)
* Extend eFuse generator with support for write address and eFuse error definitions

* efuse: Implement write support
2025-12-17 09:35:56 +00:00
Sergio Gasquez Arcos
fb4fd55b9f
build: Bump cargo-espflash (#985) 2025-12-15 14:17:24 +00:00
Sergio Gasquez Arcos
117be8448c
Prepare v4.3.0 release (#984)
* fix: Clippy lints

* build: Bump versions

* docs: Update changelog

* fix: Use expect unused_assignments

Co-authored-by: Scott Mabin <scott@mabez.dev>

---------

Co-authored-by: Scott Mabin <scott@mabez.dev>
2025-12-15 10:58:54 +00:00
Johannes Löthberg
f88844246d
Replace old BLOCK_SIZES with definitions of the blocks themselves (#971)
* Replace old BLOCK_SIZES with definitions of the blocks themselves

The actual block definitions only exist within Python classes so this
commit uses PyO3 to import the esptool.py eFuse block definitions and
generates arrays of the length and read address of each eFuse block.

We need the actual read address here rather than using the old offset
method because not all eFuse blocks are sequential.  (On ESP32 the block
0 read registers are followed by the block 0 write registers.)

* xtask: Move efuse generator behind a feature

This prevents Python being necessary to build the xtask binary for other
purposes.
2025-12-10 13:47:01 +00:00
Sergio Gasquez Arcos
d1e1fffd3f
bump: Update cargo-espflash (#959) 2025-10-13 12:37:19 +00:00
Sergio Gasquez Arcos
89f9c82884
Prepare 4.2.0 release (#958)
* build: Bump deps versions

* fix: Clippy warnings

* docs: Update changelog
2025-10-13 11:21:12 +00:00
Björn Quentin
40adcd84fc
A minimal stack-dump decoder (RV) (#955)
* A minimal stack-dump decoder (RV)

* CHANGELOG

* docs: Update CHANGELOG.md

---------

Co-authored-by: Sergio Gasquez Arcos <sergio.gasquez@gmail.com>
2025-10-01 10:05:56 +00:00
Sergio Gasquez Arcos
84cd43c80c
Prepare release 4.1.0 (#952)
* build: Bump espflash and cargo-espflash versions

* docs: Update changelog
2025-09-18 09:00:37 +00:00
Sergio Gasquez Arcos
6dc2b9a6a7
build: Update deps (#948) 2025-09-16 13:54:33 +00:00
Sergio Gasquez Arcos
23c7419585
feat: Update addr2line (#946) 2025-09-16 06:31:52 +00:00
Dániel Buga
1e346514ff
Force timeout stuck flushes (#944) 2025-09-15 10:54:25 +00:00
Sergio Gasquez Arcos
27264781bc
Add no_addresses monitor flag (#942)
* feat: Add `no_addresses`  monitor flag

* docs: Add changelog
2025-09-15 07:44:57 +00:00
Sergio Gasquez Arcos
f679e03a8e
feat: Prepare 4.0.1 release (#925) 2025-07-07 14:28:34 +00:00
Dániel Buga
531bb82ab4
Remove patch version from dependency specs (#924)
* Remove patch version from dependency specs

* cargo update

* Changelog

* Restore libc
2025-07-07 09:59:32 +00:00
Jesse Braham
12a177a612
Version 4.0.0 (#916) 2025-07-01 13:22:40 +00:00
Sergio Gasquez Arcos
d532c03eb8
Update deps and adapt code (#893)
* build: Update deps and adapt code

* docs: Update changelog

* feat: Review comments
2025-06-19 11:25:46 +00:00
Sergio Gasquez Arcos
2c56b23fdf
Pin addr2line@0.22 (#889)
* revert: Pin addr2line@0.22

* test: Add backtrace tests
2025-06-18 14:00:09 +00:00
Jesse Braham
04b7ebea5d
Implement new API for reading eFuse values (#847)
* Create the `xtask` package

* Implement and xtask subcommand to generate eFuse field definitions from YAML files

* Generate eFuse field definitions

* Update `target` module to provide new eFuse reading API

* All non-problematic chips working with new eFuse API

* ESP32 is now working

* ESP32-S2 is now (mostly) working

* Very necessary change :)

* Clean up the mess I made of the imports

* Address clippy lints

* Update `CHANGELOG.md`

* Perform fewer raw eFuse field reads for ESP32

* Address review comment regarding `xtask` package

* Verify that `xtask` package builds in CI

* Fix block offset calculation
2025-04-22 07:44:25 +00:00
Jesse Braham
370c70c544
Remove the dependency on cargo from the cargo-espflash package (#841) 2025-04-16 11:21:42 +00:00
Jesse Braham
5074e8bacc
Update esp-idf-part dependency (#844) 2025-04-16 10:55:16 +00:00
Jesse Braham
74bf802ceb
Conver stubs to TOML, remove serde_json dependency (#826) 2025-03-31 10:47:03 +00:00
Jesse Braham
eeef009aa6
Remove unused defmt-parser dependency (#822) 2025-03-28 10:42:34 +00:00
Jesse Braham
5541355a1c
Remove the dependency on xmas_elf (#821) 2025-03-28 10:29:47 +00:00
Jesse Braham
c6c0e9bad0
Remove the dependency on hex (#820) 2025-03-27 12:07:26 +00:00
Jesse Braham
dad60cf3ad
Remove unused dependencies, deduplicate some functions (#811)
* Remove unused dependencies from `cargo-espflash`

* Move common functions from binaries to `cli` module
2025-03-21 07:55:47 +00:00
Juraj Sadel
fa6b970e01
Implement new USB Serial JTAG reset strategy (#779)
* Add watchdog reset experiment

* changelog

* Add bitflags dependency and cleanup

* fix register values, ... again

* Add P4

* reviews

* move connection_is_usb_otg to Connection struct and rename it to is_using_usb_otg

* fix ci

* Use latest version of `bitflags`

* Move and improve the `RtcWdtReset` trait

* Introduce `UsbOtg` trait for targets

* Fix some warnings

* Cleanup

---------

Co-authored-by: Jesse Braham <jesse@beta7.io>
2025-03-12 12:53:55 +00:00
Jesse Braham
d8ab6ac5d1
Update cargo dependency in cargo-espflash (#800) 2025-03-05 08:35:40 +00:00
Jesse Braham
b5b2e044dd
Update addr2line and crossterm dependencies (#778) 2025-02-18 12:12:47 +00:00
Jesse Braham
4ee4b59862
Swap out the flasher stubs with the legacy C stubs (#763) 2025-02-12 10:53:05 +00:00
Jesse Braham
d4da01ecc2
Remove the dependency on parse_int in favour of from_str_radix (#756)
* Remove the dependency on `parse_int` in favour of `from_str_radix`

* Add a unit test for the `parse_u32` function
2025-02-11 10:09:32 +00:00
Jesse Braham
ad1cb9f03b
Remove the dependency on lazy_static in favour of buildt-in LazyLock (#755) 2025-02-10 12:32:31 +00:00
Jesse Braham
a105cb01b4
Remove the dependency on libudev and its corresponding feature (#742)
* No longer require `libudev`

* Update `CHANGELOG.md`
2025-02-06 09:33:18 +00:00
Jesse Braham
de2ecaf992
Begin next release cycle (#722) 2025-01-14 12:57:19 +00:00
Jesse Braham
3c5de2b996
Version 3.3.0 (#719)
* Version 3.3.0

* Suggest using `--locked` flag in installation instructions
2025-01-13 08:43:05 +00:00
Jesse Braham
95539cc4c4
Update serialport dependency (#694) 2024-10-25 07:33:53 +00:00
Jesse Braham
853d39b5cd
New releases (#687)
* Update dependencies to their latest versions

* Bump version numbers of `cargo-espflash` and `espflash`

* Update `CHANGELOG.md`
2024-10-18 09:08:31 +00:00
Sergio Gasquez Arcos
64099f0ad0
Update bytemuck dependency (#666)
* build: Update bytemuck

* build: Update cargo dependency

* docs: Update changelog
2024-09-25 11:36:53 +00:00
Scott Mabin
46b5b8d9ef
v3.1.1 release prep (#668) 2024-08-15 08:50:45 +00:00
Sergio Gasquez Arcos
2334907366
Downgrade crossterm and fix compilation (#659)
* build: Downgrade crossterm

* build: Update time

* docs: Update changelog
2024-08-02 15:56:42 +00:00
Sergio Gasquez Arcos
c034fe0e1b
Version 3.1.0 (#639)
* docs: Update changelog

* build: Bump espflash and cargo-espflash version

* build: Update dependencies

* build: Bump MSRV
2024-05-27 10:22:27 +02:00
Sergio Gasquez
c39d021d86 feat: Start new dev cycle 2024-03-13 14:37:43 +01:00
Sergio Gasquez Arcos
6796183b33
Prepare 3.0.0 release (#611)
* docs: Update changelog

* build: Bump dependencies, espflash and cargo-espflash

* style: Format toml files
2024-03-13 11:44:40 +00:00
Sergio Gasquez Arcos
c230d547db
Prepare 3.0.0-rc.2 (#606)
* build: Update deps

* build: Bump espflash and cargo-espflash version

* docs: Update changelog
2024-03-04 16:53:40 +01:00
Sergio Gasquez Arcos
aceb99ac40
Fix macOS installation (#602)
* build: Run cargo update

* ci: Avoid nodejs 16 warnings

* build: Update deps
2024-03-04 12:48:31 +01:00
Sergio Gasquez Arcos
f21829a2a7
Add initial HIL testing (#596)
* feat: Initial HIL test

* ci: Use esp-hal example instead of themplate

* ci: Expand the matrix to cover all targets

* feat: Update ESPFLASH_PORT

* feat: Check that it flashed properly

* feat: Add asserts to the board-info check

* ci: Enable other targets

* ci: Update flash test

* ci: Avoid building espflash on self-hosted-runner

* feat: Add non-interactive mode for monitoring

* ci: Add erase/read flash test

* ci: Add save-image/write-bintest

* chore: Code cleanup

* ci: Enable C2

* chore: Code cleanup

* ci: Update esp32c2 hosted runner name

* ci: Avoid building test apps

* docs: Update changelog
2024-02-23 15:02:23 +00:00
Sergio Gasquez Arcos
7fad99d43a
Prepare 3.0.0-rc.1 release (#586)
* feat: Bump dependencies, espflash and cargo-espflash

* build: Bump msrv

* chore: Update StubRequired code
2024-02-16 16:54:15 +01:00
Sergio Gasquez Arcos
0a5d5e6718
Remove support for Raspberry Pi's internal UART peripherals (#585)
* feat: Remove raspberry feature

* feat: Replace Interface types

* feat: Remove interface mod

* docs: Update changelog
2024-02-16 12:14:08 +01:00
Jesse Braham
0ae82dcaaf
Update dependencies and bump MSRV (#578)
* Update  dependencies to their latest versions

* Bump MSRV to 1.73.0

* Update `CHANGELOG.md`
2024-02-06 21:57:43 +00:00
Björn Quentin
cbdbcaecb3
Implement skip and verify (#538)
* Implement skip and verify

* CHANGELOG.md entry

* Dedicated error for "verify failed"
2023-12-28 15:36:29 +01:00
Björn Quentin
51239117ae
Add checksum-md5 command (#536)
* Add `checksum-md5` command

* fmt

* clippy

* CHANGELOG.md entry

* `checksum-md5` for cargo-espflash, add timeout
2023-12-28 10:27:15 +01:00