|
1 |
| -# Firmware/Certificates updater for WINC and NINA Wifi module |
| 1 | +# Arduino Firmware Uploader |
2 | 2 |
|
3 |
| -Use this tool to update the firmware and/or add SSL certificates for any WINC, NINA module. |
| 3 | +The Arduino Firmware Uploader is a tool made to update the firmware and/or add SSL certificates for any Arduino board |
| 4 | +equipped with WINC or NINA Wi-Fi module. |
4 | 5 |
|
5 |
| -## Install |
| 6 | +[![tests-badge]](https://github.com/arduino/arduino-fwuploader/actions/workflows/test.yaml) |
| 7 | +[![docs-badge]](https://github.com/arduino/arduino-fwuploader/actions/workflows/publish-docs.yaml) |
6 | 8 |
|
7 |
| -You can download the Firmware/Certificates updater here: |
| 9 | +## Docs |
8 | 10 |
|
9 |
| -https://github.com/arduino/arduino-fwuploader/releases/latest |
| 11 | +For guidance on installation and development, see the [User documentation] |
10 | 12 |
|
11 |
| -## Usage |
| 13 | +## Quickstart |
12 | 14 |
|
13 |
| -### Firmware Flashing |
14 |
| - |
15 |
| -Extract the zip file and, to update a mkr 1010, run: |
16 |
| - |
17 |
| -``` |
18 |
| -./arduino-fwuploader firmware flash -b arduino:samd:mkrwifi1010 -a /dev/ttyACM0 |
19 |
| -``` |
20 |
| - |
21 |
| -You just have to specify the fqbn (`-b` or `--fqbn`) of the board and the serial port (`-a` or `--address`) The firmware |
22 |
| -uploader will take care of fetching everything is required to perform the update process. If no module and version are |
23 |
| -specified **the latest version of the firmware** will be used. |
24 |
| - |
25 |
| -If you want to flash a specific version of a firmware you can use the `-m` or `--module` flag |
26 |
| - |
27 |
| -For example to flash a MKR1000 with 19.6.1 version of the firmware you can run something like: |
28 |
| - |
29 |
| -``` |
30 |
| -./arduino-fwuploader firmware flash -b arduino:samd:mkr1000 -a /dev/ttyACM0 -m WINC1500@19.6.1 |
31 |
| -``` |
32 |
| - |
33 |
| -There is also a retry mechanism bundled in the tool because the flashing process sometimes can be a bit unreliable. For |
34 |
| -example to update a Nano RP2040 Connect with the retry set to 2 you can use: |
35 |
| - |
36 |
| -``` |
37 |
| -./arduino-fwuploader firmware flash --fqbn arduino:mbed_nano:nanorp2040connect -a /dev/ttyACM0 --retries 2 |
38 |
| -``` |
39 |
| - |
40 |
| -It's possible also to list the available firmwares for every board/module with: |
41 |
| - |
42 |
| -``` |
43 |
| -./arduino-fwuploader firmware list |
44 |
| -``` |
45 |
| - |
46 |
| -but you can also filter the results by specifying the `-b` or `--fqbn` flag |
47 |
| - |
48 |
| -The tool offers the ability to print output in json, with the `--format json` |
49 |
| - |
50 |
| -### Certificates |
51 |
| - |
52 |
| -The tool offers also the ability to flash SSL certificates to a board: |
53 |
| - |
54 |
| -``` |
55 |
| -/arduino-fwuploader flash -b arduino:samd:nano_33_iot" -a COM10 -u arduino.cc:443 -u google.cc:443 |
56 |
| -``` |
57 |
| - |
58 |
| -or you can specify a path to a file with `-f` |
59 |
| - |
60 |
| -### Command line options |
61 |
| - |
62 |
| -The full list of command line options can be obtained with the `-h` option: `./arduino-fwuploader -h` |
63 |
| - |
64 |
| -``` |
65 |
| -Arduino Firmware Uploader (arduino-fwuploader). |
66 |
| -
|
67 |
| -Usage: |
68 |
| - arduino-fwuploader [command] |
69 |
| -
|
70 |
| -Examples: |
71 |
| - ./arduino-fwuploader <command> [flags...] |
72 |
| -
|
73 |
| -Available Commands: |
74 |
| - certificates Commands to operate on certificates. |
75 |
| - firmware Commands to operate on firmwares. |
76 |
| - help Help about any command |
77 |
| - version Shows version number of arduino-fwuploader. |
78 |
| -
|
79 |
| -Flags: |
80 |
| - --format string The output format, can be {text|json}. (default "text") |
81 |
| - -h, --help help for arduino-fwuploader |
82 |
| - --log-file string Path to the file where logs will be written |
83 |
| - --log-format string The output format for the logs, can be {text|json}. |
84 |
| - --log-level string Messages with this level and above will be logged. Valid levels are: trace, debug, info, warn, error, fatal, panic (default "info") |
85 |
| - -v, --verbose Print the logs on the standard output. |
86 |
| -
|
87 |
| -Use "arduino-fwuploader [command] --help" for more information about a command. |
88 |
| -``` |
89 |
| - |
90 |
| -## How to build the tools from source file |
91 |
| - |
92 |
| -To build we use [task](https://taskfile.dev/) for simplicity. From the sources root directory run: |
93 |
| - |
94 |
| -``` |
95 |
| -task dist:<OS>_<ARCH> |
96 |
| -``` |
97 |
| - |
98 |
| -Where <OS> could be one of: `macOS`,`Windows`,`Linux`. And <ARCH>: `32bit`, `64bit`, `ARM` or `ARM64` |
99 |
| - |
100 |
| -This will create the `arduino-fwuploader` executable. |
| 15 | +1. [Install] the Arduino Firmware Uploader |
| 16 | +2. Follow the [Usage] guide to check out what the tool can do |
| 17 | +3. Browse the [Commands reference] to see all the available commands |
101 | 18 |
|
102 | 19 | ## Security
|
103 | 20 |
|
104 |
| -If you think you found a vulnerability or other security-related bug in this project, please read our [security |
105 |
| -policy][security-policy] and report the bug to our Security Team 🛡️ Thank you! |
| 21 | +If you think you found a vulnerability or other security-related bug in this project, please read our [security policy] |
| 22 | +and report the bug to our Security Team 🛡️ Thank you! |
106 | 23 |
|
107 | 24 | e-mail contact: security@arduino.cc
|
108 | 25 |
|
109 |
| -## License |
110 |
| - |
111 |
| -Copyright (c) 2015-2021 Arduino LLC. All right reserved. |
112 |
| - |
113 |
| -This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public |
114 |
| -License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later |
115 |
| -version. |
116 |
| - |
117 |
| -This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied |
118 |
| -warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more |
119 |
| -details. |
120 |
| - |
121 |
| -You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the |
122 |
| -Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
123 |
| - |
124 |
| -[security-policy]: https://github.com/arduino/arduino-fwuploader/security/policy |
| 26 | +[tests-badge]: https://github.com/arduino/arduino-fwuploader/actions/workflows/test.yaml/badge.svg |
| 27 | +[docs-badge]: https://github.com/arduino/arduino-fwuploader/actions/workflows/publish-docs.yaml/badge.svg |
| 28 | +[security policy]: https://github.com/arduino/arduino-fwuploader/security/policy |
| 29 | +[user documentation]: https://arduino.github.io/arduino-fwuploader/ |
| 30 | +[install]: https://arduino.github.io/arduino-fwuploader/dev/installation |
| 31 | +[usage]: https://arduino.github.io/arduino-fwuploader/dev/usage |
| 32 | +[commands reference]: https://arduino.github.io/arduino-fwuploader/dev/commands/arduino-fwuploader/ |
0 commit comments