diff --git a/Cargo.lock b/Cargo.lock index 7c66125..9229fd1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -210,7 +210,7 @@ checksum = "b16bd47d9e329435e309c58469fe0791c2d0d1ba96ec0954152a5ae2b04387dc" [[package]] name = "nu-isp" -version = "0.7.0" +version = "0.7.1" dependencies = [ "hidapi", "log", @@ -218,7 +218,7 @@ dependencies = [ [[package]] name = "nu-isp-cli" -version = "0.7.0" +version = "0.7.1" dependencies = [ "atty", "clap", diff --git a/README.md b/README.md index 7640b16..ac0680e 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,9 @@ ## [nu-isp](./nu-isp/README.md) ## ChangeLog +### v0.7.1 +- add M032 series and NUC029 variants to part list + ### v0.7.0 - suppress untrue error message at the end - add all of NUC123 and NUC126 variants to part list diff --git a/nu-isp-cli/Cargo.toml b/nu-isp-cli/Cargo.toml index d7f219e..c62d7ed 100644 --- a/nu-isp-cli/Cargo.toml +++ b/nu-isp-cli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "nu-isp-cli" -version = "0.7.0" +version = "0.7.1" authors = ["Ein Terakawa "] edition = "2018" description = "CLI tool for Nuvoton ISP_HID Bootloaders" @@ -11,7 +11,7 @@ license = "MIT OR Apache-2.0" readme = "README.md" [dependencies.nu-isp] -version = "0.7.0" +version = "0.7.1" path = "../nu-isp" [dependencies] diff --git a/nu-isp-cli/README.md b/nu-isp-cli/README.md index c5a6d2f..26163c7 100644 --- a/nu-isp-cli/README.md +++ b/nu-isp-cli/README.md @@ -14,7 +14,7 @@ No special preparaiton needed. Install it, and it just works. ### linux -You'll need libusb. Depending on your distribution, you might need to `sudo apt-get install libudev-dev libusb-1.0-0-dev`. +You'll need libusb. Depending on your distribution, you might need to `sudo apt-get install libusb-1.0-0-dev pkg-config`. If you'd like not to use sudo everytime, you'll need udev rules. With your board plugged in and in bootloader mode, use `lsusb` to find its vendor-id and product-id, seen here as 0416:a316. @@ -43,7 +43,7 @@ Then replug your board and let it into bootloader mode again. ```bash $ nu-isp-cli Nuvoton NuMicro ISP_HID Programming Tool [unofficial] -Version 0.7.0 +Version 0.7.1 Quick Reference: @@ -82,5 +82,5 @@ $ nu-isp-cli firmware.elf ## supported chips -Currently it is only tested with NUC123 and NUC126 but it should work with many other chips with conformant bootloaders. +It is tested with NUC123 , NUC126 , NUC029 and M032 series. and it should work with many other chips as long as their bootloaders are compatible. I'll happily add new chips to the list upon your report confirming its correct operation. diff --git a/nu-isp/Cargo.toml b/nu-isp/Cargo.toml index 5142bf4..61ed90c 100644 --- a/nu-isp/Cargo.toml +++ b/nu-isp/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "nu-isp" -version = "0.7.0" +version = "0.7.1" authors = ["Ein Terakawa "] edition = "2018" description = "Nuvoton ISP_HID protocol library" diff --git a/nu-isp/src/lib.rs b/nu-isp/src/lib.rs index 526e1a3..05deec8 100644 --- a/nu-isp/src/lib.rs +++ b/nu-isp/src/lib.rs @@ -43,8 +43,26 @@ pub fn get_partinfo(pdid: u32) -> Option { NUC126KG4AE { 0x00C05230, 256*1024 }, /* NUC029 */ NUC029LGE { 0x00295C50, 256*1024 }, - /* NuMicro M0-family */ + NUC029SGE { 0x00295C51, 256*1024 }, + NUC029KGE { 0x00295C52, 256*1024 }, + /* M032 */ + M032FC1AE { 0x01132CB0, 32*1024 }, + M032EC1AE { 0x01132CA0, 32*1024 }, + M032TC1AE { 0x01132CE0, 32*1024 }, + M032TC2AE { 0x01132DE1, 32*1024 }, + M032TD2AE { 0x01132DE0, 64*1024 }, + M032LC2AE { 0x01132D01, 32*1024 }, + M032LD2AE { 0x01132D00, 64*1024 }, + M032LE3AE { 0x01132E00, 128*1024 }, + M032LG6AE { 0x01132601, 256*1024 }, + M032LG8AE { 0x01132600, 256*1024 }, M032SE3AE { 0x01132E10, 128*1024 }, + M032SG6AE { 0x01132611, 256*1024 }, + M032SG8AE { 0x01132610, 256*1024 }, + M032SIAAE { 0x01132110, 512*1024 }, + M032KG6AE { 0x01132641, 256*1024 }, + M032KG8AE { 0x01132640, 256*1024 }, + M032KIAAE { 0x01132140, 512*1024 }, }; pdid_map(pdid) }