Skip to content

Ability to specify SoftDevice #591

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

Closed
joachimhs opened this issue Feb 21, 2020 · 2 comments
Closed

Ability to specify SoftDevice #591

joachimhs opened this issue Feb 21, 2020 · 2 comments
Labels
conclusion: invalid Issue/PR not valid

Comments

@joachimhs
Copy link

When compiling for micro:bit, it is necessary to provide SoftDevice, either "none", "S110" og "D130" for the micro:bit.

@per1234
Copy link
Contributor

per1234 commented Feb 21, 2020

You can specify custom menu options via the FQBN. For example, if you wanted to compile for the micro:bit using the Tools > Softdevice > None option, the command would look something like this:

arduino-cli compile --fqbn sandeepmistry:nRF5:BBCmicrobit:softdevice=none Foobar

Using the Tools > Softdevice > S110 option, the command would look something like this:

arduino-cli compile --fqbn sandeepmistry:nRF5:BBCmicrobit:softdevice=s110 Foobar

Using the Tools > Softdevice > S130 option, the command would look something like this:

arduino-cli compile --fqbn sandeepmistry:nRF5:BBCmicrobit:softdevice=s130 Foobar

The option identifiers are found in boards.txt:
https://github.com/sandeepmistry/arduino-nRF5/blob/0.6.0/boards.txt#L371-L387

BBCmicrobit.menu.softdevice.none=None
BBCmicrobit.menu.softdevice.none.softdevice=none
BBCmicrobit.menu.softdevice.none.softdeviceversion=

BBCmicrobit.menu.softdevice.s110=S110
BBCmicrobit.menu.softdevice.s110.softdevice=s110
BBCmicrobit.menu.softdevice.s110.softdeviceversion=8.0.0
BBCmicrobit.menu.softdevice.s110.upload.maximum_size=151552
BBCmicrobit.menu.softdevice.s110.build.extra_flags=-DNRF51 -DS110 -DNRF51_S110
BBCmicrobit.menu.softdevice.s110.build.ldscript=armgcc_s110_nrf51822_xxaa.ld

BBCmicrobit.menu.softdevice.s130=S130
BBCmicrobit.menu.softdevice.s130.softdevice=s130
BBCmicrobit.menu.softdevice.s130.softdeviceversion=2.0.1
BBCmicrobit.menu.softdevice.s130.upload.maximum_size=151552
BBCmicrobit.menu.softdevice.s130.build.extra_flags=-DNRF51 -DS130 -DNRF51_S130
BBCmicrobit.menu.softdevice.s130.build.ldscript=armgcc_s130_nrf51822_xxaa.ld

@per1234 per1234 closed this as completed Feb 21, 2020
@per1234 per1234 added the conclusion: invalid Issue/PR not valid label Feb 21, 2020
@joachimhs
Copy link
Author

Thank you for the fast response and information!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: invalid Issue/PR not valid
Projects
None yet
Development

No branches or pull requests

2 participants