update.html 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <link rel="stylesheet" href="max80.css" />
  5. <title class="update">MAX80: Update</title>
  6. <script src="max80.js"></script>
  7. </head>
  8. <body>
  9. <script>inc("head.html")</script>
  10. <h1 class="update">Update</h1>
  11. <form id="upload" class="idle"
  12. action="sys/fwupdate" method="post" onsubmit="uploadfile()"
  13. data-ref="10" data-ref-url="status.html">
  14. <fieldset class="firmware">
  15. <legend>Firmware</legend>
  16. <input type="file" name="file" hidden accept=".fw" onchange="uploadfile()" />
  17. <button class="submit" type="submit" id="upload.start"
  18. onclick="sib(this,'input').value=''">Update firmware</button>
  19. <progress value="0"></progress>
  20. </fieldset>
  21. <output></output>
  22. <div class="onerr">
  23. <h3>Possible troubleshooting steps:</h3>
  24. <ol>
  25. <li class="retry">Try again</li>
  26. <li class="jtag">Make sure no JTAG cable is plugged in</li>
  27. <li class="power">Power cycle board (remove both USB and power off ABC host)</li>
  28. <li class="esp">Separately update ESP32 over USB before trying again</li>
  29. <li class="console">Check serial console for more detailed status messages</li>
  30. </ol>
  31. </div>
  32. </form>
  33. </body>
  34. </html>