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

how to read ULP result data from micropython? #34

Open
ThomasWaldmann opened this issue Mar 19, 2018 · 1 comment
Open

how to read ULP result data from micropython? #34

ThomasWaldmann opened this issue Mar 19, 2018 · 1 comment
Labels
help wanted Extra attention is needed question Further information is requested

Comments

@ThomasWaldmann
Copy link
Collaborator

as a result of the assembler run, we have a symbol table (name -> offset).
what we do not have (yet?) is type information.

if we had that, we could build a uctypes.struct to comfortably deal with the result (like x = ulp.name).

any other ideas?

@ThomasWaldmann ThomasWaldmann changed the title how to read ULP result data from micropython how to read ULP result data from micropython? Mar 19, 2018
@ThomasWaldmann ThomasWaldmann added help wanted Extra attention is needed question Further information is requested labels Mar 21, 2018
@ThomasWaldmann
Copy link
Collaborator Author

ThomasWaldmann commented May 2, 2018

Until we have a prettier way like described above, direct memory access via machine.mem32 can be used, see there: https://github.com/ThomasWaldmann/py-esp32-ulp/blob/master/examples/counter.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant