0.06: Lower chunk size to 1024 (from 2048) to make firmware updates more reliable

master
Gordon Williams 2023-03-03 10:25:02 +00:00
parent ba1c109e88
commit 2767c57cba
3 changed files with 3 additions and 2 deletions

View File

@ -6,3 +6,4 @@
Add CRC checks for common bootloaders that we know don't work
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.06: Lower chunk size to 1024 (from 2048) to make firmware updates more reliable

View File

@ -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 += '\x10var s = require("Storage");\n';
hexJS += '\x10s.erase(".firmware");\n';
var CHUNKSIZE = 2048;
var CHUNKSIZE = 1024;
for (var i=0;i<binary.length;i+=CHUNKSIZE) {
var l = binary.length-i;
if (l>CHUNKSIZE) l=CHUNKSIZE;

View File

@ -1,7 +1,7 @@
{
"id": "fwupdate",
"name": "Firmware Update",
"version": "0.05",
"version": "0.06",
"description": "Uploads new Espruino firmwares to Bangle.js 2",
"icon": "app.png",
"type": "RAM",