@@ -213,7 +213,7 @@ def _jlink_cmd_script(env, source):
213213 vid = hwids [0 ][0 ]
214214 pid = hwids [0 ][1 ]
215215
216- if env .subst ("$BOARD" ).startswith (("portenta" , "opta" , "nicla" )):
216+ if env .subst ("$BOARD" ).startswith (("portenta" , "opta" , "nicla" , "giga" )):
217217 _upload_tool = '"%s"' % join (platform .get_package_dir (
218218 "tool-dfuutil-arduino" ) or "" , "dfu-util" )
219219 else :
@@ -230,7 +230,7 @@ def _jlink_cmd_script(env, source):
230230 upload_actions = [env .VerboseAction ("$UPLOADCMD" , "Uploading $SOURCE" )]
231231
232232 if "arduino" in frameworks :
233- if env .subst ("$BOARD" ).startswith (("portenta" , "opta" , "nicla" )):
233+ if env .subst ("$BOARD" ).startswith (("portenta" , "opta" , "nicla" , "giga" )):
234234 upload_actions .insert (
235235 0 ,
236236 env .VerboseAction (BeforeUpload , "Looking for upload port..." )
@@ -255,7 +255,7 @@ def __configure_upload_port(env):
255255 "Looking for upload port..." ))
256256
257257 if "dfu-util" in _upload_tool :
258- if not env .subst ("$BOARD" ).startswith (("portenta" , "opta" , "nicla" )):
258+ if not env .subst ("$BOARD" ).startswith (("portenta" , "opta" , "nicla" , "giga" )):
259259 # Add special DFU header to the binary image
260260 env .AddPostAction (
261261 join ("$BUILD_DIR" , "${PROGNAME}.bin" ),
0 commit comments