Delete deprecated scripts.
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
./print-i2c-hangs.sh > i2c-hangs-`date +%Y-%m-%d_%H:%M:%S`.log
|
||||
@@ -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
|
||||
@@ -1,4 +0,0 @@
|
||||
speed 4000
|
||||
device MKL03Z32xxx4
|
||||
connect
|
||||
loadfile uhk-left.srec
|
||||
@@ -1,3 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
JLinkExe -If SWD -CommandFile update-left-firmware.jlink
|
||||
@@ -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
|
||||
@@ -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();
|
||||
Reference in New Issue
Block a user