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
Error building hello_usb on Windows 10 #153
Comments
I've not read through that guide. Did you look at Chapter 9 (section 9.2) of https://datasheets.raspberrypi.org/pico/getting-started-with-pico.pdf, which is the official guide to how to do this, and worked as of 2 days ago when I last tested it. While Raspberry Pi does not directly support it there is also third-party installer script for Windows 10 that is roughly equivalent of the |
@aallan It seems that some users (even when following our PDF instructions) are getting a weird UTF-8 byte-sequence in one of their build-files, and this is causing some part of the build-system to choke. But as of yet neither myself nor @kilograham have been able to figure out why, and we can't reproduce the problem ourselves. |
Yup. I've had a go at reproducing it. I also can't figure out what's going on, "Works on my machine™" . 🤷♂️ |
My guess is (was?) that there is a tutorial somewhere on the web that's the root cause of this, it's telling them to do something that mostly but not always works. |
My guess was some kind of character-encoding / localisation / filesystem issue, but who knows 🤷♂️ |
i have not (nor will be at any time soon) looked in any detail. the UTF-8 byte sequence is a "byte order marking" that Windows/some windows editors like to insert at the top of UTF-8 files when writing them. these seem to get into the file containing filenames to link, and hence presumably the first filename. Either this only happens sometimes or some versions of ARM gcc can cope with it. Also, allegedly the problem goes away if you use ninja (or mingw), so nmake is part of the mix |
I'm up and running now :) |
@HrOlsen I think it's the fact that it uses mingw that "fixes" it for you. (which Graham also mentions in his comment above) |
I've followed this guide step by step:
https://www.element14.com/community/community/raspberry-pi/blog/2021/01/24/working-with-the-raspberry-pi-pico-with-windows
And everything works in "Developer Command Prompt for VS 2019" until the linking where I also have the "╗┐" in front of the directory path with the object files in.
The text was updated successfully, but these errors were encountered: