You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
starting REPL crashes Prime hub when no user program/bad data present in flash memory #744
It would be good to review this carefully, also in situations where power is lost while loading a large program, after the write flag is already set due to another program having just run.
Maybe it is all already taken care of; I just haven't double-checked this after the recent revisions to download-and-run.
changed the title [-]starting REPL crashes Prime hub[/-][+]starting REPL crashes Prime hub when no user program/bad data present in flash memory[/+]on Feb 17, 2023
Activity
dlech commentedon Oct 20, 2022
I was able to reproduce this as well.
laurensvalk commentedon Oct 20, 2022
Possibly relevant: It's also worth doing some checks with the data area erased (using the official firmware).
And/or a previous Pybricks firmware with a different persistent code layout.
dlech commentedon Oct 20, 2022
Confirmed that running a user program with the▶️ button then trying the REPL again fixes the problem.
laurensvalk commentedon Oct 21, 2022
It would be good to review this carefully, also in situations where power is lost while loading a large program, after the write flag is already set due to another program having just run.
Maybe it is all already taken care of; I just haven't double-checked this after the recent revisions to download-and-run.
laurensvalk commentedon Nov 22, 2022
We also need to check that you can't accidentally erase half of your user program when entering bootloader mode.
This doesn't seem to be happening on Move Hub. Still need to try City Hub, Technic Hub.
[-]starting REPL crashes Prime hub[/-][+]starting REPL crashes Prime hub when no user program/bad data present in flash memory[/+]laurensvalk commentedon Mar 11, 2024
Entering bootloader does not erase flash, so there is nothing left to be done here. Closing.