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
Unable to connect to NRF port device #65
Comments
What command line are you using to start rshell? If you connect via screen what does the output of these commands show?
|
Also, what is the output of these commands:
|
|
I'll guess that rshell is crashing on the fact that ubinascii is missing. I should be able to fix that. However, rshell won't be of much use to you until os.listsir('/') actually returns something. Until it does, rshell can't copy anything since it's basically saying that there are no filesystems on the device. |
https://forum.micropython.org/viewtopic.php?f=12&t=5462&start=10#p31487 See this link, it appears that the nrf port is lacking the fundamental file system functions ? |
|
Yeah - I think that the micro filesystem isn't really intended to be changed, and probably doesn't support subdirectories. |
You should be able to build it with sdcard support though, and those function may magically appear in that case. Then we just need to make sure os.listdir('/') works when using an sdcard. |
I have enabled:
In the build command, but os and uos still don't have the additional commands and os.listdir() will not work with a variable i.e os.listdir('/') So I suspect that this build option may not be fully working, and that the file system is still the microbit format and not fatfs. How would I enable SD support for the build, either in the GNUmakefile or in the build command as I can't find any hints on that ? |
I saw this in the nrf port main.c: https://github.com/micropython/micropython/blob/06643a0df4e85cbdf18549440db19dc21fccbf76/ports/nrf/main.c#L162 but I don't see any other references to MICROPY_HW_HAS_SDCARD in the nrf port tree. There are generic drivers to support sdcard over SPI elsewhere in the micropython tree. |
Well.. that depends on the definition of a filesystem change. It still can create and remove files. This is from a test on my microbit flashed with MicroPython:
That means:
|
I have been working on the NRF port and when I attempt to connect to the nrf52840, I get the errors below.
I am able to connect to this device using linux / osx 'screen' and are also able to connect rshell to other devices such as pyboard, so it looks like this is specific to the nrf port.
Could this be something to do with the filesystem on the nrf port ??
The text was updated successfully, but these errors were encountered: