[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
pull/10282/head
ccli8 2019-04-01 15:40:58 +08:00
parent 594a1d180b
commit 50f6870868
3 changed files with 22 additions and 4 deletions

View File

@ -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())

View File

@ -824,7 +824,7 @@
</option>
<option>
<name>IlinkOverrideProgramEntryLabel</name>
<state>0</state>
<state>{{device.IlinkOverrideProgramEntryLabel}}</state>
</option>
<option>
<name>IlinkProgramEntryLabelSelect</name>
@ -832,7 +832,7 @@
</option>
<option>
<name>IlinkProgramEntryLabel</name>
<state>__iar_program_start</state>
<state>{{device.IlinkProgramEntryLabel}}</state>
</option>
<option>
<name>DoFill</name>

View File

@ -255,11 +255,25 @@
"NCS36510":{
"OGChipSelectEditMenu": "NCS36510\tONSemiconductor NCS36510"
},
"NANO130KE3BN": {
"OGChipSelectEditMenu": "Nano100BN series\tNuvoton Nano100BN series (Nano100BN,Nano110BN,Nano120BN,Nano130BN)",
"IlinkOverrideProgramEntryLabel": 1,
"IlinkProgramEntryLabel": "Reset_Handler"
},
"NUC472HI8AE": {
"OGChipSelectEditMenu": "NUC472HI8AE\tNuvoton NUC472HI8AE"
"OGChipSelectEditMenu": "NUC400AE series\tNuvoton NUC400AE series (NUC442AE,NUC472AE)",
"IlinkOverrideProgramEntryLabel": 1,
"IlinkProgramEntryLabel": "Reset_Handler"
},
"M453VG6AE": {
"OGChipSelectEditMenu": "M453VG6AE\tNuvoton M453VG6AE"
"OGChipSelectEditMenu": "M451AE series\tNuvoton M451AE series (M451AE,M452AE,M453AE,M451MAE)",
"IlinkOverrideProgramEntryLabel": 1,
"IlinkProgramEntryLabel": "Reset_Handler"
},
"M487JIDAE": {
"OGChipSelectEditMenu": "M481AE series\tNuvoton M480AE series (M481AE,M482AE,M483AE,M484AE,M485AE,M487AE)",
"IlinkOverrideProgramEntryLabel": 1,
"IlinkProgramEntryLabel": "Reset_Handler"
},
"nRF52840_xxAA":{
"OGChipSelectEditMenu": "nRF52840_xxAA\tNordicSemi nRF52840_xxAA",
@ -344,6 +358,8 @@
},
"M2351KIAAEES": {
"OGChipSelectEditMenu": "M2351 series\tNuvoton M2351 series",
"IlinkOverrideProgramEntryLabel": 1,
"IlinkProgramEntryLabel": "Reset_Handler",
"TrustZone": 1
}
}