Closed wilstam closed 7 years ago
From @ivankravets on October 27, 2016 19:22
Interesting question. Are these board the same? NRF51_MICROBIT & NRF51_MICROBIT_B?
Thanks Ivan.
I believe it has only one board so far. I bought two MicroBit boards six month apart, they should come from different production batches, both look the same and can run with S130 (ie NRF51_MICROBIT_B).
The closest thing I found is that few nRF51822 chips will not run on newer S130 version 2. As long as we use version 1, it will run on most chips. The library in PIO right now is using version 1. [https://devzone.nordicsemi.com/question/93224/which-sdk11-gcc-examples-work-with-nrf51822/?comment=93336#comment-93336] The two boards I have are using QFAAH0 chip and able to run version 1.
Looking at the targets.json, _NRF51MICROBIT and _NRF51_MICROBITB share the same base _MCU_NRF51_16KBASE, only that _NRF51MICROBIT has extra inherit from _MCU_NRF51S110 which specify the S110 SoftDevice. So I think it is safe to use _NRF51_MICROBITB.
S130 SoftDevice does use more space than S110 and provides BLE Central feature, which not many application will use, those may be the reason why the default is set to S110. As I am working on a project which requires BLE Central, I am trying to see if there any good or correct way to allow a project to specify which SoftDevice to be used.
Wonder, if it possible to set some variables in project's platformio.ini to change the target setting? Or have to create a new board for this?
Cheers, Wilson
From @ivankravets on October 28, 2016 17:22
We will create new board preset for MicrobitB. Please move this issue to this repo https://github.com/platformio/platform-nordicnrf51/issues
That's great. Thanks!
Please use board = bbcmicrobit_b
.
From @wilstam on October 27, 2016 3:39
Configuration
Operating system: macOS Sierra 10.12.1
PlatformIO Version (
platformio --version
): PlatformIO, version 3.1.0Description of problem
There seems no setup for BBC MicroBit with S130 SoftDevice
Steps to Reproduce
I have tried to change the following line to 'platforms/nordicnrf51/builder/frameworks/mbed/mbed.py:78
The projecct is build with S130 and using correct linker script at 'packages/framework-mbed/hal/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAINGCC ARM/TARGET_MCU_NRF51_16K_S130/NRF51822.ld'
Wonder what is the best way to add a support for this?
Thanks, Wilson
Copied from original issue: platformio/platformio#815