{"action":"created","issue":{"url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/2708","repository_url":"https://api.github.com/repos/ARMmbed/mbed-os","labels_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/2708/labels{/name}","comments_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/2708/comments","events_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/2708/events","html_url":"https://github.com/ARMmbed/mbed-os/pull/2708","id":176950955,"number":2708,"title":"[Exporters] Refactor Uvision and IAR and initial support of CMSIS projects","user":{"login":"sarahmarshy","id":12565767,"avatar_url":"https://avatars.githubusercontent.com/u/12565767?v=3","gravatar_id":"","url":"https://api.github.com/users/sarahmarshy","html_url":"https://github.com/sarahmarshy","followers_url":"https://api.github.com/users/sarahmarshy/followers","following_url":"https://api.github.com/users/sarahmarshy/following{/other_user}","gists_url":"https://api.github.com/users/sarahmarshy/gists{/gist_id}","starred_url":"https://api.github.com/users/sarahmarshy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sarahmarshy/subscriptions","organizations_url":"https://api.github.com/users/sarahmarshy/orgs","repos_url":"https://api.github.com/users/sarahmarshy/repos","events_url":"https://api.github.com/users/sarahmarshy/events{/privacy}","received_events_url":"https://api.github.com/users/sarahmarshy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ARMmbed/mbed-os/labels/needs:%20work","name":"needs: work","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":21,"created_at":"2016-09-14T16:11:13Z","updated_at":"2016-09-26T18:40:17Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ARMmbed/mbed-os/pulls/2708","html_url":"https://github.com/ARMmbed/mbed-os/pull/2708","diff_url":"https://github.com/ARMmbed/mbed-os/pull/2708.diff","patch_url":"https://github.com/ARMmbed/mbed-os/pull/2708.patch"},"body":"## Description\r\n\r\n**Exporters**\r\nThis PR removes the dependencies on progen and progen definitions. Instead, target information necessary for uvision project files is retrieved from CMSIS packs using the device name (which has been added to targets.json) and @theotherjimmy's arm pack manager. Arm pack manager has been moved to mbed tools, and you can view the history in the commits of this PR.\r\n\r\nIAR continues to require magic strings, but they are now stored in iar_definitions.json in tools/export/iar. The definitions are indexed by the same device name found in targets.json.\r\n\r\nPreferred debugger is set per vendor, as found in the CMSIS pack. \r\n\r\nUvision4 support has been removed.\r\n\r\nIn addition, the ability to export to a .cpdsc CMSIS project has been added (http://arm-software.github.io/CMSIS_5/Pack/html/cpdsc_pg.html). You can open this file in Uvision to see a project. but it will not build as Keil has not implemented specification of macros and scatter files. This is under active development. \r\n\r\n**Build tests**\r\nExport-build test now exports projects in parallel. It is also capable of testing the export of mbed-os tests. They can be found in the mbed-os/TESTS. The targets and tests are by default those from the latest release, though you can specify previous releases. \r\n\r\n\r\n## Status\r\n**READY**\r\n\r\n\r\n## Todos\r\n- [ ] Tests\r\n- [x] Documentation\r\n\r\n\r\n## Steps to test or reproduce\r\n**To export**\r\n```mbed export -m k64f -i uvision5```\r\n```mbed export -m k64f -i iar```\r\n```mbed export -m k64f -i cmsis```\r\n\r\n**To run build tests**\r\nPlease add UV4.exe and IarBuild.exe to your path.\r\nOn Windows:\r\nUV4 is usually found in:\r\n C:\\Keil_v5\\UV4\\UV4.exe\r\n\r\nIarBuild is usually found in:\r\n C:\\Program Files (x86)\\IAR Systems\\Embedded Workbench 7.x\\common\\bin\\IarBuild.exe\r\n\r\n\r\n```python tools/test/export/build_test.py --release 2 -n MBED_BLINKY``` (blinky is default for release 2)\r\n```python tools/test/export/build_test.py --release 5 -os-tests tests-mbedmicro-rtos-mbed-basic``` (though 5 is default release, and this basic test is the default test for release 5)\r\n\r\n@sg- @theotherjimmy @0xc0170 @screamerbg \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/comments/249658692","html_url":"https://github.com/ARMmbed/mbed-os/pull/2708#issuecomment-249658692","issue_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/2708","id":249658692,"user":{"login":"sarahmarshy","id":12565767,"avatar_url":"https://avatars.githubusercontent.com/u/12565767?v=3","gravatar_id":"","url":"https://api.github.com/users/sarahmarshy","html_url":"https://github.com/sarahmarshy","followers_url":"https://api.github.com/users/sarahmarshy/followers","following_url":"https://api.github.com/users/sarahmarshy/following{/other_user}","gists_url":"https://api.github.com/users/sarahmarshy/gists{/gist_id}","starred_url":"https://api.github.com/users/sarahmarshy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sarahmarshy/subscriptions","organizations_url":"https://api.github.com/users/sarahmarshy/orgs","repos_url":"https://api.github.com/users/sarahmarshy/repos","events_url":"https://api.github.com/users/sarahmarshy/events{/privacy}","received_events_url":"https://api.github.com/users/sarahmarshy/received_events","type":"User","site_admin":false},"created_at":"2016-09-26T18:40:17Z","updated_at":"2016-09-26T18:40:17Z","body":"/morph export-build"}}
{"actor":{"display_login":"sarahmarshy"}}