Skip to content

NRF51822: Fix baremetal linker error #12154

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 24, 2020

Conversation

hugueskamba
Copy link
Collaborator

@hugueskamba hugueskamba commented Dec 20, 2019

Summary of changes

Ensure the NRF51822's us_ticker.c module content is compiled in only if the target
supports the microsecond ticker (USTICKER).

Impact of changes

It is now possible to build NRF51822 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_microbit

Migration actions required

Documentation


Pull request type

[X] Patch update (Bug fix / Target update / Docs update / Test update / Refactor)
[] Feature update (New feature / Functionality change / New API)
[] Major update (Breaking change E.g. Return code change / API behaviour change)

Test results

[] No Tests required for this change (E.g docs only update)
[X] Covered by existing mbed-os tests (Greentea or Unittest)
[] Tests / results supplied as part of this PR

Reviewers

@pan-


@hugueskamba hugueskamba force-pushed the hk-baremetal-nrf51822-fix branch from 926950d to d8dc2a2 Compare December 20, 2019 15:07
@ciarmcom ciarmcom requested review from pan- and a team December 20, 2019 16:00
@ciarmcom
Copy link
Member

@hugueskamba, thank you for your changes.
@pan- @ARMmbed/mbed-os-maintainers please review.

@bulislaw
Copy link
Member

Looks similar to #12155 probably won't actually run

@hugueskamba
Copy link
Collaborator Author

hugueskamba commented Jan 3, 2020

Looks similar to #12155 probably won't actually run

@bulislaw
Please see #12155 (comment)

Ensure the NRF51822 `us_ticker.c` module content is compiled in only if
the target supports USTICKER.
@hugueskamba hugueskamba force-pushed the hk-baremetal-nrf51822-fix branch from d8dc2a2 to e0c628c Compare January 8, 2020 15:33
@hugueskamba
Copy link
Collaborator Author

Looks similar to #12155 probably won't actually run

The solution here was applied with this force-push.

@0xc0170
Copy link
Contributor

0xc0170 commented Jan 8, 2020

CI started

@mbed-ci
Copy link

mbed-ci commented Jan 8, 2020

Test run: FAILED

Summary: 2 of 11 test jobs failed
Build number : 1
Build artifacts

Failed test jobs:

  • jenkins-ci/mbed-os-ci_cloud-client-pytest
  • jenkins-ci/mbed-os-ci_greentea-test

@hugueskamba
Copy link
Collaborator Author

Test run: FAILED

Summary: 2 of 11 test jobs failed
Build number : 1
Build artifacts

Failed test jobs:

  • jenkins-ci/mbed-os-ci_cloud-client-pytest
  • jenkins-ci/mbed-os-ci_greentea-test

Do we think the failure is related to the changes? I have not seen anything that suggested that.

@0xc0170
Copy link
Contributor

0xc0170 commented Jan 9, 2020

Test restarted

@0xc0170
Copy link
Contributor

0xc0170 commented Jan 9, 2020

To understand this one: there is no lp ticker for nrf51x, us ticker is implemented via rtc (already low power), therefore use us ticker during sleep as set here is fine. Is that correct?

],
"overrides": {
"tickless-from-us-ticker" : true,
"boot-stack-size" : "0x400"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we also change boot-stack-size in this PR which addresses a baremetal link error?
I am assuming that there is not enough memory on this target to accommodate the default 4K stack size?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@0xc0170
Copy link
Contributor

0xc0170 commented Jan 15, 2020

CI started

@mbed-ci
Copy link

mbed-ci commented Jan 15, 2020

Test run: SUCCESS

Summary: 11 of 11 test jobs passed
Build number : 2
Build artifacts

@0xc0170 0xc0170 requested a review from evedon January 16, 2020 13:44
@0xc0170 0xc0170 added the release-version: 6.0.0-alpha-2 Second pre-release version of 6.0.0 label Jan 16, 2020
@0xc0170
Copy link
Contributor

0xc0170 commented Jan 16, 2020

This shall be ready for integration once approved, cc @evedon

@adbridge
Copy link
Contributor

NOTE: We shall probably have to re-run CI on this before merging due to the number of days since it last ran...

@bulislaw
Copy link
Member

Did anyone checked whether it actually works after compiling? If yes, it's fine with me.

@adbridge
Copy link
Contributor

Did anyone checked whether it actually works after compiling? If yes, it's fine with me.

@hugueskamba @evedon ^^^^

@evedon
Copy link
Contributor

evedon commented Jan 22, 2020

Did anyone checked whether it actually works after compiling? If yes, it's fine with me.

@hugueskamba @evedon ^^^^

Successfully built mbed-os-example-blinky-baremetal for NRF51822 with this PR.

@adbridge
Copy link
Contributor

@evedon could you approve then please and I will rerun this through the CI and then we should be able to get this in.

@adbridge
Copy link
Contributor

CI started

@mbed-ci
Copy link

mbed-ci commented Jan 23, 2020

Test run: FAILED

Summary: 1 of 11 test jobs failed
Build number : 3
Build artifacts

Failed test jobs:

  • jenkins-ci/mbed-os-ci_dynamic-memory-usage

@adbridge
Copy link
Contributor

Re running CI as I cannot see why this failed

@mbed-ci
Copy link

mbed-ci commented Jan 23, 2020

Test run: FAILED

Summary: 1 of 11 test jobs failed
Build number : 4
Build artifacts

Failed test jobs:

  • jenkins-ci/mbed-os-ci_dynamic-memory-usage

@adbridge adbridge merged commit 0d48a26 into ARMmbed:master Jan 24, 2020
@hugueskamba hugueskamba deleted the hk-baremetal-nrf51822-fix branch June 30, 2020 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-version: 6.0.0-alpha-2 Second pre-release version of 6.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants