Skip to content

NRF - Frozen Modules not Available in REPL #5495

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
pacmac opened this issue Jan 6, 2020 · 2 comments
Open

NRF - Frozen Modules not Available in REPL #5495

pacmac opened this issue Jan 6, 2020 · 2 comments

Comments

@pacmac
Copy link

pacmac commented Jan 6, 2020

3 Files in freeze folder, sh.py and flashbdev.py and symbolic links.

freeze % ls -all
-rwxrwxrwx  1 pac  staff    118  5 січ 21:18 flashbdev.py
-rwxrwxrwx  1 pac  staff   1463  7 кві  2019 sh.py
-rwxrwxrwx  1 pac  staff     63  5 січ 21:18 test.py

Frozen Folder is called during make and all 3 are built with MPY:

make -j8 BOARD=holyiot_18010 SD=s140 FROZEN_MPY_DIR=freeze MICROPY_FATFS=1
Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
Warning: FROZEN_MPY_DIR is deprecated in favour of FROZEN_MANIFEST
.....
mkdir -p build-holyiot_18010-s140/py/
MPY freeze/test.py
MPY freeze/sh.py
MPY freeze/flashbdev.py
Create build-holyiot_18010-s140/pins_gen.c

But my 2 symbolic linked files not available in REPL:

>>> help('modules')
__main__          machine           test              uos
ble               math              time              ustruct
board             micropython       uarray            utime
builtins          random            ubluepy
gc                sys               ucollections
Plus any modules on the filesystem
@pacmac
Copy link
Author

pacmac commented Jan 6, 2020

Strange, I changed permissions on the 2 symlinked files from 777 to 666 and they now appear !

 help('modules')
__main__          gc                sh                ubluepy
ble               machine           sys               ucollections
board             math              test              uos
builtins          micropython       time              ustruct
flashbdev         random            uarray            utime
Plus any modules on the filesystem
>>> 

But it seems there are a lot of file system functions missing, I cannot even change directory or make a directory, which means I cannot transfer files using RSHELL :-(

import os
>>> dir(os)
['__class__', '__name__', 'remove', 'sep', 'dupterm', 'ilistdir', 'listdir', 'stat', 'uname']

@mzdaniel
Copy link
Contributor

mzdaniel commented Jan 8, 2020

NRF is in the process of gain VFS functionality. AFAICT, rshell works after applying #5472

tannewt pushed a commit to tannewt/circuitpython that referenced this issue Oct 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants