Commit 7c522c97 authored by Hackenberg Stefan (IFAG DSS TI SWP NTV)'s avatar Hackenberg Stefan (IFAG DSS TI SWP NTV)
Browse files

Add openocd for MACOS

parent 8e55bf25
......@@ -107,6 +107,8 @@ AlwaysBuild(target_size)
if 'windows' in sys.platform:
uploader = join('$PIOPLATFORMDIR', 'openocd', 'bin', 'openocd.exe')
elif 'darwin' in sys.platform:
uploader = join('$PIOPLATFORMDIR', 'openocd', 'bin', 'openocd_mac')
else:
uploader = join('$PIOPLATFORMDIR', 'openocd', 'bin', 'openocd')
......
......@@ -11,6 +11,8 @@ class Cypress_psoc6Platform(PlatformBase):
def configure_debug_session(self, debug_config):
if 'windows' in sys.platform:
debug_config.server['executable'] = os.path.join(self.get_dir(), 'openocd', 'bin', 'openocd.exe')
elif 'darwin' in sys.platform:
debug_config.server['executable'] = os.path.join(self.get_dir(), 'openocd', 'bin', 'openocd_mac')
else:
debug_config.server['executable'] = os.path.join(self.get_dir(), 'openocd', 'bin', 'openocd')
debug_config.server['arguments'] = [
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment