Skip to content

Commit ed69ccb

Browse files
spi flash cmd flash size detection (#191)
* add flash id to main * update flash size argument to loader options * add initial firmware image implementation * add rest of firmware image classes * esp32 update header with segments count * use crypto package instead * fix lint
1 parent 4d52312 commit ed69ccb

27 files changed

+1582
-184
lines changed

examples/typescript/src/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ connectButton.onclick = async () => {
9898
} as LoaderOptions;
9999
esploader = new ESPLoader(flashOptions);
100100

101+
traceButton.style.display = "initial";
101102
chip = await esploader.main();
102103

103104
// Temporarily broken
@@ -109,7 +110,6 @@ connectButton.onclick = async () => {
109110
baudrates.style.display = "none";
110111
connectButton.style.display = "none";
111112
disconnectButton.style.display = "initial";
112-
traceButton.style.display = "initial";
113113
eraseButton.style.display = "initial";
114114
filesDiv.style.display = "initial";
115115
consoleDiv.style.display = "none";
@@ -346,7 +346,6 @@ programButton.onclick = async () => {
346346
try {
347347
const flashOptions: FlashOptions = {
348348
fileArray: fileArray,
349-
flashSize: "keep",
350349
eraseAll: false,
351350
compress: true,
352351
reportProgress: (fileIndex, written, total) => {

package-lock.json

Lines changed: 42 additions & 44 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)