Skip to content

Update mbed_targets.md #37

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 10, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions docs/advanced/mbed_targets.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,7 @@ The hook code can look quite different for different targets. Take a look at the

## device_name

Passes necessary data for exporting the mbed code to various third party tools and IDEs.
This property is used to pass necessary data for exporting the mbed code to various third party tools and IDEs.

This is possible because the device name corresponds to a field in publicly hosted CMSIS packs. These packs hold target properties. [This](http://www.keil.com/pack/Keil.Kinetis_K20_DFP.pdsc) is the PDSC that contains the TEENSY_31 device (MK20DX256xxx7). The device information begins on line 156. The dname (device name) field on line 156 directly corresponds to that in the Uvision5 IDE target selection window. Beginning on line 15 of `tools/export/uvision/uvision.tmpl`, target information from these packs is used to generate valid Uvision5 projects. If the device name is not found, we use a generic ARM CPU target in Uvision5.

`tools/export/iar/iar_definitions.json` uses this device name to store information necessary to set the target in an IAR project.
Please see [exporters.md](exporters.md) for information about this field.