Open thegecko opened 5 years ago
There is a known issue with some versions of STLinkV2 where the strings are invalid Unicode. This is described by comments in #607. Previously I created #613 based on a report from your team (the log looks almost exactly the same as this one). I thought it was fixed with this code to catch a UnicodeDecodeError
. But apparently that doesn't catch all cases?
Not all boards this error is seen on are st boards. Would having an st board being plugged in be enough to cause this?
OS: MacOS 10.12.16 pyOCD: 0.21.0 Devices: nRF51-DK, F042k6, Disco-L475, Nucleo-F446, etc.
When multiple devices are connected, the
uid
switch needs to be provided in order to target the correct device during a flash operation. e.g.:This can often fail with the following error:
When this happens, the device is left in an odd state and can only be recovered by flashing without the
uid
switch (and other devices disconnected so it becomes the default) or by using mass storage device flash.