微處理器 - Altera 10M02SCM (STEP-MAX10 V1) - 解決JTAG init failed with: Unknown device with IDCODE問題



問題如下:

$ openFPGALoader -c usb-blaster main.svf
    JTAG init failed with: Unknown device with IDCODE: 0x00000101 (manufacturer: 0x080 (), part: 0x00 vers: 0x0

解法如下:

diff --git a/src/part.hpp b/src/part.hpp
index d8cd368..511422f 100644
--- a/src/part.hpp
+++ b/src/part.hpp
@@ -208,6 +208,7 @@ static std::map <uint32_t, fpga_model> fpga_list = {
        {0x031050dd, {"altera", "MAX 10", "10M50DAF484",       10}},
        {0x0318d0dd, {"altera", "MAX 10", "10M40SCE144C8G",    10}},
        {0x031830dd, {"altera", "MAX 10", "10M16SAU169C8G",    10}},
+       {0x031810dd, {"altera", "MAX 10", "10M02SCM153C8G",    10}},
 
        /* Altera Cyclone 10 */
        {0x020f30dd, {"altera", "cyclone 10 LP", "10CL025", 10}},