Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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

  1. Open the flasher page.
  2. Select the manifest (exactly one .json file) and every file that it names: the layout and the images.
  3. 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

  1. Open https://alixanneraud.github.io/nanoflash/flasher/?manifest=<URL>, or paste the URL in the manifest field. The URL must use https:.
  2. 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.
  3. 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:

  1. Publish the manifest and its files on a server that allows cross-origin reads (Access-Control-Allow-Origin). raw.githubusercontent.com and GitHub Pages send it. The download URLs of GitHub releases do not.
  2. Do not redirect to another origin: the page refuses it.
  3. Use paths relative to the manifest. The page resolves them against the manifest URL.
  4. 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.