scripts: west runners: ST-LINK GDB Server: add external-init cmd

When debugging boards with external Flash, to make it accessible for
read and write by the debugger, we need the --external-init option
together with --extload <file_path> option.
It allows the ST-LINK GDB server to make external memory accessible
after reset without any need for the app to set it up.
The external memory must be memory mapped and directly accessed because
normal memory read/write is used by gdb.

Signed-off-by: Abderrahmane JARMOUNI <git@jarmouni.me>
1 file changed