Page 1 of 1

CMake Error at pico_sdk_import.cmake:62

Posted: Tue Sep 16, 2025 12:01 pm
by HansJuergenHalder
Hello,

when I try to flash the Blink program onto an RP2040, I get the following error message:

C:\sonstiges\Flowcode\Flowcode10\Flowcode1Pico>REM DIR: FCD\PICO\batch\pico_build.bat
Building Flowcode1Pico ...
**********************************************************************
** Visual Studio 2022 Developer Command Prompt v17.14.14
** Copyright (c) 2025 Microsoft Corporation
**********************************************************************
. . .

CMake Error at pico_sdk_import.cmake:62 (message):
Directory 'C:/Users/Vati/.pico-sdk/RPI' does not appear to contain the
Raspberry Pi Pico SDK
Call Stack (most recent call first):
CMakeLists.txt:7 (include)
-- Configuring incomplete, errors occurred!

Microsoft (R) Program Maintenance Utility, Version 14.44.35216.0
Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.

NMAKE : fatal error U1064: MAKEFILE nicht gefunden und kein Ziel angegeben
Stop.

Build Failed

The following is entered in the options under storage locations:

PICO: C:\Users\Vati\.pico-sdk

Re: CMake Error at pico_sdk_import.cmake:62

Posted: Tue Sep 16, 2025 10:28 pm
by mnfisher
Try without the period ('.') - in the folder name.

This might be giving Windows / Make an issue?

Martin

Re: CMake Error at pico_sdk_import.cmake:62

Posted: Wed Sep 17, 2025 6:42 pm
by HansJuergenHalder
Hello,

I fixed the issue by installing the Pico SDK in a different folder.

Unfortunately, the error message still appears.

Re: CMake Error at pico_sdk_import.cmake:62

Posted: Wed Sep 17, 2025 7:22 pm
by chipfryer27
Hi

Can you post your Flowcode file so we can have a look (.fcfx) ?

Regards

Re: CMake Error at pico_sdk_import.cmake:62

Posted: Thu Sep 18, 2025 11:58 am
by HansJuergenHalder
Hello,

Please find the test file attached.

Re: CMake Error at pico_sdk_import.cmake:62

Posted: Fri Sep 19, 2025 1:36 am
by HansJuergenHalder
Hello

After installing Pico as described by Flowcode, I got the error message “Toolchain not available” again. I was able to resolve this error. The error pico_sdk_import.cmake still exists. However, I then realized that I could no longer compile Pico in VS Code. I let VS Code repair the pico-sdk. Now I can program the Pico in VS Code again. Then I struggled with the “Toolchain not available” problem again. I was able to solve this by installing the toolchain under pico-sdk, which VS Code had set up. This did not change the error message pico_sdk_import.cmake:62.

Re: CMake Error at pico_sdk_import.cmake:62

Posted: Fri Sep 19, 2025 10:23 am
by medelec35
Hello.
I have just followed the instructions and installed PICO tool chain.
The version of Build tools is slightly different and I used a different location for pico-sdk directory.
At least it all worked first time and successfully programmed my PICO.
For that reason I have moved your topic from Bugs as it's not a Flowcode or Toolchain bug.
I would suggest to follow the instructions very carefully step by step.