cpu/nrf52: Update nRF52* Vendor Header Files#21739
Conversation
|
Thanks, that has been on my backlog for quite some time :) Would you mind updating the other nrf52 vendor files as well, while you are at it? Did you encounter any problems you had to fix manually? |
|
Sure, can do. However I only have the nRF52832 and nRF52840 for actual hardware testing. The only manual fixes were including the "name change" header and commenting out the "System" header, so it's a reasonable amount of work to do for the other microcontrollers too. |
|
I would like to postpone updating the nRF51 and nRF53 vendor files until it is actually necessary 🤔 What's your opinion? Edit: and nRF9160. |
mguetschow
left a comment
There was a problem hiding this comment.
Thanks, just had a quick glance at the changes and they look sensible. Trusting CI that things still build with this.
You may squash, but please update the commit and PR name to reflect that all nrf52* vendor header files have been updated.
nrf51 and nrf53 are indeed out of scope I'd say.
a05ff62 to
9b22d33
Compare
|
Thanks for approving :) |
| #if defined(NRF52832_XXAA) | ||
| #define BPROT_REGIONS_NUM 128 | ||
| #elif defined(NRF52832_XXAB) | ||
| #define BPROT_REGIONS_NUM 64 | ||
| #endif |
There was a problem hiding this comment.
NRF52832_XXAA is only defined when using nrfx. In RIOT, we use CPU_MODEL_NRF52832XXAA from the make-system.
9b22d33 to
5b3e608
Compare
|
It would be nice if we could fetch and patch the vendor files from the Nordic repository in the future. But that's not a project I want to tackle right now 😅 |
Sounds like a pkg solution would be the way to go. Not sure why this was not done before? |
The full Also Nordic repackaged their stuff a lot in the last years with SDKs being discontinued etc. |
Contribution description
For a project we want to access some registers of the nRF52840, that are not yet specified in the current vendor files.
Nordic changed some stuff, but it appears as if most of the registers are unchanged.
Included in that "changing stuff" is a bunch of renames that actually have an effect, which is why the
nrf52840_name_change.hfile was added.
I changed the
nrf52840.hheader to not include thesystem_nrf52840.hfile (commented that line out) and added the Name Change header.The System header was not included previously either, so it shouldn't matter. Also, the System header provided by the nrfx repo was quite bare.
The nrfx version that these files come from is 3.14.0.
Testing procedure
All your favorite nRF52840 applications should still work.
Issues/PRs references
None.