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

boards/common/nrf52: improve default clock config #18811

Merged
merged 1 commit into from
Nov 21, 2022

Conversation

maribu
Copy link
Member

@maribu maribu commented Oct 27, 2022

Contribution description

  • All nRF52 timers support 32 bit mode, so use that
  • All nRF52 timers support at least 4 channels, the timers NRF_TIMER3 and NRF_TIMER4 even support 6 channels.
  • Add a warning that TIMER_DEV(1) is used by the IEEE 802.15.4 driver

Testing procedure

Use a timer other than TIMER_DEV(0) (that is used by ztimer) and set a timeout that cannot be represented in 8 bits. This should now work.

Issues/PRs references

Needed for #18392 to work

- All nRF52 timers support 32 bit mode, so use that
- All nRF52 timers support at least 4 channels, the timers NRF_TIMER3
  and NRF_TIMER4 even support 6 channels.
- Add a warning that `TIMER_DEV(1)` is used by the IEEE 802.15.4 driver
@maribu maribu requested a review from bergzand October 27, 2022 19:16
@github-actions github-actions bot added the Area: boards Area: Board ports label Oct 27, 2022
@benpicco benpicco requested a review from dylad October 27, 2022 20:24
@benpicco benpicco added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Nov 14, 2022
@riot-ci
Copy link

riot-ci commented Nov 15, 2022

Murdock results

✔️ PASSED

4d02e15 boards/common/nrf52: improve default clock config

Success Failures Total Runtime
117848 0 117848 01h:33m:49s

Artifacts

This only reflects a subset of all builds from https://ci-prod.riot-os.org. Please refer to https://ci.riot-os.org for a complete build for now.

@bergzand bergzand merged commit 64dcfd6 into RIOT-OS:master Nov 21, 2022
@maribu maribu deleted the boards/common/nrf52 branch November 21, 2022 10:51
@maribu
Copy link
Member Author

maribu commented Nov 21, 2022

Thx :)

@maribu
Copy link
Member Author

maribu commented Nov 22, 2022

F**k. With this merged tests/pkg_edhoc_c now hangs on ifconfig on the nRF52840DK :/

Likely because I changed the timer used by the nRF52 IEEE 802.15.4 driver from 8 bit to 32 bit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: boards Area: Board ports CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants