Skip to content

CriticalSectionLock: fixing missing include #5912

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 26, 2018
Merged

CriticalSectionLock: fixing missing include #5912

merged 1 commit into from
Jan 26, 2018

Conversation

MikeDK
Copy link
Contributor

@MikeDK MikeDK commented Jan 24, 2018

Description

Macro MBED_DEPRECATED_SINCE is defined in platform/mbed_toolchain.h which was not included.
If someone used member functions lock or unlock (which are prefixed with MBED_DEPRECATED_SINCE since some time), there would be a compile error instead of a warning.
Including mbed_toolchain.h fixes that.

Status

READY

Steps to test or reproduce

Use CriticalSectionLock.lock() in a cpp file where CriticalSectionLock.h is included before mbed.h - compile error will occur.

Macro MBED_DEPRECATED_SINCE is defined in platform/mbed_toolchain.h which was not included.
If someone used member functions lock or unlock (which are prefixed with MBED_DEPRECATED_SINCE since some time), there would be a compile error instead of a warning.
Including mbed_toolchain.h fixes that.
@mbed-ci
Copy link

mbed-ci commented Jan 24, 2018

Automatic CI verification build not done, please verify manually.

@0xc0170
Copy link
Contributor

0xc0170 commented Jan 24, 2018

/morph build

@mbed-ci
Copy link

mbed-ci commented Jan 24, 2018

Build : SUCCESS

Build number : 927
Build artifacts/logs : http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/5912/

Triggering tests

/morph test
/morph uvisor-test
/morph export-build

@mbed-ci
Copy link

mbed-ci commented Jan 24, 2018

@mbed-ci
Copy link

mbed-ci commented Jan 24, 2018

@MikeDK
Copy link
Contributor Author

MikeDK commented Jan 25, 2018

seems like some test hardware failed to sync

@MikeDK
Copy link
Contributor Author

MikeDK commented Jan 25, 2018

Am I able to trigger the tests? Or do only members have the permissions to do the /morph build ? :)

@MikeDK
Copy link
Contributor Author

MikeDK commented Jan 25, 2018

/morph build

@MikeDK
Copy link
Contributor Author

MikeDK commented Jan 25, 2018

Ok, I answered the question to myself :P

@0xc0170
Copy link
Contributor

0xc0170 commented Jan 25, 2018

Ok, I answered the question to myself :P

We will retrigger CI, there is known issue with one device (not related to this PR), fix is already under tests

@MikeDK
Copy link
Contributor Author

MikeDK commented Jan 25, 2018

yeah I experience the same issue here with my NUCLEO-F746ZG board ... It is stuck somewhere before entering my application code.
When I revert the commit 4c07c1c (Merge pull request #5821 from bcostm/add_BL_nucleo-f746zg), everything works again.

As I own such a board - can I be of any help fixing the issue? ;)

@0xc0170
Copy link
Contributor

0xc0170 commented Jan 25, 2018

As I own such a board - can I be of any help fixing the issue? ;)

Any help appreciated 👍 Thanks for confirming the issue !
We currently have a revert under test #5927, and the addition needs to be retested and fixed

@MikeDK
Copy link
Contributor Author

MikeDK commented Jan 25, 2018

I already found that revert and tested it ... just to realize it only reverts the changes for NUCLEO_F767ZI ... but the issue is also present on the NUCLEO_F746ZG (which I own)

@0xc0170
Copy link
Contributor

0xc0170 commented Jan 25, 2018

@MikeDK Correct, F7 cache settings needs to be reverted, here #5932

@MikeDK
Copy link
Contributor Author

MikeDK commented Jan 25, 2018

Ok I just tested #5932, and I can confirm that it fixes the problem

@0xc0170
Copy link
Contributor

0xc0170 commented Jan 25, 2018

/morph build

@mbed-ci
Copy link

mbed-ci commented Jan 25, 2018

Build : SUCCESS

Build number : 947
Build artifacts/logs : http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/5912/

Triggering tests

/morph test
/morph uvisor-test
/morph export-build

@mbed-ci
Copy link

mbed-ci commented Jan 25, 2018

@mbed-ci
Copy link

mbed-ci commented Jan 25, 2018

@cmonr cmonr merged commit b67b69e into ARMmbed:master Jan 26, 2018
@MikeDK MikeDK deleted the critical_section_lock_fix branch January 31, 2018 19:40
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.

4 participants