Page 1 of 1

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

Posted: Mon Nov 13, 2017 9:57 pm
by jickster
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.

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

Posted: Thu Nov 23, 2017 2:34 am
by jickster
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.