Search found 29 matches

by kbrenner
Mon Jan 11, 2021 3:00 am
Forum: Pyboard D-series
Topic: ENOMEM error
Replies: 5
Views: 848

ENOMEM error

I am using a PYBD-SF6W and am running into an error while sending BLE messages. The REPL prompt just gets flooded with the following messages: ENOMEM error.PNG Does anyone know where these get generated? If there isn't a way right now to avoid them, is there a way to recognize that the error is occu...
by kbrenner
Mon Jan 11, 2021 1:56 am
Forum: Pyboard D-series
Topic: Unable to write numpy arrays to '.txt' or '.DAP' files on SD
Replies: 5
Views: 502

Re: Unable to write numpy arrays to '.txt' or '.DAP' files on SD

Does anyone have an idea as to why this might be happening? My understanding is that f.write(data) should attempt to call mp_get_buffer_raise on the ulab array type. To isolate the problem, can you try doing import ulab as np data = np.zeros((3,3)) buf = bytes(data) print(buf) That will at least ch...
by kbrenner
Sun Jan 10, 2021 8:52 pm
Forum: Pyboard D-series
Topic: Unable to write numpy arrays to '.txt' or '.DAP' files on SD
Replies: 5
Views: 502

Unable to write numpy arrays to '.txt' or '.DAP' files on SD

Hi, I am trying to store data on the SD card on my PYBD-SF6W. I am running Micropython v1.13-150-gb7883ce74. I am able to write strings to '.txt' files no problem. I can also write dictionaries that contain numpy arrays to '.json' files without any issues. However, when I try to write numpy arrays d...
by kbrenner
Thu Dec 31, 2020 3:27 am
Forum: Pyboard D-series
Topic: "memory allocation failed, allocating 8192 bytes" error
Replies: 1
Views: 60

"memory allocation failed, allocating 8192 bytes" error

Hi, As a forewarning, I am novice with Micropython, so please be as explicit/thorough as possible with your recommendations/suggestions if you should have any :D . I am using a PYBD-SF6W with a microSD card attached. I am trying to read in variables from some files on the microSD card; however, I am...
by kbrenner
Thu Nov 19, 2020 3:45 pm
Forum: Pyboard D-series
Topic: EACCES issue with '/sd' subdirectory
Replies: 1
Views: 655

EACCES issue with '/sd' subdirectory

I am attempting to remove a directory on the SD card on the PYBD-SF6W. I am using the command os.rmdir(<name of directory>); however, I am receiving the following error: >>> os.rmdir('ControllerData') Traceback (most recent call last): File "<stdin>", line 1, in <module> OSError: [Errno 13] EACCES D...
by kbrenner
Thu Nov 12, 2020 7:39 pm
Forum: General Discussion and Questions
Topic: Moving files from flash to sd
Replies: 8
Views: 1097

Re: Moving files from flash to sd

I am using the PYBD-SF6W. I can easily see the contents from flash in Windows File Explorer, but I have no way of viewing the contents of the SD card. Within the REPL prompt I have no issues with running os.chdir('/flash') and os.chdir('/sd'), so that I can go back and forth between the two, but onl...
by kbrenner
Fri Nov 06, 2020 10:46 pm
Forum: General Discussion and Questions
Topic: Moving files from flash to sd
Replies: 8
Views: 1097

Re: Moving files from flash to sd

I do have the SD card inserted. I have confirmed that by being able to call os.chdir('/sd') and then os.listdir() from within the REPL prompt; however, I do not see any of its contents in Windows File Explorer.
by kbrenner
Fri Nov 06, 2020 8:22 pm
Forum: General Discussion and Questions
Topic: Log entire REPL prompt to SD
Replies: 7
Views: 595

Re: Log entire REPL prompt to SD

Thanks. I'm able to access the REPL prompt from WebREPL and write various python commands that I then see show up on the local REPL prompt; however, I do not see it working in the opposite direction. For example, I have a main script that looks like: import network ap = network.WLAN(network.AP_IF) a...
by kbrenner
Thu Nov 05, 2020 5:23 pm
Forum: Pyboard D-series
Topic: Connect to REPL over WI-Fi
Replies: 5
Views: 541

Re: Connect to REPL over WI-Fi

I am able to connect to the Pyboard over wifi, and in my REPL prompt, I see: DHCPS: client connected: MAC=74:da:38:e8:be:2c IP=192.168.4.16 On my webrepl, I have modified the IP address to look like: ws://192.168.4.16 However, when I hit connect, it immediately disconnects without anything else show...
by kbrenner
Thu Nov 05, 2020 3:48 pm
Forum: Pyboard D-series
Topic: Connect to REPL over WI-Fi
Replies: 5
Views: 541

Re: Connect to REPL over WI-Fi

Can you explain the steps involved with "On your device connect to the Wi-Fi network you set up in the code above (SSID)"? I am relatively novice with Micropython and the Pyboard in general.