Skip to content

Re-Flash .frozen content without firmware upgrade #9022

@omogenot

Description

@omogenot

When writing a MicroPython application for a device, in order to a) save as much RAM as possible for its execution, b) possibly "protect" application content, it is a usual practice (I guess) to move most of the application program parts into the .frozen section of the device MicroPython firmware as .mpy files that will be executed on site. And this possibility is brilliant.
However, in order to, eventually, enable the devices to perform a "Over-The-Air" type of upgrade, it would be great to be able, from the application, to re-flash the content of the pseudo-directory .frozen to upgrade this user-defined part of the firmware without having to re-flash the whole firmware. A kind of patch of the flash content.
In essence, it would be to be able to load the content of the frozen_content.c.obj file to a specific location to replace the previous one.
I know that it is not as simple as that, but it's the global idea. I don't have enough knowledge on the internals of MicroPython to start this, but I am definitely willing to help if I can.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementFeature requests, new feature implementations

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions