Skip to content

[Exporters] Add core to uvision exporter template #3661

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
Feb 2, 2017

Conversation

theotherjimmy
Copy link
Contributor

Add the correct output to the Core tag of Target Options within the
Uvision project file template

READY

ARMmbed/mbed-cli#427

  • Tests - /morph export-build

@theotherjimmy
Copy link
Contributor Author

/morph export-build

@theotherjimmy
Copy link
Contributor Author

@michaelVisimid Could you review if you get the chance?

Copy link

@michaelVisimid michaelVisimid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@mbed-bot
Copy link

Result: FAILURE

Your command has finished executing! Here's what you wrote!

/morph export-build

Output

mbed Build Number: 97

Exporter Build failed!

@bridadan
Copy link
Contributor

It mostly worked! The problem is it doesn't seem to work for Cortex-M7 targets.

@michaelVisimid
Copy link

michaelVisimid commented Jan 30, 2017

I would suspect that was why it was removed in the first place.

To clarify when using the out of date exporter from the mbed online compiler it generates this line:

<Cpu>IRAM(0x20000000,0x00005000) IROM(0x08000000,0x00030000) CPUTYPE("Cortex-M0+") CLOCK(8000000) ELITTLE</Cpu>

@0xc0170
Copy link
Contributor

0xc0170 commented Jan 31, 2017

I suspect is because M7F is not correct (looking at the failures). It should help if we strip F. I checked, if you choose M4 with floating point, CPU is M4, fpu is a separate setting, and in this case for M7 it would be dp vs sp.

@bridadan
Copy link
Contributor

/morph export-build

@mbed-bot
Copy link

Result: FAILURE

Your command has finished executing! Here's what you wrote!

/morph export-build

Output

mbed Build Number: 99

Exporter Build failed!

@theotherjimmy
Copy link
Contributor Author

Whoops my bad

@theotherjimmy
Copy link
Contributor Author

/morph export-build

@mbed-bot
Copy link

Result: FAILURE

Your command has finished executing! Here's what you wrote!

/morph export-build

Output

mbed Build Number: 100

Exporter Build failed!

@theotherjimmy
Copy link
Contributor Author

Now for double floats. I'm going to squash in the process. no need for 3 commits for ~5 lines changed.

@theotherjimmy theotherjimmy force-pushed the uvision-add-cpu branch 2 times, most recently from d1107e4 to 9c87b31 Compare January 31, 2017 18:18
Strip trailing F's and D's off of the Cputype in uvision
@theotherjimmy
Copy link
Contributor Author

/morph export-build

@mbed-bot
Copy link

Result: SUCCESS

Your command has finished executing! Here's what you wrote!

/morph export-build

Output

mbed Build Number: 101

All exports and builds passed!

Copy link
Contributor

@sarahmarshy sarahmarshy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Should we use it for this section as well? https://github.com/ARMmbed/mbed-os/blob/master/tools/export/uvision/uvision.tmpl#L216. Yours is a more transparent solution.

@theotherjimmy
Copy link
Contributor Author

@sarahmarshy What does transparent mean in this context?

@sarahmarshy
Copy link
Contributor

sarahmarshy commented Feb 1, 2017

@theotherjimmy Logic is not hidden in the template file.

@sg- sg- merged commit 7083dc5 into ARMmbed:master Feb 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants