-
Notifications
You must be signed in to change notification settings - Fork 225
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
Issues with compiling, getting to recognize serial output #150
Comments
first off, I want to appologize for venting my frustrations. you dont deserve that. cmake -DPICO_SDK_PATH="/c/pico/pico_sdk2" -DDEBUG_ON_PICO=ON -DPICO_BOARD=pico_w .. Target board (PICO_BOARD) is 'pico_w'. You can see that it referenced everything correctly. when I run make -j4: C:/pico/debugprobe/build/generated/pico_base/pico/config_autogen.h:7:10: fatal error: /c/pico/pico_sdk2/src/boards/include/boards/pico_w.h: No such file or directory I can, with great certainty, say the file DOES exist. |
Cc @will-v-pi |
as another update, vscode keeps trying to use ninja, but I followed the instructions for manually entering it into perferences>settings>cmake extension > cmake:generator > "NMake Makefiles" w/o quotes |
ping also @nathan-contino in case the documentation needs updating.
Yes. Pico W uses the same RP2040 chip as the Pico, and the CPU-cores in the RP2040 are Arm Cortex M0+ (see the Introduction chapter in https://datasheets.raspberrypi.com/rp2040/rp2040-datasheet.pdf ).
We used to recommend that in an earlier version of the Getting Started guide, because |
I'm just guessing here (I don't use Windows myself), but I wonder if part of the problem might be that some part of your system is trying to use MinGW-style paths ( |
Firstly, the debugprobe_on_pico firmware should work fine on Pico W, so there’s no need to compile it from source. The only thing that wouldn’t work would be the LED, but that wouldn’t be fixed by just setting Secondly, I just tried importing this repository and compiling it with the VS Code extension and didn’t encounter any issues, so it should work fine other than the PICO_BOARD setting - the extension requires a
This setting is ignored by the VS Code extension, as this is a setting for the CMakeTools extension and we compile separately from that extension. You can enable CMakeTools in our extension - there’s some instructions in issue 37 and we will add them to the readme too
This does look like the primary issue - these generated paths should be C:/ not /c/ - you could try specifying PICO_SDK_PATH with C:/ instead and see if that fixes it? You should also be able to compile from PowerShell using mingw64 rather than using the msys terminal, which is likely to work better - you may need to add your mingw64 tools to your path to make this work. Alternatively, for compiling from the command line on Windows, we would strongly recommend using WSL2 instead - setting up everything in WSL2 is much simpler than using msys. |
before going to sleep, I processed it for a bit, the conclusion I came to was the same, its having issues with the path interpolation. I'm on windows by choice right now, this laptop is the most mobile machine I have so out of convenience, I'm using it. I have two Linux-native machines, looks like I'm going to switch, as I see it being more sustainable with fewer issues. I was just hoping I could master this env, but the issues seem endless. my final attempt at this will come after spending some time to master the difference to fill out my knowledge. I will give the released firmware one more try, I was hoping to get the LED working so I had some sign of life from the picow, if that fails, I'll swith to another (I have the pins soldered to eliminate that vector of failure). Thank you all. not going to give up on this, despite the frustration, I still find the challenge fun |
got the debug output from openOCD. Its not getting response from the target picow anyone spot anything? |
I have good news and bad news, I was able to get it to receive output from the target picow, through the UART on the debugprobe picow. I can see the outputs in both putty and the serial monitor now. the issue with openocd appears to still remain. This is no longer your issue I believe. The problem now lies with openOCD. Thank you all. |
Are you happy to close this issue as a duplicate of #41 ? |
Please update the uf2 compilation instructions to reference Ninja as a possible build tool. I'm probably unusual in using Windows / VS Code, but it took me a while to work out that cmake had generated a set of ninja files, not the Makefile that the instructions assume, and therefore the instructions were not working. As it happens, I was also building for Pico2, which didn't even mention running make after cmake, so I had incorrectly concluded that the "make" line above was a typo. |
UPDATE: need someone to build for pico_w. All attempts fail due to not knowing where all configuration files stem from, where they go, and what they pertain to. setting in VScode vs cmake for windows vs the myriad of possible locations that I still cannot keep track of. Is it me, or does VScode make life harder than if one were to just use command lines?
PLEASE PLEASE JUST BUILD THE FIRMWARE AND PLACE INTO THE RELEASES
The text was updated successfully, but these errors were encountered: