Feature request: Spark CLI reset command

I’d like to initiate a reset from the command line.

@ronm, you can create a Spark.function () to do a software reset if you have the new bootloader with the code below:

https://github.com/kennethlimcp/Spark-Snippets/blob/master/Snippets/0003%20-%20SW_factory_reset.ino

1 Like

If you just want your core to reboot, (and not do a factory reset) you only need (I believe):

 USB_Cable_Config(DISABLE);
 NVIC_SystemReset();

Thanks,
David

2 Likes