diff --git a/README.md b/README.md index cec0ae8..fef3acf 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,9 @@ It only supports DFU with MSC. # Support Devices | Manufacturer | MCU | Note | | :---------- | :---------- | :---------- | +| ArteryTek | AT32F402 | | | ArteryTek | AT32F403A | | +| ArteryTek | AT32F405 | | | ArteryTek | AT32F407 | | | ArteryTek | AT32F413 | | | ArteryTek | AT32F415 | | @@ -28,8 +30,6 @@ It only supports DFU with MSC. | ArteryTek | AT32F425 | | | ArteryTek | AT32F435 | | | ArteryTek | AT32F437 | | -| ArteryTek | AT32F402 | | -| ArteryTek | AT32F405 | | | ST | STM32F072 | Need to redirect vectors in app or bootloader. | | ST | STM32F103 | | | ST | STM32F401 | | @@ -43,8 +43,6 @@ It only supports DFU with MSC. ## Todo List - [ ] AT32WB415 -- [x] AT32F402 -- [x] AT32F405 - [ ] AT32F435/7(Multiport) - [ ] HPM5300 - [ ] CH32V307 -> CH32V20X_30X diff --git a/bootloader/ArteryTek/cherryuf2_at32f403acgt7_hick.bin b/bootloader/ArteryTek/cherryuf2_at32f403acgt7_hick.bin index 23c7592..6865358 100644 Binary files a/bootloader/ArteryTek/cherryuf2_at32f403acgt7_hick.bin and b/bootloader/ArteryTek/cherryuf2_at32f403acgt7_hick.bin differ diff --git a/bootloader/ArteryTek/cherryuf2_at32f405ccu7.bin b/bootloader/ArteryTek/cherryuf2_at32f405ccu7.bin new file mode 100644 index 0000000..9c8f85d Binary files /dev/null and b/bootloader/ArteryTek/cherryuf2_at32f405ccu7.bin differ diff --git a/bootloader/ArteryTek/cherryuf2_at32f413cbt7.bin b/bootloader/ArteryTek/cherryuf2_at32f413cbt7.bin index 32ee412..c64f15e 100644 Binary files a/bootloader/ArteryTek/cherryuf2_at32f413cbt7.bin and b/bootloader/ArteryTek/cherryuf2_at32f413cbt7.bin differ diff --git a/bootloader/ArteryTek/cherryuf2_at32f413cbt7_hick.bin b/bootloader/ArteryTek/cherryuf2_at32f413cbt7_hick.bin index 817574b..fbc4ece 100644 Binary files a/bootloader/ArteryTek/cherryuf2_at32f413cbt7_hick.bin and b/bootloader/ArteryTek/cherryuf2_at32f413cbt7_hick.bin differ diff --git a/bootloader/ArteryTek/cherryuf2_at32f415cbt7.bin b/bootloader/ArteryTek/cherryuf2_at32f415cbt7.bin index 895c117..876867d 100644 Binary files a/bootloader/ArteryTek/cherryuf2_at32f415cbt7.bin and b/bootloader/ArteryTek/cherryuf2_at32f415cbt7.bin differ diff --git a/bootloader/ArteryTek/cherryuf2_at32f423ccu7_hick.bin b/bootloader/ArteryTek/cherryuf2_at32f423ccu7_hick.bin new file mode 100644 index 0000000..d69d6da Binary files /dev/null and b/bootloader/ArteryTek/cherryuf2_at32f423ccu7_hick.bin differ diff --git a/bootloader/ArteryTek/cherryuf2_at32f425c8t7_hick.bin b/bootloader/ArteryTek/cherryuf2_at32f425c8t7_hick.bin index 96f8b9c..c1f71df 100644 Binary files a/bootloader/ArteryTek/cherryuf2_at32f425c8t7_hick.bin and b/bootloader/ArteryTek/cherryuf2_at32f425c8t7_hick.bin differ diff --git a/bootloader/ArteryTek/cherryuf2_at32f437zmt7_hick.bin b/bootloader/ArteryTek/cherryuf2_at32f437zmt7_hick.bin index 0ecb3c5..7f45914 100644 Binary files a/bootloader/ArteryTek/cherryuf2_at32f437zmt7_hick.bin and b/bootloader/ArteryTek/cherryuf2_at32f437zmt7_hick.bin differ diff --git a/bootloader/HDSC/cherryuf2_hc32f460jeua.bin b/bootloader/HDSC/cherryuf2_hc32f460jeua.bin index 647d0d2..7ef1cd9 100644 Binary files a/bootloader/HDSC/cherryuf2_hc32f460jeua.bin and b/bootloader/HDSC/cherryuf2_hc32f460jeua.bin differ diff --git a/bootloader/ST/cherryuf2_stm32f072cbt6_hsi.bin b/bootloader/ST/cherryuf2_stm32f072cbt6_hsi.bin index c7d3498..6376c04 100644 Binary files a/bootloader/ST/cherryuf2_stm32f072cbt6_hsi.bin and b/bootloader/ST/cherryuf2_stm32f072cbt6_hsi.bin differ diff --git a/bootloader/ST/cherryuf2_stm32f103cbt6.bin b/bootloader/ST/cherryuf2_stm32f103cbt6.bin index 20b5a22..a009cc5 100644 Binary files a/bootloader/ST/cherryuf2_stm32f103cbt6.bin and b/bootloader/ST/cherryuf2_stm32f103cbt6.bin differ diff --git a/bootloader/ST/cherryuf2_stm32f401ccu6.bin b/bootloader/ST/cherryuf2_stm32f401ccu6.bin index a8fceec..2890312 100644 Binary files a/bootloader/ST/cherryuf2_stm32f401ccu6.bin and b/bootloader/ST/cherryuf2_stm32f401ccu6.bin differ diff --git a/bootloader/ST/cherryuf2_stm32f407zgt6.bin b/bootloader/ST/cherryuf2_stm32f407zgt6.bin index 99a34a9..ac21656 100644 Binary files a/bootloader/ST/cherryuf2_stm32f407zgt6.bin and b/bootloader/ST/cherryuf2_stm32f407zgt6.bin differ diff --git a/bootloader/ST/cherryuf2_stm32f411ceu6.bin b/bootloader/ST/cherryuf2_stm32f411ceu6.bin index d014bb2..05be1b5 100644 Binary files a/bootloader/ST/cherryuf2_stm32f411ceu6.bin and b/bootloader/ST/cherryuf2_stm32f411ceu6.bin differ diff --git a/bootloader/ST/cherryuf2_stm32g431cbu6_hsi.bin b/bootloader/ST/cherryuf2_stm32g431cbu6_hsi.bin index 21dd89b..3e40ebf 100644 Binary files a/bootloader/ST/cherryuf2_stm32g431cbu6_hsi.bin and b/bootloader/ST/cherryuf2_stm32g431cbu6_hsi.bin differ diff --git a/bootloader/ST/cherryuf2_stm32l433vct6_hsi.bin b/bootloader/ST/cherryuf2_stm32l433vct6_hsi.bin index d046034..6e308a7 100644 Binary files a/bootloader/ST/cherryuf2_stm32l433vct6_hsi.bin and b/bootloader/ST/cherryuf2_stm32l433vct6_hsi.bin differ diff --git a/bootloader/WCH/cherryuf2_ch32v307rct6.bin b/bootloader/WCH/cherryuf2_ch32v307rct6.bin index 3e3f952..d113524 100644 Binary files a/bootloader/WCH/cherryuf2_ch32v307rct6.bin and b/bootloader/WCH/cherryuf2_ch32v307rct6.bin differ diff --git a/bootloader/WCH/cherryuf2_ch582m.bin b/bootloader/WCH/cherryuf2_ch582m.bin index 09074df..24ccce8 100644 Binary files a/bootloader/WCH/cherryuf2_ch582m.bin and b/bootloader/WCH/cherryuf2_ch582m.bin differ diff --git a/ports/ArteryTek/at32f403a_407/board_flash.c b/ports/ArteryTek/at32f403a_407/board_flash.c index 6ce58a5..1e73967 100644 --- a/ports/ArteryTek/at32f403a_407/board_flash.c +++ b/ports/ArteryTek/at32f403a_407/board_flash.c @@ -70,7 +70,6 @@ static bool flash_erase(uint32_t addr) { } static void flash_write(uint32_t dst, const uint8_t *src, int len) { - if (dst < BOARD_FLASH_APP_START || dst > ) flash_erase(dst); for (int i = 0; i < len; i += 4) {