System Commands with Arduino

I want to erase the configuration of the odrive and reset it during code I am writing. The current code I have is

      delay(2000);
      odrive_serial << "w se\n";
      odrive_serial << "w sr\n";
      delay(2000);

which I am using because se\n should erase the config and sr\n should reboot the system. However, this is not working. Any tips?

Ah, no, not w se\n, just se\n.

1 Like