tcl/target: fix rp2040-core0.cfg work area backup.
commit9d5f833fbd47a5a0631fa1f6f1734f277fdde342
authorTomas Vanek <vanekt@fbl.cz>
Tue, 11 Oct 2022 17:04:15 +0000 (11 19:04 +0200)
committerTomas Vanek <vanekt@fbl.cz>
Wed, 12 Oct 2022 11:12:09 +0000 (12 11:12 +0000)
tree19b508a599495184d7e391c0d3b7b8e4fee0f9d3
parentdc6cad855d1557e01437ba777b55ad023ddd04ef
tcl/target: fix rp2040-core0.cfg work area backup.

The work area should be backed up.
The flash probe runs an algorithm on the target CPU.
The flash is probed during gdb connect if gdb_memory_map is enabled
(is enabled by default).
Without backup the target memory gets corrupted on gdb connect.

Change-Id: I3344b9dc6cbf904d49f3b05ab104b541d1d63422
Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-on: https://review.openocd.org/c/openocd/+/7257
Tested-by: jenkins
Reviewed-by: Jonathan Bell <jonathan@raspberrypi.com>
tcl/target/rp2040-core0.cfg