[M2351] Fix target configuration

1. NUMAKER_PFM_M2351 defaults to non-secure
2. Add NUMAKER_PFM_M2351_S/NUMAKER_PFM_M2351_NS which are for secure/non-secure build respectively.
3. Change output format to Intel HEX
4. Fix device name to M2351KIAAEES from M2351K1AAEES
5. Add detect_code
pull/7302/head
ccli8 2018-03-14 14:45:58 +08:00
parent 0c3f0f7cb7
commit a3846932a6
1 changed files with 13 additions and 3 deletions

View File

@ -4220,14 +4220,24 @@
"macros": ["CMSDK_CM7"]
},
"NUMAKER_PFM_M2351": {
"core": "Cortex-M23",
"core": "Cortex-M23-NS",
"default_toolchain": "GCC_ARM",
"extra_labels": ["NUVOTON", "M2351", "M2351K1AAEES"],
"extra_labels": ["NUVOTON", "M2351", "M2351KIAAEES"],
"OUTPUT_EXT": "hex",
"macros": ["MBED_FAULT_HANDLER_DISABLED"],
"is_disk_virtual": true,
"supported_toolchains": ["GCC_ARM", "IAR", "ARMC6"],
"inherits": ["Target"],
"device_has": ["LOWPOWERTIMER", "RTC", "INTERRUPTIN","PORTIN", "PORTINOUT", "PORTOUT", "SERIAL","SERIAL_ASYNCH", "SERIAL_FC", "STDIO_MESSAGES", "SLEEP"],
"device_has": ["LOWPOWERTIMER", "RTC", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "SERIAL", "SERIAL_ASYNCH", "SERIAL_FC", "STDIO_MESSAGES", "SLEEP"],
"detect_code": ["1305"],
"release_versions": ["5"]
},
"NUMAKER_PFM_M2351_S": {
"core": "Cortex-M23",
"inherits": ["NUMAKER_PFM_M2351"]
},
"NUMAKER_PFM_M2351_NS": {
"core": "Cortex-M23-NS",
"inherits": ["NUMAKER_PFM_M2351"]
}
}