Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

bradjc
Copy link
Contributor

@bradjc bradjc commented Dec 11, 2020

Pull Request Overview

I think that with the new static init scheme for peripherals we shouldn't have these statics anymore.

I found this when using an old capsule that uses the nvmc and the state variable was somehow changing mysteriously! Turns out I had two copies of NVMC.

Testing Strategy

Implementing bootloader on nrf52840dk over USB.

TODO or Help Wanted

I don't think this will compile yet. Consider this a bug report.

Documentation Updated

  • Updated the relevant files in /docs, or no updates are required.

Formatting

  • Ran make prepush.

@bradjc bradjc added the chips/nrf Change pertains to the nRF5x family of MCUs. label Dec 11, 2020
alistair23
alistair23 previously approved these changes Dec 11, 2020
lschuermann
lschuermann previously approved these changes Dec 14, 2020
@hudson-ayers hudson-ayers dismissed stale reviews from lschuermann and alistair23 via fbeb14f December 14, 2020 15:40
@hudson-ayers
Copy link
Contributor

I pushed a commit that removed the remaining users of the global NVMC, and also noticed that the global CLOCK variable somehow survived my initial changes as well, so I removed it (and uses of it) too.

hudson-ayers
hudson-ayers previously approved these changes Dec 14, 2020
@bradjc bradjc added the last-call Final review period for a pull request. label Dec 14, 2020
@hudson-ayers
Copy link
Contributor

bors r+

bors bot added a commit that referenced this pull request Dec 29, 2020
2262: nrf52: nvmc: remove global static r=hudson-ayers a=bradjc

### Pull Request Overview

I think that with the new static init scheme for peripherals we shouldn't have these statics anymore.

I found this when using an old capsule that uses the nvmc and the state variable was somehow changing mysteriously! Turns out I had two copies of NVMC.


### Testing Strategy

Implementing bootloader on nrf52840dk over USB.


### TODO or Help Wanted

I don't think this will compile yet. Consider this a bug report.


### Documentation Updated

- [x] Updated the relevant files in `/docs`, or no updates are required.

### Formatting

- [x] Ran `make prepush`.


Co-authored-by: Brad Campbell <[email protected]>
Co-authored-by: Hudson Ayers <[email protected]>
@bors
Copy link
Contributor

bors bot commented Dec 29, 2020

Build failed:

@hudson-ayers
Copy link
Contributor

there was an implicit conflict because the added microbit board used the global CLOCK (yet another good reason to use less static mut)

@hudson-ayers
Copy link
Contributor

bors r+

@bors
Copy link
Contributor

bors bot commented Jan 4, 2021

@bors bors bot merged commit c468e5e into master Jan 4, 2021
@bors bors bot deleted the nrf52-nvmc-no-static branch January 4, 2021 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chips/nrf Change pertains to the nRF5x family of MCUs. last-call Final review period for a pull request.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants