From 50f6870868ce1f8aecfa21388cc57e55dbd4fa2a Mon Sep 17 00:00:00 2001 From: ccli8 Date: Mon, 1 Apr 2019 15:40:58 +0800 Subject: [PATCH] [Nuvoton] Support export IAR8 project 1. Override IlinkOverrideProgramEntryLabel and IlinkProgramEntryLabel to specify entry point for debuger. 2. Refer to doc at the link below for post-export steps. Usually, 'export' is nearly out of the box and just install 'Nu-Link Driver (IAR)' to update Nuvoton device database in IAR. https://github.com/OpenNuvoton/NuMaker-mbed-docs/blob/master/IAR/DEBUG_IAR.md --- tools/export/iar/__init__.py | 2 ++ tools/export/iar/ewp.tmpl | 4 ++-- tools/export/iar/iar_definitions.json | 20 ++++++++++++++++++-- 3 files changed, 22 insertions(+), 4 deletions(-) diff --git a/tools/export/iar/__init__.py b/tools/export/iar/__init__.py index 5788e3fbee..17834b299a 100644 --- a/tools/export/iar/__init__.py +++ b/tools/export/iar/__init__.py @@ -88,6 +88,8 @@ class IAR(Exporter): "CMSISDAPJtagSpeedList": 0, "DSPExtension": 0, "TrustZone": 0, + "IlinkOverrideProgramEntryLabel": 0, + "IlinkProgramEntryLabel": "__iar_program_start", } iar_defaults.update(device_info) IARdevice = namedtuple('IARdevice', iar_defaults.keys()) diff --git a/tools/export/iar/ewp.tmpl b/tools/export/iar/ewp.tmpl index add65d47a7..4f5a6e304b 100644 --- a/tools/export/iar/ewp.tmpl +++ b/tools/export/iar/ewp.tmpl @@ -824,7 +824,7 @@