0.06: Lower chunk size to 1024 (from 2048) to make firmware updates more reliable
parent
ba1c109e88
commit
2767c57cba
|
|
@ -6,3 +6,4 @@
|
||||||
Add CRC checks for common bootloaders that we know don't work
|
Add CRC checks for common bootloaders that we know don't work
|
||||||
0.04: Include a precompiled bootloader for easy bootloader updates
|
0.04: Include a precompiled bootloader for easy bootloader updates
|
||||||
0.05: Rename Bootloader->DFU and add explanation to avoid confusion with Bootloader app
|
0.05: Rename Bootloader->DFU and add explanation to avoid confusion with Bootloader app
|
||||||
|
0.06: Lower chunk size to 1024 (from 2048) to make firmware updates more reliable
|
||||||
|
|
|
||||||
|
|
@ -317,7 +317,7 @@ function createJS_app(binary, startAddress, endAddress) {
|
||||||
hexJS += `\x10if (E.CRC32(E.memoryArea(0xF7000,0x7000))==1207580954) { print("DFU 2v10.236 needs update"); load();}\n`;
|
hexJS += `\x10if (E.CRC32(E.memoryArea(0xF7000,0x7000))==1207580954) { print("DFU 2v10.236 needs update"); load();}\n`;
|
||||||
hexJS += '\x10var s = require("Storage");\n';
|
hexJS += '\x10var s = require("Storage");\n';
|
||||||
hexJS += '\x10s.erase(".firmware");\n';
|
hexJS += '\x10s.erase(".firmware");\n';
|
||||||
var CHUNKSIZE = 2048;
|
var CHUNKSIZE = 1024;
|
||||||
for (var i=0;i<binary.length;i+=CHUNKSIZE) {
|
for (var i=0;i<binary.length;i+=CHUNKSIZE) {
|
||||||
var l = binary.length-i;
|
var l = binary.length-i;
|
||||||
if (l>CHUNKSIZE) l=CHUNKSIZE;
|
if (l>CHUNKSIZE) l=CHUNKSIZE;
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"id": "fwupdate",
|
"id": "fwupdate",
|
||||||
"name": "Firmware Update",
|
"name": "Firmware Update",
|
||||||
"version": "0.05",
|
"version": "0.06",
|
||||||
"description": "Uploads new Espruino firmwares to Bangle.js 2",
|
"description": "Uploads new Espruino firmwares to Bangle.js 2",
|
||||||
"icon": "app.png",
|
"icon": "app.png",
|
||||||
"type": "RAM",
|
"type": "RAM",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue