I had a similar problem. I am working on WSL2 Ubuntu.
In my case, the reason seemed to be that the path contained the characters '[' and ']'. Eliminating these characters solved the problem.
Search found 6 matches
- Wed Jul 06, 2022 12:55 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: How to build MicroPython for Pico (rp2)?
- Replies: 10
- Views: 66212
- Wed Jul 06, 2022 10:18 am
- Forum: Raspberry Pi microcontroller boards
- Topic: Problem with I2S irq on second thread - RP2040
- Replies: 2
- Views: 1974
Re: Problem with I2S irq on second thread - RP2040
Here's a possible reason for this behavior - the rate of IRQ callbacks is too fast to be serviced by the Micropython scheduler IRQ callbacks for both Timer and I2S objects don't get serviced immediately. The C code for these modules first push IRQ callback requests into a queue that is managed by t...
- Tue Jul 05, 2022 12:34 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: Problem with I2S irq on second thread - RP2040
- Replies: 2
- Views: 1974
Problem with I2S irq on second thread - RP2040
I will try to keep it simple and explain the problem without going into too much detail. I have a WavePlayer class that plays wave files using I2S (the builtin I2S object). The WavePlayer can play on the main thread or create a second thread and play on it (utilizing the second core). The main way I...
- Tue Jul 05, 2022 12:17 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: Timer gets stuck when thread is running - RP2040
- Replies: 4
- Views: 3690
Re: Timer gets stuck when thread is running
Thank for replying! I think it's possible that https://github.com/micropython/micropython/pull/8846 might fix this (the rp2 timer uses the scheduler, and the scheduler was not correctly thread-safe on rp2). I will test it tomorrow. I built and uploaded the MicroPython commit that you recommended but...
- Mon Jul 04, 2022 3:27 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: Timer gets stuck when thread is running - RP2040
- Replies: 4
- Views: 3690
Timer gets stuck when thread is running - RP2040
There seems to be a problem using the Timer and a thread simultaneously. The timer randomly gets stuck after a few seconds. The higher the frequency of the timer, the quicker it gets stuck. Note: I am using MicroPython v1.19.1 where rp2 memory corruption bug in thread was fixed. I came across these ...
- Mon Jun 27, 2022 7:01 pm
- Forum: General Discussion and Questions
- Topic: How to check if file exists?
- Replies: 5
- Views: 12282
Re: How to check if file exists?
Here is another way to check if a file or folder exists. This solution does not use open/close, try/except. It does not check if the path is a file or folder. # Check if path exists. # Works for relative and absolute path. def path_exists(path): parent = "" # parent folder name name = path # name of...