Closed exit-failure closed 3 years ago
Which compiler are you using? The ARM compiler/linker included with Visual Studio seems to have problems, but the compiler downloaded from https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm/downloads (as detailed in https://datasheets.raspberrypi.org/pico/getting-started-with-pico.pdf ) works okay.
I also have that problem. I use the compiler from that link and it's still error, but in my macOS it's work fine. I followed the instructions in the datasheet every step. It confused me too.
This is the sort of question you should be asking on the forums, so I’m closing this issue. But please follow up with further comments if you have specific questions about the documentation.
The pico forum (https://www.raspberrypi.org/forums/viewforum.php?f=143) is lame. No replies to problems such as these. No help. Please don't keep directing us there unless it is helpful.
I sure would love to know how to resolve this as I spent the better part of a day trying to figure it out. I think it's a matter of nmake at the gcc compiler (even though cmake said it was using the gcc compiler).
UPDATE: FWIW, for other's that end up here. I was able to open objects1.rsp which was encoded in utf-8 DOM ins vscode and change it to utf-8 and it worked.
Since this issue was first created, we've released https://github.com/raspberrypi/pico-setup-windows (which has its own tutorial ), and also updated https://datasheets.raspberrypi.com/pico/getting-started-with-pico.pdf
I'm trying to build all examples in Windows. Unfortunately the process fails when it tries to link hello_usb. It reports that it can't find hello_usb.c.obj but it managed to build it and I can see that the file exists in the specified directory.