micropython-esp32-ulp icon indicating copy to clipboard operation
micropython-esp32-ulp copied to clipboard

how to read ULP result data from micropython?

Open ThomasWaldmann opened this issue 7 years ago • 1 comments

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 avatar Mar 19 '18 22:03 ThomasWaldmann

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

ThomasWaldmann avatar May 02 '18 23:05 ThomasWaldmann