diff --git a/platform.py b/platform.py index 98459e3..653e4f2 100644 --- a/platform.py +++ b/platform.py @@ -151,7 +151,11 @@ def _add_default_debug_tools(self, board): else: openocd_chipname = debug.get("openocd_chipname") - assert openocd_chipname + + assert openocd_chipname, ( + "Missing openocd_chipname for %s" % board.id + ) + openocd_cmds = ["set CHIPNAME %s" % openocd_chipname] if link == "stlink" and "at91sam3" in openocd_chipname: openocd_cmds.append("set CPUTAPID 0x2ba01477")