-
Notifications
You must be signed in to change notification settings - Fork 3k
NRF5x: Fix baremetal linker error #12151
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
Conversation
@hugueskamba, thank you for your changes. |
@pan- @desmond-blue @linlingao can one of you please have a look |
@@ -40,7 +40,7 @@ | |||
#include "app_error.h" | |||
#include "nordic_common.h" | |||
|
|||
#if defined(DEBUG_NRF) | |||
#if defined(DEBUG_NRF_USER) |
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 guess it should be #if defined(DEBUG_NRF) || defined(DEBUG_NRF_USER)
?
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.
Looks like this way it is used in nordic files as well.
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.
Thanks, done.
51fe2c2
to
dfe0a58
Compare
Test run: FAILEDSummary: 3 of 4 test jobs failed Failed test jobs:
|
@0xc0170 I do not think the failure is related to the change on the PR. |
They don't look related but only some nrf targets failed, suspicious. I restarted the tests |
Test run: FAILEDSummary: 3 of 4 test jobs failed Failed test jobs:
|
I could find one possibly related issue in the build:
|
DEBUG_NRF_USER gets defined for build profiles (develop, debug) which do not define NDEBUG (see nrf_assert.h). Therefore the definition of the function should also be visible if DEBUG_NRF_USER is defined.
dfe0a58
to
6afca24
Compare
This should fix it. |
CI restarted |
Test run: FAILEDSummary: 1 of 11 test jobs failed Failed test jobs:
|
I got a confirmation that the issue is due to instability in the CI. There is no work to be done,. The CI needs to be re-run. |
Cloud client restarted |
Summary of changes
DEBUG_NRF_USER
gets defined for build profiles (develop, debug)which do not define
NDEBUG
(seenrf_assert.h
). Therefore the definitionof the function should be visible if
DEBUG_NRF_USER
is defined.Impact of changes
It is now possible to build NRF5x targets with the baremetal profile using the debug and develop build profiles.
i.e It is now possible to build
mbed-os-example-blinky-baremetal
with$ mbed compile -t <TOOLCHAIN> -m NRF51_DONGLE
Migration actions required
Documentation
Pull request type
Test results
Reviewers
@pan-