Use the flasher page
The flasher page at https://alixanneraud.github.io/nanoflash/flasher/ flashes a board from a
manifest that you give as an https: URL or as files on your computer. Nothing to install: open it
in Chrome, Edge or Opera. The site hosts no firmware and no manifest.
Flash from files on your computer
- Open the flasher page.
- Select the manifest (exactly one
.jsonfile) and every file that it names: the layout and the images. - Press Install, choose the port of the board, and wait for
done.
The page replaces each relative path of the manifest (layout, image[].path, parts[].path) by
the selected file with the same name (the last segment of the path). Two different paths with one
file name are refused with a message that names both. A manifest that names a URL needs the same
confirmation as a manifest URL.
Flash from a manifest URL
- Open
https://alixanneraud.github.io/nanoflash/flasher/?manifest=<URL>, or paste the URL in the manifest field. The URL must usehttps:. - Read the boards and the origins that the page shows. Tick the checkbox to confirm the source of the manifest. The label names the whole manifest URL and every other origin that the manifest loads files from.
- Press Install, choose the port of the board, and wait for
done.
Publish a manifest for the flasher page
To give your users a one-click link:
- Publish the manifest and its files on a server that allows cross-origin reads
(
Access-Control-Allow-Origin).raw.githubusercontent.comand GitHub Pages send it. The download URLs of GitHub releases do not. - Do not redirect to another origin: the page refuses it.
- Use paths relative to the manifest. The page resolves them against the manifest URL.
- Share
https://alixanneraud.github.io/nanoflash/flasher/?manifest=<URL of your manifest>.
Your users still confirm the origin of the manifest before anything is flashed. Browser support and security explains why.
Troubleshooting: the page refuses to start
The page refuses to run inside a frame. Open it in its own tab.
Troubleshooting: which version runs
The footer shows the version of web/package.json and the short hash of the commit that the site
was built from.
Work on the flasher page
To run or change the page itself, see Work on the flasher page.