← index #16968PR #14479
Off-topic · high · value 0.381
QUERY · ISSUE

how can i load a bytearray which contains a mpy file,and run it in main.c ( ports/esp32)

openby XBCSmartopened 2025-03-20updated 2025-05-31
enhancementneeds-info

Description

I want to load a compiled .mpy file stored in a uint8_t array (named data with length _size) in main.c and run it. I've tried many methods but failed. I hope the maintainers can add a function load_from_mem_run(uint8_t data, size_t l_size) to pexec.h to enable a new way of running MicroPython. I am currently using version 1.25.0-preview." , thanks all

Code Size

No response

Implementation

I hope the MicroPython maintainers or community will implement this feature

Code of Conduct

Yes, I agree

CANDIDATE · PULL REQUEST

webassembly/mpconfigport: Enable importing of .mpy files.

mergedby dpgeorgeopened 2024-05-14updated 2024-05-14
port-webassembly

(no description)

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied