Closed peterhgombos closed 9 years ago
Do we also want to reset the CC3000 wifi chip? It also holds state, and resetting the main chip while there are sockets open or something might mess up wifi later. But we also have separate wifi reset functions, so I'm leaning towards leaving the behavior as-is.
Don't know if there are any other ramifications of jumping back to the start address. @kevinmehall @tcr?
jump_to_flash
resets most LPC1800 peripherals, and should work fine for this.
Doesn't the startup process reset the CC3000? This is effectively the same as pressing the reset button, and I thought that triggered a CC3000 reset via the startup code.
@kevinmehall as far as I can tell, the software enable line of the CC is toggled but I don't believe the chip is reset.
I haven't tested the wifi through a software reset with this method, but the leds are flashing exactly like I've pressed the button.
r+ from me. Somebody else want to confirm and merge?
Tested, works for me.
Calling tessel.reset_board() in a js program now resets the tessel, allowing for programmatically reset. Fixes #124.