Skip to content
This repository was archived by the owner on Sep 6, 2023. It is now read-only.
This repository was archived by the owner on Sep 6, 2023. It is now read-only.

Seems boot.py has not been successfully created #72

@YanMinge

Description

@YanMinge

I have previously submitted an issue #59,
and I have done some work on vfs_fat and oofatfs, now I can use C language to create, modify, or delete files. but still some information I want to confirm with you.

I tried to modify the boot.py in micropython-esp32\esp32\modules\inisetup.py. But it looks like it can not work.

def setup():
    check_bootsec()
    print("Performing initial setup")
    uos.VfsFat.mkfs(bdev)
    vfs = uos.VfsFat(bdev)
    uos.mount(vfs, '/flash')
    uos.chdir('/flash')
    with open("boot.py", "w") as f:
        f.write("import Undefined")
    with open("main.py", "w") as f2:
        f2.write("import Undefined2")
    return vfs

It expect to have the following log after startup, But it seems there have no boot.py been executed.

Traceback (most recent call last):
  File "boot.py", line 3, in <module>
ImportError: no module named 'Undefined'

Have you tested the implementation of boot.py or main.py with python?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions