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

STM32 wrong MBED_ASSERT use #7775

Merged
merged 9 commits into from
Aug 21, 2018
Merged

STM32 wrong MBED_ASSERT use #7775

merged 9 commits into from
Aug 21, 2018

Conversation

jeromecoutant
Copy link
Collaborator

Description

In all SetSysClock functions, when system clock configuration is failing, we go into :
MBED_ASSERT(1)
which will actually never assert...

Code is then replaced by the error macro

Thx @mattbrown015

Pull request type

[x] Fix
[ ] Refactor
[ ] Target update
[ ] Feature
[ ] Breaking change

@cmonr cmonr self-requested a review August 13, 2018 14:36
@0xc0170
Copy link
Contributor

0xc0170 commented Aug 20, 2018

/morph build

@mbed-ci
Copy link

mbed-ci commented Aug 20, 2018

Build : SUCCESS

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

Triggering tests

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

@mbed-ci
Copy link

mbed-ci commented Aug 20, 2018

@mbed-ci
Copy link

mbed-ci commented Aug 21, 2018

@NirSonnenschein
Copy link
Contributor

/morph uvisor-test

@NirSonnenschein
Copy link
Contributor

CI passed, but only one review @0xc0170 does this need another review or is it ready for merge?

@0xc0170 0xc0170 requested a review from a team August 21, 2018 10:53
@cmonr cmonr merged commit c167275 into ARMmbed:master Aug 21, 2018
pan- pushed a commit to pan-/mbed that referenced this pull request Aug 22, 2018
@bcostm
Copy link
Contributor

bcostm commented Aug 28, 2018

I don't know how we can send characters though UART if we have no clock... I think MBED_ASSERT(0) was a better solution.

@0xc0170
Copy link
Contributor

0xc0170 commented Aug 28, 2018

I don't know how we can send characters though UART if we have no clock... I think MBED_ASSERT(0) was a better solution.

What is the difference? both print, so in the case of failures nothing is being reported for both or ?

@bcostm
Copy link
Contributor

bcostm commented Aug 28, 2018

Yes you're right, even MBED_ASSERT(0) will do nothing as there is no clock at all running. Nothing can be done at this point I think...

@jeromecoutant jeromecoutant deleted the PR_ASSERT branch September 3, 2018 12:15
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