Comments (6)
Somehow wmic
is reporting something very weird on your system. each drive entry should be 2-3 bytes (i.e. C:
), not >200, and there shouldn't be anything outside plain ASCII.
Can you open a cmd window and run wmic path win32_logicaldisk get deviceid, volumename, filesystem, drivetype
and post the output to let us see what the script is seeing?
from arduino-pico.
I suspect a volume name has an accented character. Although these are in the range 128-255, some in that range get utf8 encoded.
from arduino-pico.
Thanks ! Solved
No bug ,the problem was on my side : µ character in a volume name
Here was the result of mentionned windows cmd :
DeviceID DriveType FileSystem VolumeName
C: 3 NTFS
D: 3 NTFS
E: 3 FAT32
F: 2 FAT32 µSD
Solved
from arduino-pico.
Makes sense, mu is 0xE6 in the French extended character set. So the volume name is reported in pure ASCII but is being interpreted in Python as utf8 encoded, and then it is an illegal sequence. So it is a bug, since the extended character set is allowed in Windows volume names.
from arduino-pico.
Well, not pure ASCII as that would only have from 0..127, but in the Windows codepage for French which is definitely not UTF-8!
It's a pain because the upload tool is itself from Microsoft(!!!) and they mixed up codepages and utf-8. If SO is correct, WMIC uses the codepage for piped outputs but changes to Unicode if redirected to a file.
from arduino-pico.
Oh, and thanks @al1fch for following up. Now that I know how to repro on Windows, I can try and find a solution. Powershell, maybe, as I think that's always unicode...
from arduino-pico.
Related Issues (20)
- Serial not working on Pico W
- Help with crt0 SIGTRAP error? HOT 6
- Feature Request: Writing to SingleFileDrive HOT 2
- How to include mongoose web server and freertos
- Feature Request / Advice: Select HID Types on startup/during runtime HOT 2
- Serial objects within another class
- Unable to compile in PlatformIO on latest version - WiFiClass.cpp
- W5500 example compile error HOT 2
- WiFiClient-W5500.ino despite https://github.com/earlephilhower/arduino-pico/pull/1966 HOT 5
- [Feature Request] Wiznet W6100 HOT 4
- Multicore on Arduino RP2040 Nano unsuccessful HOT 2
- Can't get wifi to work with aliexpress "Pi Pico W" with esp8285. HOT 1
- Request for upload Uf2 file ,will need to without hold the BOOTSEL button HOT 1
- uf2conv.py cause warning message during upload phase HOT 2
- Problem with Signed Updates and using second core HOT 3
- FreeRTOS examples (Multicore_FreeRTOS.ino and StaticMulticore-FreeRTOS.ino) did not work.
- W5500 connected() not dynamically changing HOT 4
- FreeRTOS examples (Multicore_FreeRTOS.ino and StaticMulticore-FreeRTOS.ino) STILL did not work. HOT 4
- Feature Request - Update the core to support debugging with Arduino IDE 2.3 and Arduino CLI 0.35.0 HOT 2
- "Forcing software SPI - no hardware SPI for you!" HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arduino-pico.