[SOLVED]can I modify the mp_builtin_module_table[] to add a new module on existing installation?

C programming, build, interpreter/VM.
Target audience: MicroPython Developers.
Post Reply
jickster
Posts: 629
Joined: Thu Sep 07, 2017 8:57 pm

[SOLVED]can I modify the mp_builtin_module_table[] to add a new module on existing installation?

Post by jickster » Mon Nov 13, 2017 9:57 pm

I know it's probably not possible but I want to know why:

I have a MCU with no filesystem.
If I don't use qstrings, why can't I add another module by adding to the table

Code: Select all

mp_builtin_module_table
and pointing to the new code in flash?

If I use qstrings, I know for sure it wouldn't be possible because the qstring table wouldn't contain the new module's strings.

jickster
Posts: 629
Joined: Thu Sep 07, 2017 8:57 pm

Re: [SOLVED]can I modify the mp_builtin_module_table[] to add a new module on existing installation?

Post by jickster » Thu Nov 23, 2017 2:34 am

Since I wrote this post, I became aware of persistentcode.c

The module addresses how to add new modules, compile them to byte code and save/load them to/from NVM.

Post Reply