New to MicroPython, question about RAM.

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
User avatar
jimmo
Posts: 2754
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: New to MicroPython, question about RAM.

Post by jimmo » Tue Feb 25, 2020 6:02 am

ZeekDev wrote:
Tue Feb 25, 2020 5:53 am
So, if I have modules that dont typically change a lot, e.g backend or "kernel-like" modules that dont change much, I should put them in the firmware.
Yup, exactly.
ZeekDev wrote:
Tue Feb 25, 2020 5:53 am
Where can I find documentation on how to do that? Easily? I'm running windows so, its always harder
95% of the complexity is just being able to build the firmware. Unfortunately I don't know much about Windows, but it's definitely been discussed on the forum a bunch before. (And I guess the other option is to use WSL?) https://github.com/micropython/micropyt ... /README.md has the actual compiling instructions.

Then when you can do that, you run the build with a manifest.py of your choice. Have a look at ports/stm32/manifest.py for an example. You can put this anywhere on the filesystem (i.e. in your own git repo).

Code: Select all

make BOARD=PYBV11 FROZEN_MANIFEST=path/to/mymanifest.py
pythoncoder wrote:
Tue Feb 25, 2020 6:00 am
See this doc.
There's a good explanation of the concepts there, but unfortunately hasn't been updated for the new manifest system (endless list of documentation to be written...). But see https://github.com/peterhinch/micropyth ... /fastbuild for some more info about manifest.py :)

Post Reply