Skip to content
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

Compatibility with micro:bit v2 #34

Closed
microbit-sam opened this issue Nov 18, 2020 · 2 comments
Closed

Compatibility with micro:bit v2 #34

microbit-sam opened this issue Nov 18, 2020 · 2 comments

Comments

@microbit-sam
Copy link

Hi @tinkertanker,

As you might have seen from microsoft/pxt-microbit#3506 this extension is currently not compiling against the latest version of Micro:bit CODAL. This means it will not work with micro:bit V2.

Software for micro:bit V2 boards is built using CODAL rather than the DAL, and no longer includes the mbed layer. We’ve implemented the most frequently used mbed classes to support easy porting of existing extensions, but there may still be corner cases with this compatibility layer.

As your extension is currently not building, it will be disabled for micro:bit V2. People attempting to use your extension with a micro:bit V2 board will get error 929. This extension will only be re-enabled on micro:bit V2 once it is fixed.

There are details on how to ensure extensions work on both version of the micro:bit here (lancaster-university/codal-microbit-v2#31).

Looking at your extension source I believe that your extension falls under this category:

  1. Use of mbed APIs that are in the compatibility layer, but no inclusion of mbed.h
@lionyhw
Copy link
Contributor

lionyhw commented Dec 1, 2020

@microbit-sam Can you confirm that the problem has been solved? In v4.2.1.

Sometimes, the E927 error is displayed.

@microbit-sam
Copy link
Author

Yes, this should now compile and run on a V2

E927 indicates that the extensions is currently disabled on V2 by MakeCode, to reanable this you will need to submit a PR to MakeCode that updates the version number to v4.2.1

And example of the PR can be found here:
https://github.com/microsoft/pxt-microbit/pull/3769/files

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

No branches or pull requests

3 participants