Add scratchmonkey programmers

This commit is contained in:
Stefan Rueger
2023-06-23 16:18:55 +01:00
parent 114d48c3da
commit 7ecce8588d
2 changed files with 6 additions and 3 deletions

View File

@@ -1414,7 +1414,7 @@ programmer
#------------------------------------------------------------
programmer
id = "stk500v2";
id = "stk500v2", "scratchmonkey";
desc = "Atmel STK500 version 2.x firmware";
type = "stk500v2";
prog_modes = PM_TPI | PM_ISP;
@@ -1427,7 +1427,7 @@ programmer
#------------------------------------------------------------
programmer
id = "stk500pp";
id = "stk500pp", "scratchmonkey_pp";
desc = "Atmel STK500 v2 in parallel programming mode";
type = "stk500pp";
prog_modes = PM_HVPP;
@@ -1440,7 +1440,7 @@ programmer
#------------------------------------------------------------
programmer
id = "stk500hvsp";
id = "stk500hvsp", "scratchmonkey_hvsp";
desc = "Atmel STK500 v2 in high-voltage serial programming mode";
type = "stk500hvsp";
prog_modes = PM_HVSP;

View File

@@ -755,6 +755,9 @@ retry:
if (siglen >= strlen("STK500_2") &&
memcmp(resp + 3, "STK500_2", strlen("STK500_2")) == 0) {
PDATA(pgm)->pgmtype = PGMTYPE_STK500;
} else if (siglen >= strlen("SCRATCHMONKEY") &&
memcmp(resp + 3, "SCRATCHMONKEY", strlen("SCRATCHMONKEY")) == 0) {
PDATA(pgm)->pgmtype = PGMTYPE_STK500;
} else if (siglen >= strlen("AVRISP_2") &&
memcmp(resp + 3, "AVRISP_2", strlen("AVRISP_2")) == 0) {
PDATA(pgm)->pgmtype = PGMTYPE_AVRISP;