-
-
Notifications
You must be signed in to change notification settings - Fork 17
Enhance the documentation and rearrange README.md
#71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 3 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
8d6c6ff
streamline `README.md`
umbynos 3dc89d7
moved old `README.md` in the docs folder
umbynos a84406a
split `docs/README.md` in different markdown files
umbynos 015fa42
applied suggestions by @per1234 💚
umbynos 878c6b5
Update README.md
umbynos File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,124 +1,32 @@ | ||
# Firmware/Certificates updater for WINC and NINA Wifi module | ||
# arduino-fwuploader | ||
|
||
Use this tool to update the firmware and/or add SSL certificates for any WINC, NINA module. | ||
The Arduino Firmware Uploader is a tool made to update the firmware and/or add SSL certificates for any arduino board | ||
umbynos marked this conversation as resolved.
Show resolved
Hide resolved
|
||
equipped with WINC or NINA module. | ||
umbynos marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
## Install | ||
[![tests-badge]](https://github.com/Arduino/arduino-fwuploader/actions?workflow=test) | ||
umbynos marked this conversation as resolved.
Show resolved
Hide resolved
|
||
[![docs-badge]](https://github.com/Arduino/arduino-fwuploader/actions?workflow=publish-docs) | ||
umbynos marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
You can download the Firmware/Certificates updater here: | ||
## Docs | ||
|
||
https://github.com/arduino/arduino-fwuploader/releases/latest | ||
For guidance on installation and development, see the [User documentation] | ||
|
||
## Usage | ||
## Quickstart | ||
|
||
### Firmware Flashing | ||
|
||
Extract the zip file and, to update a mkr 1010, run: | ||
|
||
``` | ||
./arduino-fwuploader firmware flash -b arduino:samd:mkrwifi1010 -a /dev/ttyACM0 | ||
``` | ||
|
||
You just have to specify the fqbn (`-b` or `--fqbn`) of the board and the serial port (`-a` or `--address`) The firmware | ||
uploader will take care of fetching everything is required to perform the update process. If no module and version are | ||
specified **the latest version of the firmware** will be used. | ||
|
||
If you want to flash a specific version of a firmware you can use the `-m` or `--module` flag | ||
|
||
For example to flash a MKR1000 with 19.6.1 version of the firmware you can run something like: | ||
|
||
``` | ||
./arduino-fwuploader firmware flash -b arduino:samd:mkr1000 -a /dev/ttyACM0 -m WINC1500@19.6.1 | ||
``` | ||
|
||
There is also a retry mechanism bundled in the tool because the flashing process sometimes can be a bit unreliable. For | ||
example to update a Nano RP2040 Connect with the retry set to 2 you can use: | ||
|
||
``` | ||
./arduino-fwuploader firmware flash --fqbn arduino:mbed_nano:nanorp2040connect -a /dev/ttyACM0 --retries 2 | ||
``` | ||
|
||
It's possible also to list the available firmwares for every board/module with: | ||
|
||
``` | ||
./arduino-fwuploader firmware list | ||
``` | ||
|
||
but you can also filter the results by specifying the `-b` or `--fqbn` flag | ||
|
||
The tool offers the ability to print output in json, with the `--format json` | ||
|
||
### Certificates | ||
|
||
The tool offers also the ability to flash SSL certificates to a board: | ||
|
||
``` | ||
/arduino-fwuploader flash -b arduino:samd:nano_33_iot" -a COM10 -u arduino.cc:443 -u google.cc:443 | ||
``` | ||
|
||
or you can specify a path to a file with `-f` | ||
|
||
### Command line options | ||
|
||
The full list of command line options can be obtained with the `-h` option: `./arduino-fwuploader -h` | ||
|
||
``` | ||
Arduino Firmware Uploader (arduino-fwuploader). | ||
|
||
Usage: | ||
arduino-fwuploader [command] | ||
|
||
Examples: | ||
./arduino-fwuploader <command> [flags...] | ||
|
||
Available Commands: | ||
certificates Commands to operate on certificates. | ||
firmware Commands to operate on firmwares. | ||
help Help about any command | ||
version Shows version number of arduino-fwuploader. | ||
|
||
Flags: | ||
--format string The output format, can be {text|json}. (default "text") | ||
-h, --help help for arduino-fwuploader | ||
--log-file string Path to the file where logs will be written | ||
--log-format string The output format for the logs, can be {text|json}. | ||
--log-level string Messages with this level and above will be logged. Valid levels are: trace, debug, info, warn, error, fatal, panic (default "info") | ||
-v, --verbose Print the logs on the standard output. | ||
|
||
Use "arduino-fwuploader [command] --help" for more information about a command. | ||
``` | ||
|
||
## How to build the tools from source file | ||
|
||
To build we use [task](https://taskfile.dev/) for simplicity. From the sources root directory run: | ||
|
||
``` | ||
task dist:<OS>_<ARCH> | ||
``` | ||
|
||
Where <OS> could be one of: `macOS`,`Windows`,`Linux`. And <ARCH>: `32bit`, `64bit`, `ARM` or `ARM64` | ||
|
||
This will create the `arduino-fwuploader` executable. | ||
1. [Install] the Arduino Firmware Uploader | ||
2. Follow the [Usage] guide to check out what the tool can do | ||
3. Browse the [Commands reference] to see all the available commands | ||
|
||
## Security | ||
|
||
If you think you found a vulnerability or other security-related bug in this project, please read our [security | ||
policy][security-policy] and report the bug to our Security Team 🛡️ Thank you! | ||
If you think you found a vulnerability or other security-related bug in this project, please read our [security policy] | ||
and report the bug to our Security Team 🛡️ Thank you! | ||
|
||
e-mail contact: security@arduino.cc | ||
|
||
## License | ||
|
||
Copyright (c) 2015-2021 Arduino LLC. All right reserved. | ||
|
||
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public | ||
License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later | ||
version. | ||
|
||
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied | ||
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more | ||
details. | ||
|
||
You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the | ||
Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
|
||
[tests-badge]: https://github.com/Arduino/arduino-fwuploader/workflows/test/badge.svg | ||
[docs-badge]: https://github.com/Arduino/arduino-fwuploader/workflows/publish-docs/badge.svg | ||
umbynos marked this conversation as resolved.
Show resolved
Hide resolved
|
||
[security-policy]: https://github.com/arduino/arduino-fwuploader/security/policy | ||
umbynos marked this conversation as resolved.
Show resolved
Hide resolved
|
||
[user documentation]: https://arduino.github.io/arduino-fwuploader/ | ||
[install]: https://arduino.github.io/arduino-fwuploader/dev/installation | ||
[usage]: https://arduino.github.io/arduino-fwuploader/dev/usage | ||
[commands reference]: https://arduino.github.io/arduino-fwuploader/dev/commands/arduino-fwuploader/ |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
The Arduino Firmware Uploader is a tool made to update the firmware and/or add SSL certificates for any arduino board | ||
equipped with WINC or NINA module. | ||
umbynos marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
## Installation | ||
|
||
You have several options to install the latest version of the Arduino Firmware Uploader on your system, see the | ||
[installation] page. | ||
|
||
## Getting started | ||
|
||
Follow the [Usage guide] to see how to use the most common CLI commands available. | ||
umbynos marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
[installation]: installation.md | ||
[usage guide]: usage.md |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
## Install | ||
|
||
You can download the `arduino-fwuploader` directly from the GitHub release page: | ||
umbynos marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
https://github.com/arduino/arduino-fwuploader/releases/latest | ||
|
||
### How to build the tools from source file | ||
|
||
To build we use [task](https://taskfile.dev/) for simplicity. From the sources root directory run: | ||
|
||
``` | ||
task dist:<OS>_<ARCH> | ||
``` | ||
|
||
Where <OS> could be one of: `macOS`,`Windows`,`Linux`. And <ARCH>: `32bit`, `64bit`, `ARM` or `ARM64` | ||
|
||
This will create the `arduino-fwuploader` executable. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
## Usage | ||
|
||
### Firmware Flashing | ||
|
||
First install the `arduino-fwuploader`. Extract the zip file and, for example, to update the NINA module present on the | ||
umbynos marked this conversation as resolved.
Show resolved
Hide resolved
|
||
Arduino MKR WiFi 1010, run: | ||
|
||
``` | ||
./arduino-fwuploader firmware flash -b arduino:samd:mkrwifi1010 -a /dev/ttyACM0 | ||
``` | ||
|
||
You just have to specify the fqbn (`-b` or `--fqbn`) of the board and the serial port (`-a` or `--address`) The firmware | ||
uploader will take care of fetching everything is required to perform the update process. If no module and version are | ||
specified **the latest version of the firmware** will be used. | ||
umbynos marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
If you want to flash a specific version of a firmware you can use the `-m` or `--module` flag | ||
|
||
For example to flash the WINC module present on the MKR 1000 with 19.6.1 version of the firmware you can run something | ||
umbynos marked this conversation as resolved.
Show resolved
Hide resolved
|
||
like: | ||
|
||
``` | ||
./arduino-fwuploader firmware flash -b arduino:samd:mkr1000 -a /dev/ttyACM0 -m WINC1500@19.6.1 | ||
``` | ||
|
||
There is also a retry mechanism bundled in the tool because the flashing process uses serial comunication and sometimes | ||
can be a bit unreliable. The retry flag is set by default to 9 retries, but it's possible to overwrite it for whatever | ||
reason. For example to update a Nano RP2040 Connect with the retry set to 2 you can use: | ||
umbynos marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
``` | ||
./arduino-fwuploader firmware flash --fqbn arduino:mbed_nano:nanorp2040connect -a /dev/ttyACM0 --retries 2 | ||
``` | ||
|
||
It's possible also to list the available firmwares for every board/module with: | ||
umbynos marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
``` | ||
./arduino-fwuploader firmware list | ||
``` | ||
|
||
but you can also filter the results by specifying the `-b` or `--fqbn` flag | ||
|
||
The tool offers the ability to print output in json, with the `--format json` | ||
umbynos marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
### Certificates | ||
|
||
The tool offers also the ability to flash SSL certificates to a module: | ||
|
||
``` | ||
./arduino-fwuploader certificates flash -b arduino:samd:nano_33_iot" -a COM10 -u arduino.cc:443 -u google.cc:443 | ||
``` | ||
|
||
or you can specify a path to a file with `-f` instead of the url of the certificate | ||
umbynos marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
### Command line options | ||
|
||
The full list of command line options can be obtained with the `-h` option: `./arduino-fwuploader -h` | ||
|
||
``` | ||
Arduino Firmware Uploader (arduino-fwuploader). | ||
|
||
Usage: | ||
arduino-fwuploader [command] | ||
|
||
Examples: | ||
./arduino-fwuploader <command> [flags...] | ||
|
||
Available Commands: | ||
certificates Commands to operate on certificates. | ||
firmware Commands to operate on firmwares. | ||
help Help about any command | ||
version Shows version number of arduino-fwuploader. | ||
|
||
Flags: | ||
--format string The output format, can be {text|json}. (default "text") | ||
-h, --help help for arduino-fwuploader | ||
--log-file string Path to the file where logs will be written | ||
--log-format string The output format for the logs, can be {text|json}. | ||
--log-level string Messages with this level and above will be logged. Valid levels are: trace, debug, info, warn, error, fatal, panic (default "info") | ||
-v, --verbose Print the logs on the standard output. | ||
|
||
Use "arduino-fwuploader [command] --help" for more information about a command. | ||
``` | ||
|
||
umbynos marked this conversation as resolved.
Show resolved
Hide resolved
|
||
For further information you can use the [command reference] | ||
|
||
[command reference]: https://arduino.github.io/arduino-fwuploader/dev/commands/arduino-fwuploader/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.