Skip to content
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

Deduplicate IAR exporter templates and enable a few more targets #3413

Merged
merged 4 commits into from
Dec 15, 2016

Conversation

theotherjimmy
Copy link
Contributor

@theotherjimmy theotherjimmy commented Dec 9, 2016

Description

Fixes a typo in the IAR definitions dict. should resolve #3412

Status

READY

Todos

  • export-build CI

Steps to test or reproduce

mbed export -i iar -m nucleo_f746zg from any mbed project would tell you it's not supported, when it could have been.

@adustm
Copy link
Member

adustm commented Dec 9, 2016

Hi @theotherjimmy
great, thanks ! Can you also upcase "stm32f746ng" "stm32l476vg" and "stm32l476rg" ?

Then I will close the other issue.

@theotherjimmy
Copy link
Contributor Author

Yes. Could you point me at those issues?

@theotherjimmy
Copy link
Contributor Author

@adustm That should do it

@theotherjimmy
Copy link
Contributor Author

/morph export-build

@mbed-bot
Copy link

mbed-bot commented Dec 9, 2016

Result: FAILURE

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

/morph export-build

Output

mbed Build Number: 48

Exporter Build failed!

@theotherjimmy
Copy link
Contributor Author

looks like the F746ZG does not like being built under IAR's builder.

@adustm
Copy link
Member

adustm commented Dec 12, 2016

Hello,
Have you detected the build error origin ? (I can't read continuous integration reports...)
It used to build before this change...

@theotherjimmy
Copy link
Contributor Author

11:58:31 C:\Jenkins\workspace\bm_wrap\1238\examples\mbed-os-example-sockets\mbed-os\rtos\rtx\TARGET_CORTEX_M\TARGET_RTOS_M4_M7\TOOLCHAIN_IAR\HAL_CM4.S(193) : Error[438]: This instruction is not available in the selected cpu/core

11:58:31 C:\Jenkins\workspace\bm_wrap\1238\examples\mbed-os-example-sockets\mbed-os\rtos\rtx\TARGET_CORTEX_M\TARGET_RTOS_M4_M7\TOOLCHAIN_IAR\HAL_CM4.S(222) : Error[438]: This instruction is not available in the selected cpu/core

11:58:31 C:\Jenkins\workspace\bm_wrap\1238\examples\mbed-os-example-sockets\mbed-os\rtos\rtx\TARGET_CORTEX_M\TARGET_RTOS_M4_M7\TOOLCHAIN_IAR\HAL_CM4.S(289) : Error[438]: This instruction is not available in the selected cpu/core

11:58:31 C:\Jenkins\workspace\bm_wrap\1238\examples\mbed-os-example-sockets\mbed-os\rtos\rtx\TARGET_CORTEX_M\TARGET_RTOS_M4_M7\TOOLCHAIN_IAR\HAL_CM4.S(317) : Error[438]: This instruction is not available in the selected cpu/core

11:58:31 C:\Jenkins\workspace\bm_wrap\1238\examples\mbed-os-example-sockets\mbed-os\rtos\rtx\TARGET_CORTEX_M\TARGET_RTOS_M4_M7\TOOLCHAIN_IAR\HAL_CM4.S(193) : Error[50]: Undefined symbol:'S16'

11:58:31 C:\Jenkins\workspace\bm_wrap\1238\examples\mbed-os-example-sockets\mbed-os\rtos\rtx\TARGET_CORTEX_M\TARGET_RTOS_M4_M7\TOOLCHAIN_IAR\HAL_CM4.S(193) : Error[50]: Undefined symbol:'S31'

11:58:31 C:\Jenkins\workspace\bm_wrap\1238\examples\mbed-os-example-sockets\mbed-os\rtos\rtx\TARGET_CORTEX_M\TARGET_RTOS_M4_M7\TOOLCHAIN_IAR\HAL_CM4.S(92) : Warning[408]: Not recommended operand syntax. Duplicate the first register operand, or select option -j (alternative syntax).

11:58:31 C:\Jenkins\workspace\bm_wrap\1238\examples\mbed-os-example-sockets\mbed-os\rtos\rtx\TARGET_CORTEX_M\TARGET_RTOS_M4_M7\TOOLCHAIN_IAR\HAL_CM4.S(110) : Warning[408]: Not recommended operand syntax. Duplicate the first register operand, or select option -j (alternative syntax).

11:58:31 C:\Jenkins\workspace\bm_wrap\1238\examples\mbed-os-example-sockets\mbed-os\rtos\rtx\TARGET_CORTEX_M\TARGET_RTOS_M4_M7\TOOLCHAIN_IAR\HAL_CM4.S(114) : Warning[408]: Not recommended operand syntax. Duplicate the first register operand, or select option -j (alternative syntax).

11:58:31 C:\Jenkins\workspace\bm_wrap\1238\examples\mbed-os-example-sockets\mbed-os\rtos\rtx\TARGET_CORTEX_M\TARGET_RTOS_M4_M7\TOOLCHAIN_IAR\HAL_CM4.S(131) : Warning[408]: Not recommended operand syntax. Duplicate the first register operand, or select option -j (alternative syntax).

11:58:31 C:\Jenkins\workspace\bm_wrap\1238\examples\mbed-os-example-sockets\mbed-os\rtos\rtx\TARGET_CORTEX_M\TARGET_RTOS_M4_M7\TOOLCHAIN_IAR\HAL_CM4.S(135) : Warning[408]: Not recommended operand syntax. Duplicate the first register operand, or select option -j (alternative syntax).

@theotherjimmy
Copy link
Contributor Author

It looks like the IAR exporter does not get the right CPU.

@theotherjimmy
Copy link
Contributor Author

In particular, it's not getting the FPU. (this is a DISCO_F7467NG build error)

@theotherjimmy
Copy link
Contributor Author

I just checked: the fpu is set to none in the GUI.

@bridadan
Copy link
Contributor

@adustm To clarify, it builds fine with IAR when using the mbed build system. But when you export to the IAR IDE and try to build with that, the build fails.

@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: 55

Exporter Build failed!

@theotherjimmy
Copy link
Contributor Author

/morph export-build

@mbed-bot
Copy link

Result: ABORTED

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

/morph export-build

Output

mbed Build Number: 56

Exporter Build failed!

@theotherjimmy
Copy link
Contributor Author

/morph export-build

@theotherjimmy theotherjimmy changed the title Fix typo in IAR definitions Deduplicate IAR exporter templates and enable a few more targets Dec 13, 2016
@mbed-bot
Copy link

Result: FAILURE

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

/morph export-build

Output

mbed Build Number: 57

Exporter Build failed!

@0xc0170
Copy link
Contributor

0xc0170 commented Dec 13, 2016

LGTM

There's one failure that is connected to the file name duplicate, There's a fix that got just now integrated, rerunning the export build

/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: 58

All exports and builds passed!

@adustm
Copy link
Member

adustm commented Dec 13, 2016

Hello,
I had to do a lot of changes to make the IAR IDE compile, even after the exporter works. As I don't use the same IAR version than you, I cannot report them here.

One thing I noticed is the fact that the *.h files are listed as objects in the project.
It is not usefull and should be removed.
The c and cpp files are finding 'their' header files through the project / option / C C++ Compiler / Preprocessor / Additional include directories

Could you check that ?

Kind regards
Armelle

@0xc0170
Copy link
Contributor

0xc0170 commented Dec 13, 2016

@> As I don't use the same IAR version than you

What version are you using? Templates are 7.70 that is supported version currently.

One thing I noticed is the fact that the *.h files are listed as objects in the project.
It is not usefull and should be removed.
The c and cpp files are finding 'their' header files through the project / option / C C++ Compiler / Preprocessor / Additional include directories

Create a separate issue for this if needed. I'll provide short answer for this, we had similar discussion in another pull request a while ago. I can find it for you that issue. For consistency, headers are part of the project. It is not about being found by a tool, but being part of a workspace so a user can find and edit them (not all tools provide features like listing all headers that are pulled in by a code file for instance). For further discussion, another issue needed as its not related to this patchset. Thanks

@theotherjimmy
Copy link
Contributor Author

We're down to the #3416 error.

/morph export-build

@theotherjimmy
Copy link
Contributor Author

theotherjimmy commented Dec 13, 2016

Whoops. old page loaded

@mbed-bot
Copy link

Result: SUCCESS

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

/morph export-build

Output

mbed Build Number: 63

All exports and builds passed!

Copy link
Contributor

@bridadan bridadan left a comment

Choose a reason for hiding this comment

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

LGTM

@theotherjimmy
Copy link
Contributor Author

@0xc0170 @sg- merge please?

@0xc0170
Copy link
Contributor

0xc0170 commented Dec 14, 2016

@0xc0170 @sg- merge please?

Will be merged soon, most probably today, we are reviewing still some (this was flagged as ready for integration a day ago)

@sg- sg- merged commit 6849fd9 into ARMmbed:master Dec 15, 2016
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.

export NUCLEO_F746ZG in IAR does not work, probably due to targets.py or targets.json
6 participants