changeset 982:1c5b485f10ba

fc-loadtool flash: do AMD reset after PL-J PPB write operations
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 02 Dec 2023 06:04:37 +0000
parents f21798eb13cf
children 0407d14fb854
files loadtools/flamdsec.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/loadtools/flamdsec.c	Sat Dec 02 05:46:00 2023 +0000
+++ b/loadtools/flamdsec.c	Sat Dec 02 06:04:37 2023 +0000
@@ -226,7 +226,7 @@
 			continue;
 		printf("PPB 0x%X programmed with %u pulse%s\n", sector_addr,
 			pulsecnt, pulsecnt > 1 ? "s" : "");
-		return(0);
+		return amd_reset_cmd(bi);
 	}
 	printf("PPB 0x%X programming FAILED, tried %u pulses\n", sector_addr,
 		pulsecnt);
@@ -295,7 +295,7 @@
 			continue;
 		printf("PPB erase cycle succeeded after %u pulse%s\n",
 			pulsecnt, pulsecnt > 1 ? "s" : "");
-		return(0);
+		return amd_reset_cmd(bi);
 	}
 	printf("PPB erase cycle FAILED, tried %u pulses\n", pulsecnt);
 	return(-1);