mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-22 07:45:19 +03:00
Flashing fix for STM32F722 MCU
This commit is contained in:
parent
e405164c6d
commit
e4794221b9
1 changed files with 5 additions and 2 deletions
|
@ -298,9 +298,12 @@ STM32DFU_protocol.prototype.getChipInfo = function (_interface, callback) {
|
||||||
|
|
||||||
var parseDescriptor = function(str) {
|
var parseDescriptor = function(str) {
|
||||||
// F303: "@Internal Flash /0x08000000/128*0002Kg"
|
// F303: "@Internal Flash /0x08000000/128*0002Kg"
|
||||||
// F407: "@Internal Flash /0x08000000/04*016Kg,01*064Kg,07*128Kg"
|
// F40x: "@Internal Flash /0x08000000/04*016Kg,01*064Kg,07*128Kg"
|
||||||
|
// F72x: "@Internal Flash /0x08000000/04*016Kg,01*64Kg,03*128Kg"
|
||||||
|
// F74x: "@Internal Flash /0x08000000/04*032Kg,01*128Kg,03*256Kg"
|
||||||
// split main into [location, start_addr, sectors]
|
// split main into [location, start_addr, sectors]
|
||||||
var tmp1 = str.split('/');
|
var tmp0 = str.replace(/[^\x20-\x7E]+/g, "");
|
||||||
|
var tmp1 = tmp0.split('/');
|
||||||
if (tmp1.length != 3 || !tmp1[0].startsWith("@")) {
|
if (tmp1.length != 3 || !tmp1[0].startsWith("@")) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue