-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[feature request] Add direct memory access like machine.mem in Micropython #1268
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
Comments
The Adafruit sponsored development of CircuitPython is very beginner focused so myself or @dhalbert will not get to this anytime soon. I do agree that it'd be useful for advanced users. I'd be happy to help someone else implement this. I think we'd actually want two different modules:
|
With a lot of guidance I might be able to work on this however I'm pretty busy at the moment. If someone else is interested by all means take it on. |
I just received my DK. Give me some time to get used to it and wade through the circuitpython code. @siddacious: I'd be happy to collaborate. @tannewt: Would it be OK to share our progress here, or should we set up a thread in the forum, or somewhere else? |
@uhrheber Here is great! Let me know if you have questions about CircuitPython code. Thanks! |
You might have seen this: #1248 |
Superseded by #3234, but seeing how MicroPython does is worth looking at. |
Please add a simple method for direct memory access to circuitpython.
Micropython has the machine.mem8/16/32 object, to access the memory directly.
Example: machine.mem32[0x50000748]=0x703
There are many situation where you want to access the memory, especially the registers, directly.
May it be speed, or because you need a special feature, that the driver/hal doesn't support.
It is possible to use @micropython.viper, and use pointers to access the memory, but I don't know what the status of the viper emitter is in circuitpython, and whether it will be supported in the future.
The text was updated successfully, but these errors were encountered: