Have I "bricked" it with pyb.stop()?
Posted: Fri Jan 30, 2015 6:47 pm
I was debugging some code, and I added a pyb.stop() command to my code. I saw the command in the list of commands, but there was no explanation, so I thought I would give it a whirl...... should have been wary! And did it stop it! I can now see my code running (I2C, scope activity), but when (I believe) it gets to the stop command, it sits there.
Symptoms:
1. VCP is still shown (COM4), but programs cannot open this port. RealTerm reports "Apo error", WTMB.
2. It shows as "uPython USB device.... " in program manager. But does not "mount" it as a disk drive any more. So can't edit the pyb.stop() out.
3. Using DFU, I re-installed the code, but it made no difference. I guess since it does not change the program memory, this was to be expected- but since DFU works, the chip and USB connection must be okay.
Any ideas on how to un-brick it? I guess I need to erase the program memory somehow, although I hate to do that without downloading it first- I can't remember when I last backed it up. (my bad, but I wish there was a way to have the file on the board mirrored auto-magically on my PC somewhere). DFuse from STM doesn't seem to have an option to erase that part of memory.
Any ideas short of soldering on a new chip appreciated....
Symptoms:
1. VCP is still shown (COM4), but programs cannot open this port. RealTerm reports "Apo error", WTMB.
2. It shows as "uPython USB device.... " in program manager. But does not "mount" it as a disk drive any more. So can't edit the pyb.stop() out.
3. Using DFU, I re-installed the code, but it made no difference. I guess since it does not change the program memory, this was to be expected- but since DFU works, the chip and USB connection must be okay.
Any ideas on how to un-brick it? I guess I need to erase the program memory somehow, although I hate to do that without downloading it first- I can't remember when I last backed it up. (my bad, but I wish there was a way to have the file on the board mirrored auto-magically on my PC somewhere). DFuse from STM doesn't seem to have an option to erase that part of memory.
Any ideas short of soldering on a new chip appreciated....