Skip to content

Releases

v0.1.2

Choose a tag to compare

@github-actions github-actions released this 01 Dec 11:47
cd7dd03

Fixed

  • (touch) wait for the bootloader when the sketch leaves at 1200 baud (#12)

nanoflash-cli v0.1.2

Choose a tag to compare

@github-actions github-actions released this 01 Dec 11:47
cd7dd03

Miscellaneous

  • updated the following local packages: nanoflash

v0.1.1

Choose a tag to compare

@github-actions github-actions released this 30 Nov 15:29
3e458e4

Documentation

  • install the command from crates.io
  • build the documentation of every feature on docs.rs
  • the npm package is published, describe the staged publication

v0.1.0

Choose a tag to compare

@github-actions github-actions released this 30 Nov 11:47

Added

  • add the layout model and its TOML format
  • resolve layouts and check alignment, overlap and size
  • report the headroom of every partition
  • write Espressif partition tables
  • write MBR partition tables
  • generate linker regions and constants for build scripts
  • make Size, ImageSize, Report and ParseError ready for a WebAssembly layer
  • add the serial transport traits and transcript replay and recording
  • add the native serial transport over serialport
  • add the board manifest and read esp-web-tools manifests
  • encode the Espressif ROM loader protocol and its chip table
  • connect to the Espressif ROM loader and detect the chip
  • erase, write compressed, verify and reset Espressif chips
  • select the board and prepare the images a manifest flashes
  • flash and detect boards through one orchestration for every backend
  • add flash, detect, image build and layout check --manifest to the command line
  • say what was being done when the serial port fails
  • run the Espressif backend in the browser over Web Serial
  • read text, counted wildcards and failed opens in transcripts
  • let backends protect the flash below the application and name their checksum
  • encode SAM-BA commands, Arduino's extensions and the CRC-16 check
  • reset Arduino boards into their SAM-BA bootloader and detect the chip
  • erase, write, verify and reset through Arduino's SAM-BA bootloaders
  • flash and detect Arduino boards over SAM-BA
  • build the SAM-BA backend into its own WebAssembly module
  • (flash) report the SAMD21 erase to the end of flash as a warning
  • read Intel HEX images for every protocol
  • name the AVR protocols and protect the bootloader at the top of the flash
  • encode the STK500v1, STK500v2 and AVR109 commands and the AVR chip table
  • reset Arduino AVR boards into their bootloader and detect the chip
  • write, read back, erase and reset AVR boards page by page
  • flash and detect Arduino AVR boards
  • add AVR to the command line, and the Uno, Nano, Mega 2560 and Leonardo board files
  • build the AVR backend into its own WebAssembly module
  • read growing partition sizes and a detected flash size from layout files
  • resolve layouts with growing partitions for any flash size
  • report the minimum and the growth of every partition
  • give growing partitions a minimum size in constants and linker regions
  • resolve the layout again for the flash the chip reports
  • preview a layout for a flash size from the command line
  • read the loadable segments of ELF images
  • flash ELF images on every protocol with flat segments
  • build Espressif application images from ELF files through the image source
  • turn Espressif ELF files into application images with espflash
  • add nanoflash monitor
  • read the board of a Cargo package from its metadata
  • generate the memory.x of a firmware from the board of its package
  • add nanoflash run, a Cargo runner that flashes then monitors
  • take the board from the Cargo package when no --board is given
  • add cargo nanoflash
  • decode defmt frames in the monitor

Changed

  • name the writer in every table error
  • parse arguments with getargs-derive
  • write MBR partition tables with mbrman
  • share the 1200-baud touch between backends
  • share the role name and read grow as a 64-bit integer
  • use let chains, is_multiple_of and as_chunks
  • mark Generated as non-exhaustive
  • write the mapping of an ELF reader failure once
  • name the span bound and the address field for Intel HEX and ELF images

Documentation

  • add the licences, the readme and the simplified crate layout
  • describe layout checks, the layout file and the build script in the README
  • describe flashing, the board manifest and the new modules
  • describe the browser package in the README and AGENTS.md
  • document the SAM-BA backend and what its erases take
  • describe the AVR backend, its bootloaders and their licences
  • say bootloaders are built for the flash size, document the report fields of detect layouts
  • correct the bootloader size and name the temporary directory per system
  • name the HAL memory.x files and fix the old INCLUDE way
  • describe the refusals, the path fallback and the options of run
  • add a Nano 33 BLE example built and flashed with cargo run
  • describe the link-time check of the generated memory.x
  • state that memory needs every binary of the package to link memory.x
  • install the command from the repository until the first registry release
  • correct counts, feature rows, the build example and the command synopsis
  • describe how to install the command from GitHub Releases
  • give the Windows and Intel macOS steps and state the missing release once
  • move the design and the prior art into explanation pages
  • rewrite the README for new users
  • state that crawlers do not read robots.txt of the site
  • show a partition placed without an offset and fix a line wrap

Fixed

  • reject tables ESP-IDF refuses and name the true cause in table errors
  • name every overlap and the cause of a failed remaining size, print build errors like the command
  • avoid a let chain, which Rust 1.85 does not support
  • keep the port identity on Windows and decouple write timeouts
  • let the backend choose the reset of esp-web-tools builds without a serial type
  • bound each SYNC try to a small byte budget
  • build on Rust 1.85 and name the partition in table warnings
  • name the image in verification failures and report failed resets
  • reopen the device with the serial number it had
  • start a new SLIP decoder once the line is quiet after SYNC
  • check every image and erase entry before anything is erased
  • skip the verification in secure download mode instead of failing
  • scale the timeout of each compressed block with what it inflates to
  • mark Chip as non-exhaustive, since new Espressif chips will be added
  • detect the chip without changing the baud rate
  • cap custom reset waits at 10 s and skip a byte order mark in manifests
  • write the ESP32 uncompressed, its ROM programs 32 KiB after each compressed image
  • bound every Web Serial wait and check each web module by name
  • (web) take a new reader after a break, framing, parity or overrun error
  • (web) reopen a device among closed ports, new port objects first
  • retry an empty version line and keep the touch for vendor-only bootloader filters
  • (flash) name the erase entry that stops short of the end of flash, and let empty entries through
  • (samba) name the reset that ran when no bootloader appears, and refuse commands before connecting
  • (table) name a partition in the unreachable MBR encoding error
  • match the Arduino AVR identities to boards.txt
  • follow the Mega 2560 bootloader's sequential erase
  • stop Mega 2560 writes where its bootloader stops erasing
  • check the Mega 2560's erase order over the whole flash before erasing
  • let only a bootloader at the top of the flash shorten --erase-all
  • refuse Intel HEX records that cross 64 KiB and allocate fallibly
  • tell a misplaced Intel HEX image apart from an invalid one
  • wait 5 s for Caterina and tell how to catch it for a first grant
  • wait 7 s for Caterina natively and correct the baud-rate note
  • require ascending fixed offsets in layouts that detect the flash size
  • explain that a flash size needs a layout with size = detect
  • bound the section names read from ELF images
  • name at most 16 skipped ELF segments
  • warn about unwritten ELF segments in layout check and read only a prefix
  • gate ELF reading with two function bodies and test application image edge cases
  • report why a device that matches does not open
  • refuse a memory.x in the workspace root, where the linker looks first
  • check the names of the memory regions given to the build
  • remove the memory.x of an earlier build when memory is not called
  • read the board manifest of a package as JSON or TOML by its content
  • find the Cargo.toml from a relative start directory
  • fail the link when another memory.x shadows the generated one
  • sort the ELF segments in place so that the input sizes no allocation
  • report NotFound when the port of a failed open is gone

Miscellaneous

  • set up the workspace, tooling and continuous integration
  • check resolution on layouts valid by construction
  • read the generated tables back with gen_esp32part.py and sfdisk
  • test each table feature alone and build with the minimum supported Rust version
  • check the checksum and sequence of every compressed block
  • move to getargs-derive 0.1.1 and Rust 1.85 for the command line
  • flash arduino/BOSSA's emulated SAM-BA bootloader and compare with bossac
  • flash the Arduino STK500 bootloaders emulated by simavr
  • read the Nano layout from a fixture inside the library package
  • wrap the source notes and doc comments of the AVR backend and the Intel HEX decoder
  • write test files under the target directory instead of the system temporary directory
  • raise the minimum Rust version to 1.95 and update dependencies
  • check the 1200-baud touch of a reset with several boards
  • strengthen the tests of the Cargo package module
  • deploy the flasher page to GitHub Pages
  • name the boards and tools that people search for in the package metadata

nanoflash-cli v0.1.1

Choose a tag to compare

@github-actions github-actions released this 30 Nov 15:29
3e458e4

Documentation

  • install the command from crates.io
  • describe the publish workflow
  • the npm package is published, describe the staged publication

nanoflash-cli v0.1.0

Choose a tag to compare

Added

  • add layout check and layout write to the command line
  • add flash, detect, image build and layout check --manifest to the command line
  • say what was being done when the serial port fails
  • read text, counted wildcards and failed opens in transcripts
  • let backends protect the flash below the application and name their checksum
  • add SAM-BA to the command line and the Arduino Nano 33 BLE board files
  • (flash) report the SAMD21 erase to the end of flash as a warning
  • read Intel HEX images for every protocol
  • add AVR to the command line, and the Uno, Nano, Mega 2560 and Leonardo board files
  • build the AVR backend into its own WebAssembly module
  • take the arduino and wiring protocol names and check where a hex image starts on the command line
  • resolve layouts with growing partitions for any flash size
  • give growing partitions a minimum size in constants and linker regions
  • resolve the layout again for the flash the chip reports
  • preview a layout for a flash size from the command line
  • flash ELF images on every protocol with flat segments
  • turn Espressif ELF files into application images with espflash
  • monitor the serial output of a board and follow it when it re-enumerates
  • add nanoflash monitor
  • generate the memory.x of a firmware from the board of its package
  • add nanoflash run, a Cargo runner that flashes then monitors
  • take the board from the Cargo package when no --board is given
  • add cargo nanoflash
  • decode defmt frames among serial text
  • decode defmt frames in the monitor

Changed

  • parse arguments with getargs-derive
  • share the role name and read grow as a 64-bit integer
  • format the time of JSON lines with jiff
  • share the flash call, its output and the 1200-baud refusal
  • move the panic guard to its own module
  • clear the frame buffer when the defmt stream ends

Documentation

  • add the licences, the readme and the simplified crate layout
  • describe layout checks, the layout file and the build script in the README
  • describe flashing, the board manifest and the new modules
  • describe the browser package in the README and AGENTS.md
  • document the SAM-BA backend and what its erases take
  • describe the AVR backend, its bootloaders and their licences
  • say bootloaders are built for the flash size, document the report fields of detect layouts
  • correct the bootloader size and name the temporary directory per system
  • name the HAL memory.x files and fix the old INCLUDE way
  • describe the refusals, the path fallback and the options of run
  • add a Nano 33 BLE example built and flashed with cargo run
  • describe the link-time check of the generated memory.x
  • state that memory needs every binary of the package to link memory.x
  • install the command from the repository until the first registry release
  • say that the reader thread waits when its queue is full
  • correct counts, feature rows, the build example and the command synopsis
  • describe how to install the command from GitHub Releases
  • give the Windows and Intel macOS steps and state the missing release once
  • rewrite the README for new users
  • state that crawlers do not read robots.txt of the site
  • show a partition placed without an offset and fix a line wrap

Fixed

  • exit 1 with JSON on argument errors, survive a closed pipe, reject image directories
  • keep hardware inputs across checkouts and harden the QEMU script
  • reopen the device with the serial number it had
  • check every image and erase entry before anything is erased
  • skip the verification in secure download mode instead of failing
  • detect the chip without changing the baud rate
  • wait 7 s for Caterina natively and correct the baud-rate note
  • warn about unwritten ELF segments in layout check and read only a prefix
  • hold replayed input until an empty read and close the port that left
  • report why a device that matches does not open
  • never monitor an empty list of devices
  • end a last line of exactly 65536 bytes with a line feed
  • print an argument error of monitor as a JSON line
  • allow dead code only on the variant that the run command will use
  • run the terminal restore test only on Linux
  • refuse a memory.x in the workspace root, where the linker looks first
  • check the names of the memory regions given to the build
  • remove the memory.x of an earlier build when memory is not called
  • read the board manifest of a package as JSON or TOML by its content
  • follow the path of a port without USB identity after run
  • refuse several images for the firmware partition in run
  • say where the image goes when a board has no layout and no image
  • bound the frames and the stack of the defmt decoder
  • name the option that the command has in the missing board message
  • drop the input that waited for a device that left

Miscellaneous

  • set up the workspace, tooling and continuous integration
  • give the nanoflash dependency of the command a version
  • cover port selection and tighten the command line tests
  • flash QEMU in download mode and add hardware-in-the-loop hooks
  • move to getargs-derive 0.1.1 and Rust 1.85 for the command line
  • flash arduino/BOSSA's emulated SAM-BA bootloader and compare with bossac
  • flash the Arduino STK500 bootloaders emulated by simavr
  • add the Uno, Nano, Mega 2560 and Leonardo to the hardware in the loop
  • read the Nano layout from a fixture inside the library package
  • write test files under the target directory instead of the system temporary directory
  • raise the minimum Rust version to 1.95 and update dependencies
  • check an oversized binary image with a 1 MiB file
  • cover the panic guard of the application image with a real espflash panic
  • check the 1200-baud touch of a reset with several boards
  • check the terminal of run --raw on a pseudo-terminal
  • name the table of the defmt stack measurement
  • deploy the flasher page to GitHub Pages
  • name the boards and tools that people search for in the package metadata
  • add the readme to the metadata of nanoflash-cli