We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 282de6d commit 11407c8Copy full SHA for 11407c8
apps/fwupdate/custom.html
@@ -381,6 +381,7 @@
381
function createJS_bootloader(binary, startAddress, endAddress) {
382
var crc = CRC32(binary);
383
console.log("CRC 0x"+crc.toString(16));
384
+ // it is possible to do E.memoryArea(0xF7000,0x7000).match(/BL (2v[^\n]*)/) - can take 1s
385
hexJS = `\x10if (E.CRC32(E.memoryArea(${startAddress},${endAddress-startAddress}))==${crc}) { print("DFU UP TO DATE!"); load();}\n`;
386
hexJS += `\x10var _fw = new Uint8Array(${binary.length})\n`;
387
var CHUNKSIZE = 1024;
0 commit comments