- changed status to open
New programme does not overwrite previous programme
Issue #516
open
When editing a programme first. Then connect a board that had a previous program on it. At this point the new programme will not completely overwrite the old programme on the board.
When the board is connected again and the programme is read from the board, it will be read including the new programme and part of the old programme code.
IDE 1.2.76 vm 236
I used the M5stack core to do the tests.
loginfo:
Memory cleared
emModule.js:18 Connected to webserial
emModule.js:18 All tasks stopped
emModule.js:18 Full download
emModule.js:18 All tasks stopped
emModule.js:18 Downloaded 8 functions to board (1547 msecs)
emModule.js:18 Downloaded 2 scripts to board (168 msecs)
emModule.js:18 Memory cleared
emModule.js:18 All tasks stopped
2emModule.js:18 Memory cleared
emModule.js:18 Connected to webserial
emModule.js:18 All tasks stopped
emModule.js:18 Incremental download nil nil
emModule.js:18 Downloaded 1 scripts to board (182 msecs)
emModule.js:18 CRC mismatch; resaving chunk: 8
emModule.js:18 Memory cleared
All tasks stopped
2emModule.js:18 Memory cleared
emModule.js:18 Connected to webserial
emModule.js:18 All tasks stopped
emModule.js:18 Read 1 vars 12 chunks
emModule.js:18 Downloaded 8 functions to board (1556 msecs)
emModule.js:18 Downloaded 4 scripts to board (325 msecs)
Comments (2)
-
repo owner -
reporter no, new program is different one.
- Log in to comment
Was the new program similar to the old one? From the log, MicroBlocks did a "incremental" load, which takes less time. But it's possible that doing that does not delete old code from the board.