Sunday 2 February 2014

Flashing NinjaBlock with new Arduino .hex file

To flash an arbitrary .hex file, run this from the command prompt
scp <path to .hex file> ubuntu@ninjablock.local:/home/ubuntu/NinjaBlock.hex
enter password: temppwd

ssh ubuntu@ninjablock.local

sudo stop ninjablock
sudo /opt/utilities/bin/ninja_update_arduino /home/ubuntu/NinjaBlock.hex
sudo start ninjablock

To flash the standard hex again, use this from the ssh console opened above
sudo stop ninjablock
sudo /opt/utilities/bin/ninja_update_arduino
sudo start ninjablock

No comments:

Post a Comment