diff options
author | Tomas Vanek <vanekt@fbl.cz> | 2018-02-15 02:29:56 +0100 |
---|---|---|
committer | Matthias Welwarsky <matthias@welwarsky.de> | 2018-03-30 10:13:09 +0100 |
commit | f035b0851bbc6a9ccc2b20128ae2e4d3abd9ba38 (patch) | |
tree | 3b4d42087195b5b9a7c1815994d1e3f0cc235986 /src/openocd.c | |
parent | 38607b2e560fc4d9a24e594fc0bdd66d574faea9 (diff) | |
download | riscv-openocd-f035b0851bbc6a9ccc2b20128ae2e4d3abd9ba38.zip riscv-openocd-f035b0851bbc6a9ccc2b20128ae2e4d3abd9ba38.tar.gz riscv-openocd-f035b0851bbc6a9ccc2b20128ae2e4d3abd9ba38.tar.bz2 |
flash/nor: implement flash bank deallocation on OpenOCD exit
Change-Id: I8fcf09b2a85b3b68743f5fd68a31edea933b9b17
Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-on: http://openocd.zylin.com/4414
Tested-by: jenkins
Reviewed-by: Matthias Welwarsky <matthias@welwarsky.de>
Diffstat (limited to 'src/openocd.c')
-rw-r--r-- | src/openocd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/openocd.c b/src/openocd.c index bd52f4a..1874530 100644 --- a/src/openocd.c +++ b/src/openocd.c @@ -353,6 +353,7 @@ int openocd_main(int argc, char *argv[]) /* Start the executable meat that can evolve into thread in future. */ ret = openocd_thread(argc, argv, cmd_ctx); + flash_free_all_banks(); gdb_service_free(); server_free(); |