Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Peter Hüwe
platformio-cypress_psco6
Commits
7c522c97
Commit
7c522c97
authored
Sep 29, 2021
by
Hackenberg Stefan (IFAG DSS TI SWP NTV)
Browse files
Add openocd for MACOS
parent
8e55bf25
Changes
4
Hide whitespace changes
Inline
Side-by-side
builder/main.py
View file @
7c522c97
...
...
@@ -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'
)
...
...
openocd/bin/libusb-1.0.0.dylib
0 → 100644
View file @
7c522c97
File added
openocd/bin/openocd_mac
0 → 100644
View file @
7c522c97
File added
platform.py
View file @
7c522c97
...
...
@@ -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'
]
=
[
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment