Skip to content

Commit 26cc310

Browse files
committed
commit icesprog v1.1b
1 parent 79aa508 commit 26cc310

3 files changed

Lines changed: 19 additions & 11 deletions

File tree

tools/icesprog.arm

4.06 KB
Binary file not shown.

tools/src/icesprog

4.06 KB
Binary file not shown.

tools/src/icesprog.c

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,10 @@ int icelink_flash_get_info(int verbose)
246246
if (verbose) { fprintf(stdout, "w25q128 (16MB)\n"); }
247247
flash_size = 16 * 1024 * 1024;
248248
break;
249+
case (0xEF4019):
250+
if (verbose) { fprintf(stdout, "w25q256 (32MB)\n"); }
251+
flash_size = 32 * 1024 * 1024;
252+
break;
249253
default:
250254
if (verbose) { fprintf(stdout, "unknown (??MB)\n"); }
251255
break;
@@ -668,16 +672,16 @@ int32_t icelink_jtag_select(int jtag_num)
668672
fprintf(stdout, "JTAG --> [JTAG-%d]\n", jtag_num);
669673
fputs (("\
670674
[JTAG-1] \n\
671-
TCK: iCELink-PB4 -- ECP5-JTAG-TCK (25F-BG256-T10) \n\
672-
TMS: iCELink-PA15 -- ECP5-JTAG-TMS (25F-BG256-T11) \n\
673-
TDI: iCELink-PB3 -- ECP5-JTAG-TDI (25F-BG256-R11) \n\
674-
TDO: iCELink-PB5 -- ECP5-JTAG-TDO (25F-BG256-M10) \n\
675+
TCK: iCELink-PB6 -- ECP5-JTAG-TCK (25F-BG256-T10) \n\
676+
TMS: iCELink-PB4 -- ECP5-JTAG-TMS (25F-BG256-T11) \n\
677+
TDI: iCELink-PB5 -- ECP5-JTAG-TDI (25F-BG256-R11) \n\
678+
TDO: iCELink-PB3 -- ECP5-JTAG-TDO (25F-BG256-M10) \n\
675679
\n\
676680
[JTAG-2] \n\
677-
TCK: iCELink-PB0 -- ECP5-IO-PL8D (25F-BG256-F5) \n\
678-
TMS: iCELink-PB1 -- ECP5-IO-PL17A (25F-BG256-H5) \n\
679-
TDI: iCELink-PB8 -- ECP5-IO-PL38A (25F-BG256-N4) \n\
680-
TDO: iCELink-PB9 -- ECP5-IO-PL17D (25F-BG256-J5) \n\n\
681+
TCK: iCELink-PA14 -- ECP5-IO-PL8D (25F-BG256-F5) \n\
682+
TMS: iCELink-PA13 -- ECP5-IO-PL17A (25F-BG256-H5) \n\
683+
TDI: iCELink-PA0 -- ECP5-IO-PL38A (25F-BG256-N4) \n\
684+
TDO: iCELink-PA1 -- ECP5-IO-PL17D (25F-BG256-J5) \n\n\
681685
"), stdout);
682686

683687
} else {
@@ -785,8 +789,8 @@ int32_t icelink_dump_board_info(uint32_t board_type, uint32_t flash_id)
785789
//fprintf(stdout, "flash id: 0x%x ", flash_id);
786790
switch (flash_id) {
787791
case (0xEF4015):
788-
fprintf(stdout, "flash: [w25q16] (4MB)\n");
789-
flash_size = 4 * 1024 * 1024;
792+
fprintf(stdout, "flash: [w25q16] (2MB)\n");
793+
flash_size = 2 * 1024 * 1024;
790794
break;
791795
case (0xEF4017):
792796
fprintf(stdout, "flash: [w25q64] (8MB)\n");
@@ -796,6 +800,10 @@ int32_t icelink_dump_board_info(uint32_t board_type, uint32_t flash_id)
796800
fprintf(stdout, "flash: [w25q128] (16MB)\n");
797801
flash_size = 16 * 1024 * 1024;
798802
break;
803+
case (0xEF4019):
804+
fprintf(stdout, "flash: [w25q256] (32MB)\n");
805+
flash_size = 32 * 1024 * 1024;
806+
break;
799807
default:
800808
fprintf(stdout, "flash: unknown flash id 0x%x (??MB)\n", flash_id);
801809
break;
@@ -849,7 +857,7 @@ void usage(char *program_name)
849857
-j | --jtag-sel jtag interface select (1 or 2) \n\
850858
-c | --clk-sel clk source select (1 to 4) \n\
851859
-h | --help display help info \n\n\
852-
-- version 1.1a --\n\
860+
-- version 1.1b --\n\
853861
"), stdout);
854862
exit(0);
855863
}

0 commit comments

Comments
 (0)