mirror of https://github.com/m-labs/artiq.git
artiq_flash: bail out if scan chain is wrong
Due to OpenOCD limitations, there currently doesn't seem to be a better way of doing it. Upstream patch may be coming.
This commit is contained in:
parent
4b1715c80b
commit
748e28be38
|
@ -118,7 +118,12 @@ class Programmer:
|
|||
"telnet_port disabled"
|
||||
] + preinit_script
|
||||
self._loaded = defaultdict(lambda: None)
|
||||
self._script = ["init"]
|
||||
self._script = [
|
||||
"set error_msg \"Trying to use configured scan chain anyway\"",
|
||||
"if {[string first $error_msg [capture \"init\"]] != -1} {",
|
||||
"puts \"Found error and exiting\"",
|
||||
"exit}"
|
||||
]
|
||||
|
||||
def _transfer_script(self, script):
|
||||
if isinstance(self._client, LocalClient):
|
||||
|
|
Loading…
Reference in New Issue