-
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
MIMXRT1050: Update to EVK Rev B #7105
Conversation
All mbed tests pass except for the below with GCC_ARM toolchain: I am seeing a weird behavior when running the mbed test ‘tests-mbed_platform-error_handling’ using GCC_ARM toolchain. 1527872989.41][CONN][RXD] >>> Running case #3: 'Test error context capture'... As seen above the expected and actual seem to match, however the test is throwing this as an error. This is only seen with GCC_ARM toolchain. |
How can we reproduce this error ? Is this error only visible after this update or also current master branch ? |
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.
LGTM but failing tests should be fixed
I need some guidance on the failure. I do not see it with ARM and IAR toolchains. Also I do not see if on other platforms with GCC_ARM. |
@mmahadevan108 A shot in the dark. The failure might be a comparison between ((uint32_t) -1) and ((char) -1), or something equivalent, and htrun is up-casting the value. |
e5e49ae
to
cb78dfc
Compare
I add the below change and see the tests pass with GCC_ARM diff --git a/TESTS/mbed_platform/error_handling/main.cpp b/TESTS/mbed_platform/error_handling/main.cpp |
Discovered via #7105. If both values are negative values, they are casted in such a way that -1 != -1. This small commit fixes that.
Any update on this PR? |
@mmahadevan108 My understanding was that this was waiting on #7202 to come in first. |
@mmahadevan108 Aaand it's in! Rebase when you can and we can get CI started. |
Discovered via #7105. If both values are negative values, they are casted in such a way that -1 != -1. This small commit fixes that.
cb78dfc
to
8a60895
Compare
Thanks. I have rebased and updated the PR. I can confirm that all tests passed with all toolchains. |
/morph build |
Build : SUCCESSBuild number : 2358 Triggering tests/morph test |
Exporter Build : FAILUREBuild number : 1983 |
Test : FAILUREBuild number : 2146 |
/morph test |
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.
LGTM. Just some non-blockign comments.
*/ | ||
|
||
/* TEXT BELOW IS USED AS SETTING FOR TOOLS ************************************* | ||
!!GlobalInfo |
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.
Interesting. First time I've seen YAML used inside of a source file.
@@ -1,8 +1,11 @@ | |||
/* | |||
* The Clear BSD License |
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.
Making a note here that this is compatible with our Apache 2 licensing.
/************************************* | ||
* DCD Data | ||
*************************************/ | ||
const uint8_t dcd_data[] = { |
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.
Was there any particular reason why this wasn't bunched up into multi-entry lines?
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.
No idea, maybe it was separated out for clarity. I do not want to make changes to this file as it comes from the SDK team and is used by the ROM code to initialize SDRAM during boot.
Build : SUCCESSBuild number : 2373 Triggering tests/morph test |
Exporter Build : FAILUREBuild number : 2006 |
I undid the change to this file to revert back to the previous value. However exporter still fails for IAR, any idea why? |
Test : SUCCESSBuild number : 2162 |
@cmonr Anything else needed for this PR? |
db22519
to
7030426
Compare
@mmahadevan108 We're still looking into this. Assuming that the MIMXRT1052xxx6A is supported by IAR 7, I don't see yet why this is still failing. |
Support for MIMXRT1052xxx6A was added in IAR 8.20.1. Was this exporter test added recently, it was not highlighted when the initial commit for MXRT was added in Dec 2017. |
Nothing new, I reviewed that PR back in February, seems like the example did not do anything there but passed as result, see http://mbed-os.s3-eu-west-1.amazonaws.com/builds/exporter/5826/PASS/MIMXRT1050_EVK/iar/060daa99c93aaa7ed40318c8e168f15bb12938d8_exporter_build_log_MIMXRT1050_EVK_iar.txt (@studavekar please review). Make iar compiled though.
This is the issue. If that is true, this would become dependent on updating to the IAR 8. |
@mmahadevan108 I think the reason that this wasn't originally an issue was because as of right now, exporting to IAR for this particular target is disabled for IAR. At least, this is what is indicated by running
If this support wasn't also included in IAR 7, then we can't take in the part of the changeset that specifies the target MCU. Otherwise we'll keep on seeing
I think if the change in |
1. Add the IVT header to the binary as this is required for boot up This was earlier added by the DAPLink firmware. As it is no longer handled in DAPLink, the header needs to be added inside mbed. 2. Update drivers Signed-off-by: Mahesh Mahadevan <[email protected]>
7030426
to
632892d
Compare
Updated PR to remove IAR exporter support. |
/morph build |
Build : SUCCESSBuild number : 2428 Triggering tests/morph test |
Exporter Build : SUCCESSBuild number : 2057 |
Test : SUCCESSBuild number : 2208 |
Description
This was earlier added by the DAPLink firmware. As it is no longer
handled in DAPLink, the header needs to be added inside mbed.
Pull request type