Skip to content

nrf: add support for S113 SoftDevice #61

Merged
deadprogram merged 3 commits into
devfrom
nrf52-s113
Apr 15, 2021
Merged

nrf: add support for S113 SoftDevice #61
deadprogram merged 3 commits into
devfrom
nrf52-s113

Conversation

@aykevl

@aykevl aykevl commented Apr 14, 2021

Copy link
Copy Markdown
Member

This SoftDevice is used by default on the BBC micro:bit v2 so it's a good idea to add support here.

Unfortunately this SoftDevice does not support scanning and connecting to other devices. This means that I unfortunately had to duplicate a significant chunk of code. (This is when macros would have been useful in Go...)

This depends on tinygo-org/tinygo#1800 to get the CI to pass.

aykevl added 3 commits April 14, 2021 17:15
Not using the right signature led to a compiler crash.
The compiler should probably be fixed in this case (to report an error
instead), but this at least fixes the issue.
This makes sure the SoftDevice start address is configured in only one
place, and thus avoid potential issues when it is changed. It also will
allow setting a different SoftDevice RAM size with a linker flag
starting with LLVM 11 (when expressions are allowed in the MEMORY part
of a linker script).
This SoftDevice is used by default on the BBC micro:bit v2 so it's a
good idea to add support here.

Unfortunately this SoftDevice does not support scanning and connecting
to other devices. This means that I unfortunately had to duplicate the
event handler. I managed to refactor most other code to avoid
duplicating much more. (This is when macros would have been useful in
Go...)
@aykevl aykevl mentioned this pull request Apr 14, 2021
@deadprogram

Copy link
Copy Markdown
Member

Thank you @aykevl this is great progress!

Now merging.

@deadprogram deadprogram merged commit bb87677 into dev Apr 15, 2021
@deadprogram deadprogram deleted the nrf52-s113 branch April 15, 2021 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants