Skip to content

Commit

Permalink
Added wb32-dfu-updater_cli automatically disabled read protection fun…
Browse files Browse the repository at this point in the history
…ction
  • Loading branch information
Joy-mac committed Mar 25, 2022
1 parent 7529213 commit a5dfac0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions macos/QMK Toolbox/Flashing.m
Original file line number Diff line number Diff line change
Expand Up @@ -276,9 +276,11 @@ - (void)flashSTM32DuinoWithFile:(NSString *)file {

- (void)flashWB32DFUWithFile:(NSString *)file {
if([[[file pathExtension] lowercaseString] isEqualToString:@"bin"]) {
[self runProcess:@"wb32-dfu-updater_cli" withArgs:@[@"--dfuse-address", @"0x08000000", @"--download", file]];
[self runProcess:@"wb32-dfu-updater_cli" withArgs:@[@"--toolbox-mode",
@"--dfuse-address", @"0x08000000", @"--download", file]];
} else {
[self runProcess:@"wb32-dfu-updater_cli" withArgs:@[@"--download", file]];
[self runProcess:@"wb32-dfu-updater_cli" withArgs:@[@"--toolbox-mode",
@"--download", file]];
}
}

Expand Down
Binary file modified macos/QMK Toolbox/Resources/wb32-dfu-updater_cli
100644 → 100755
Binary file not shown.

0 comments on commit a5dfac0

Please sign in to comment.