Artery AT32F435/7 DFU and VCP support (#3259)

* Add Artery AT32F435/7 Virtual COM Port support

* ADD ARTRY AT32 DFU support

* remove wrong comment
master
EMSR 2023-01-29 09:18:26 +08:00 committed by GitHub
parent 1cfdcd833d
commit da3596bb06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 1 deletions

View File

@ -11,6 +11,7 @@ const TIMEOUT_CHECK = 500 ; // With 250 it seems that it produces a memory leak
export const usbDevices = { filters: [
{'vendorId': 1155, 'productId': 57105}, // STM Device in DFU Mode || Digital Radio in USB mode
{'vendorId': 10473, 'productId': 393}, // GD32 DFU Bootloader
{'vendorId': 0x2E3C, 'productId': 0xDF11}, // AT32F435 DFU Bootloader
] };
const PortHandler = new function () {

View File

@ -346,10 +346,18 @@ STM32DFU_protocol.prototype.getChipInfo = function (_interface, callback) {
// H750 SPRacing H7 EXST: "@External Flash /0x90000000/1001*128Kg,3*128Kg,20*128Ka" - Early BL firmware with incorrect string, treat as above.
// H750 Partitions: Flash, Config, Firmware, 1x BB Management block + x BB Replacement blocks)
// AT32 F437 "@Internal Flash /0x08000000/08*04Ka,1000*04Kg"
if (str === "@External Flash /0x90000000/1001*128Kg,3*128Kg,20*128Ka") {
str = "@External Flash /0x90000000/998*128Kg,1*128Kg,4*128Kg,21*128Ka";
}
//AT32F43xxM
if (str === "@Option byte /0x1FFFC000/01*4096 g"){
str = "@Option bytes /0x1FFFC000/01*4096 g";
}
//AT32F43xxG
if (str === "@Option byte /0x1FFFC000/01*512 g"){
str = "@Option bytes /0x1FFFC000/01*512 g";
}
// split main into [location, start_addr, sectors]
var tmp0 = str.replace(/[^\x20-\x7E]+/g, "");

View File

@ -28,6 +28,7 @@ const serial = {
{'vendorId': 4292, 'productId': 60000}, // CP210x
{'vendorId': 4292, 'productId': 60001}, // CP210x
{'vendorId': 4292, 'productId': 60002}, // CP210x
{'vendorId': 0x2e3c, 'productId': 0x5740}, // AT32 VCP
],
connect: function (path, options, callback) {