-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
mpy-cross needs a --version option #3410
Comments
See #3357. |
See also this relevant forum discussion: https://forum.micropython.org/viewtopic.php?p=23524#p23524 |
See #4739 for a patch to do this. |
Option added in 7e90e22 |
tannewt
pushed a commit
to tannewt/circuitpython
that referenced
this issue
Jul 13, 2021
As discussed in micropython#3410, this is a micropython-compatible (though differently named) function that allows creation of useful time and deadline functions in pure python.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It seems like it's really important when you build the mpy-cross compiler from source that it matches exactly the version of the micropython on the device.
When you log on to the device you get a detailed version of micropython on the command prompt, like so:
"MicroPython v1.9.3-8-g63826ac5c on 2017-11-01"
Is there a way to get an equally specific version code from the mpy-cross program?
In an attempt to get to the correct one, I am doing:
But you can never be sure this is going to be exactly right, and this can be one fiendish source of bugs.
I can see no hidden code supporting this option already in place:
https://github.com/micropython/micropython/blob/master/mpy-cross/main.c
The text was updated successfully, but these errors were encountered: