Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
microbit DAL doesn't build on mbed 5 #224
By default, the DAL doesn't build on mbed 5- there are a small number of API changes and build system changes that need to be accommodated
It is possible to use mbed 5 without the whole of mbed OS, and this would be a good step for micro:bit
In conclusion, here is the recipe for bringing micro:bit Hello World (or another uBit app) to life on mbed-os 5 for now:
If the microbit application is single-threaded, the option
It is also possible to eliminate some parts of the mbed os while building the DAL, keeping the mbed SDK. This can be done by creating a
EDIT: step 2 could be omitted, but the stack size will have to decrease to around 0.5k to allow having heap space sufficient for the microbit demands (at least 1214 bytes of heap to init uBit resources) (all this with BLE still removed).
I'm very supportive of getting microbit-dal building against mainstream mbed, and resolving the issues we had to address in our local forks of the mbed repos along the way.
If I understand correctly, there are two aspects to mbed 5. There's mbed os proper, which includes your RTOS scheduler etc. Then there's the SDK, which is pretty much similar to the mbed 2.0 HAL? Are we looking to support both these builds?
For the SDK builds, we should be looking to have an equivalent (or ideally better!) build than we currently have against mbed classic.
For mbed-os proper, I presume you do want to support BLE though? This will be quite a significant aspect for your partners/customers won't it? So some thought required there methinks... Probably starting with an analysis of where the memory use is, and then perhaps a tweaked configuration of both mbed-os and microbit-dal to suit?
Any progress on this? Also +1 on wanting mbedOS 5 support.
Is there any feature bounty on this which we could pitch in to?