Delete deprecated scripts.

This commit is contained in:
László Monda
2017-11-08 00:42:32 +01:00
parent e7d8b619fd
commit ee85f666ae
6 changed files with 0 additions and 48 deletions

View File

@@ -1,3 +0,0 @@
#!/bin/bash
./print-i2c-hangs.sh > i2c-hangs-`date +%Y-%m-%d_%H:%M:%S`.log

View File

@@ -1,11 +0,0 @@
#!/bin/bash
while true; do
startSeconds=`date +%s`
./wait-until-i2c-dies.js
endSeconds=`date +%s`
elapsedSeconds=$((startSeconds-endSeconds))
echo $elapsedSeconds
./jump-to-bootloader.js > /dev/null
sleep 6
done

View File

@@ -1,4 +0,0 @@
speed 4000
device MKL03Z32xxx4
connect
loadfile uhk-left.srec

View File

@@ -1,3 +0,0 @@
#!/bin/sh
JLinkExe -If SWD -CommandFile update-left-firmware.jlink

View File

@@ -1,8 +0,0 @@
#!/bin/sh
set -e # fail the script if a command fails
node jump-to-bootloader.js
./blhost --usb 0x15a2,0x0073 flash-security-disable 0403020108070605
./blhost --usb 0x15a2,0x0073 flash-erase-region 0xc000 475136
./blhost --usb 0x15a2,0x0073 flash-image uhk-right.srec
./blhost --usb 0x15a2,0x0073 reset

View File

@@ -1,19 +0,0 @@
#!/usr/bin/env node
const uhk = require('./uhk');
const device = uhk.getUhkDevice();
let lastWatchdogCounter = -1;
function monitorI2c() {
const payload = new Buffer([uhk.usbCommands.readDebugInfo]);
// console.log('Sending ', uhk.bufferToString(payload));
device.write(uhk.getTransferData(payload));
device.write([64]);
const receivedBuffer = Buffer.from(device.readSync());
const watchdogCounter = (receivedBuffer[1] << 0) + (receivedBuffer[2] << 8) + (receivedBuffer[3] << 16) + (receivedBuffer[4] << 24);
if (watchdogCounter === lastWatchdogCounter) {
process.exit(0);
}
setTimeout(monitorI2c, 100)
}
monitorI2c();