diff --git a/tools/export/cdt/__init__.py b/tools/export/cdt/__init__.py index fa51a1efe9..7319ce99eb 100644 --- a/tools/export/cdt/__init__.py +++ b/tools/export/cdt/__init__.py @@ -46,7 +46,8 @@ class Eclipse(Makefile): def generate(self): """Generate Makefile, .cproject & .project Eclipse project file, - py_ocd_settings launch file, and software link .p2f file + pyocd_settings launch files for both GNU ARM Eclipse and + GNU MCU Eclipse plug-ins, and software link .p2f file """ super(Eclipse, self).generate() starting_dot = re.compile(r'(^[.]/|^[.]$)') @@ -69,12 +70,19 @@ class Eclipse(Makefile): makedirs(join(self.export_dir,'eclipse-extras')) for launch_name, ctx in launch_cfgs.items(): - self.gen_file('cdt/%s' % 'pyocd_settings.tmpl', ctx, join('eclipse-extras', + # Generate launch configurations for former GNU ARM Eclipse plug-in + self.gen_file('cdt/%s' % 'pyocd_settings_gnu_arm.tmpl', ctx, join('eclipse-extras', '{target}_{project}_{conf}_{launch}.launch'.format( target=self.target, project=self.project_name, conf=launch_name, launch='pyocd_settings'))) + # Generate launch configurations for GNU MCU Eclipse plug-in + self.gen_file('cdt/%s' % 'pyocd_settings_gnu_mcu.tmpl', ctx, join('eclipse-extras', + '{target}_{project}_{conf}.launch'.format( + target=self.target, + project=self.project_name, + conf=launch_name))) self.gen_file('cdt/necessary_software.tmpl', ctx, join('eclipse-extras','necessary_software.p2f')) diff --git a/tools/export/cdt/cdt_definitions.json b/tools/export/cdt/cdt_definitions.json index 112d09adf7..cfd8a02cb4 100644 --- a/tools/export/cdt/cdt_definitions.json +++ b/tools/export/cdt/cdt_definitions.json @@ -42,13 +42,11 @@ "doFirstReset": "false", "doGdbServerAllocateSemihostingConsole": "false", "enableSemihosting": "false", - "firstResetType": "", "gdbServerEnableSemihosting": "false", "gdbServerFlashMode": 2, "gdbServerGdbPortNumber": 3334, "gdbServerHaltAtHardFault": "false", "gdbServerOther": "-p 3333 --no-deprecation-warning", - "secondResetType": "", "corePortNumber": 3334 }, diff --git a/tools/export/cdt/pyocd_settings.tmpl b/tools/export/cdt/pyocd_settings_gnu_arm.tmpl similarity index 100% rename from tools/export/cdt/pyocd_settings.tmpl rename to tools/export/cdt/pyocd_settings_gnu_arm.tmpl diff --git a/tools/export/cdt/pyocd_settings_gnu_mcu.tmpl b/tools/export/cdt/pyocd_settings_gnu_mcu.tmpl new file mode 100644 index 0000000000..689b3e1377 --- /dev/null +++ b/tools/export/cdt/pyocd_settings_gnu_mcu.tmpl @@ -0,0 +1,69 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +