parent
28cd4fc7a5
commit
838a7ce848
@ -285,6 +285,11 @@ namespace pxt.editor {
|
|||||||
log("reset")
|
log("reset")
|
||||||
return wrap.cortexM.reset(true)
|
return wrap.cortexM.reset(true)
|
||||||
})
|
})
|
||||||
|
.then(() => wrap.cortexM.memory.readBlock(0x10001014, 1, pageSize))
|
||||||
|
.then(v => {
|
||||||
|
if (HF2.read32(v, 0) != 0x3C000)
|
||||||
|
U.userError(U.lf("Please flash any MakeCode hex file using drag and drop. Flashing from app will work afterwards."))
|
||||||
|
})
|
||||||
.then(() => getFlashChecksumsAsync(wrap))
|
.then(() => getFlashChecksumsAsync(wrap))
|
||||||
.then(buf => {
|
.then(buf => {
|
||||||
checksums = buf
|
checksums = buf
|
||||||
|
Loading…
Reference in New Issue
Block a user