Replies: 4 comments 4 replies
-
|
Thanks for pointing this out. I'm off tomorrow, but I'll have a look as soon as I'm back. It should be easy to fix. |
Beta Was this translation helpful? Give feedback.
-
|
I had a look at this. Never really worked on something like this before but was motivated. After some checking, the root folder checking could be implemented in Device.js in the _onConnectedHandler right before it checks for the PymakrConf on the board. A possible version could be something like However, I wasn't able to get this to run |
Beta Was this translation helpful? Give feedback.
-
|
The latest preview release has experimental support for custom root folders. You can find it here. To add a custom path, go into the config and click In settings.json, you can then add your own device. You can set the root path for a single device by using its serial number or a range of devices by using a field like |
Beta Was this translation helpful? Give feedback.
-
|
@Arcadia197 that's a great idea. But is CWD always guaranteed to be the root path? What happens if you connect a device where |
Beta Was this translation helpful? Give feedback.



Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Then it's also relevant to be clear about the MCUs root folder, as all synch and read/write operations will need to be relative to that.
Depending on the firmware and hardware the root can be one of:
/flashon - Pycom and Lobo derivatives/on Micropython, circuitpython, pycopy/sdon systems that mount an sd card but little flash ( Pyboard 1.1)In V1 together with @RalphHogenbirk we added a mpy script to test/detect the writable root for a device.
V2 should also have a way to determine this, either through a similar method, or by keying of the USB or firmware information, and possibly with a manual device override
Beta Was this translation helpful? Give feedback.
All reactions