Skip to content

Commit

Permalink
Device setup fixes (#1234)
Browse files Browse the repository at this point in the history
  • Loading branch information
rickkas7 authored Jan 12, 2022
1 parent 1f44c5c commit ec50ec1
Show file tree
Hide file tree
Showing 11 changed files with 248 additions and 175 deletions.
Binary file modified src/assets/files/docs-usb-setup-firmware/argon.bin
Binary file not shown.
Binary file modified src/assets/files/docs-usb-setup-firmware/b5som.bin
Binary file not shown.
Binary file modified src/assets/files/docs-usb-setup-firmware/boron.bin
Binary file not shown.
Binary file modified src/assets/files/docs-usb-setup-firmware/bsom.bin
Binary file not shown.
Binary file modified src/assets/files/docs-usb-setup-firmware/electron.bin
Binary file not shown.
Binary file modified src/assets/files/docs-usb-setup-firmware/p1.bin
Binary file not shown.
Binary file modified src/assets/files/docs-usb-setup-firmware/photon.bin
Binary file not shown.
2 changes: 1 addition & 1 deletion src/assets/files/versionInfo.json
Original file line number Diff line number Diff line change
Expand Up @@ -661,5 +661,5 @@
"semVer": "3.2.0-rc.1"
}
],
"updated": 1641413166
"updated": 1641919517
}
15 changes: 4 additions & 11 deletions src/assets/js/device-restore-dfu.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ async function dfuDeviceRestore(usbDevice, options) {
resolve();
})
.catch(function(err) {
console.log('error', err);
setStatus();
reject();
});
Expand Down Expand Up @@ -359,6 +358,7 @@ async function dfuDeviceRestore(usbDevice, options) {
*/

dfuseDevice.logInfo = function(msg) {
console.log(msg); // TEMPORARY
};

return dfuseDevice;
Expand All @@ -370,10 +370,10 @@ async function dfuDeviceRestore(usbDevice, options) {
{ name: 'system-part1', title: 'Device OS System Part 1' },
{ name: 'system-part2', title: 'Device OS System Part 2' },
{ name: 'system-part3', title: 'Device OS System Part 3' },
{ name: 'bootloader', title: 'Device OS Bootloader' },
{ name: 'softdevice', title: 'nRF52 Soft Device' },
{ name: 'tinker', reset:true, title: 'User Firmware' },
{ name: 'tracker-edge', reset:true, title: 'Tracker Edge Firmware' }
{ name: 'tracker-edge', reset:true, title: 'Tracker Edge Firmware' },
{ name: 'bootloader', title: 'Device OS Bootloader' },
];
let dfuParts = [];

Expand Down Expand Up @@ -479,13 +479,6 @@ async function dfuDeviceRestore(usbDevice, options) {
dfuseDevice.startAddress = 0x80C0000;
await dfuseDevice.do_download(4096, part, {});
}
if (options.progressUpdate) {
options.progressUpdate('', 100, {
func: 'program',
pct: 100,
partName
});
}
}
else
if (options.userFirmwareBinary && (partName == 'tinker' || partName == 'tracker-edge')) {
Expand Down Expand Up @@ -595,7 +588,7 @@ async function dfuDeviceRestore(usbDevice, options) {
if (options.progressShowHide) {
options.progressShowHide(false);
}

await dfuseAltDevice.close();
}

Expand Down
Loading

0 comments on commit ec50ec1

Please sign in to comment.