-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Misc fixes for LPC4088/LPC4088DM: #1811
Merged
Merged
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this macro not in the target (generic for all exporters) ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I honestly don't know. From what I can see in the template the flags/symbols that are set are never passed to the assembler, they are only passed to the C and C++ compilers. It also seems like the flags/symbols are passed to the assembler differently compared to the C/C++ compilers so using the {% for s in symbols %} is not an option?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is. You can add those symbols here. I recall I saw this FPU_PRESENT for cpu with fpus. Here: https://github.com/mbedmicro/mbed/blob/master/workspace_tools/toolchains/__init__.py#L168
If you add macros here as you proposd, that should fix it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the list you link to there is already a FPU_PRESENT for the Cortex-M4F and not for the Cortex-M4 which is logical. However the project files generated for the LPC4088 for LPCXpresso by the online compiler will have the FPU_PRESENT set for C code and C++ code but not for assembler. To me that indicates that either the project generation routine is wrong or the LPC4088 targets are configured as being both M4 and M4F.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You pinponted it previously, that for asm , macros are not added. this line does it for c: https://github.com/lindvalla/mbed/blob/d8935bb837267b1c95cee7fbb5ddadc54be5b753/workspace_tools/export/codered_lpc4088_cproject.tmpl#L33
same should be applied to asm I would say. For uvision , this is the case and FPU_PRESENT should be defined when exporting.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will test it tomorrow at work. However I'm not sure that it will work. The LPCXpresso IDE has completely different ways of specifying flags/symbols for asm (i.e. the GUI has lists of symbols for c/c++ but for assembler it is only one input field). I'll post my findings when I have tested it.