scripts: jlink: Don't reset after load

The mimxrt1052 does not have any internal flash, therefore a reset after
load blows away the code when loaded into sram. Reverse the order of the
jlink commands such that the load follows the reset.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
This commit is contained in:
Maureen Helm 2017-08-18 09:42:54 -05:00 committed by Kumar Gala
parent ec11279645
commit 2358df2647

View file

@ -103,7 +103,7 @@ class JLinkBinaryRunner(ZephyrBinaryRunner):
[self.elf_name] +
['-ex', 'target remote :{}'.format(self.gdb_port),
'-ex', 'monitor halt',
'-ex', 'load',
'-ex', 'monitor reset'])
'-ex', 'monitor reset',
'-ex', 'load'])
self.print_gdbserver_message()
self.run_server_and_client(server_cmd, client_cmd)