Comments (11)
you need to run it from a visual studio developer command prompt (or whatever it is called)
from pico-sdk.
Just for the sake of completeness (not that it really matters, because our instructions say to use nmake
), but it turns out that the problem with ninja
is that GCC outputs dependency-information in a slightly-incorrect format that ninja
can't understand.
https://gitlab.kitware.com/cmake/cmake/-/issues/21997#note_929924
EDIT: ...which in turn has been fixed in the master
version of ninja
, ninja-build/ninja#1774 but seems like it isn't yet included in a released-version of ninja.
from pico-sdk.
The fix for ninja-build/ninja#1774 are included in ninja release 1.10.1 and later
from pico-sdk.
I think there is a problem with the ninja CMake generator and pico-examples, can you try setting "NMake Makefiles" as the preferred/default build generator in CMake plugin settings?
Excellent, that fixed it, many thanks kilograham :). So for everyone else, you need to add the "NMake Makefiles" to the Settings tab of the extension under the entry labelled:
Cmake: Generator
The CMake generator to use
from pico-sdk.
Also if you are using VS Code on something other than Windows you likely need to change this to "Unix Makefiles"
from pico-sdk.
I've now updated the documentation to reflect this, will be available in the next docs release expected today.
from pico-sdk.
I think there is a problem with the ninja CMake generator and pico-examples, can you try setting "NMake Makefiles" as the preferred/default build generator in CMake plugin settings?
from pico-sdk.
'nmake' is not recognized as an internal or external command,
operable program or batch file.
I follow the instructions in pdf running on Windows. All good until trying to run nmake.
D:\2021\RpiPico\pico-examples\build>cmake -G "NMake Makefiles" ..
Using PICO_SDK_PATH from environment ('....\pico-sdk')
Pico SDK is located at D:/2021/RpiPico/pico-sdk
Defaulting PICO_PLATFORM to rp2040 since not specified.
Defaulting PICO platform compiler to pico_arm_gcc since not specified.
-- Defaulting build type to 'Release' since not specified.
PICO compiler is pico_arm_gcc
PICO_GCC_TRIPLE defaulted to arm-none-eabi
-- The C compiler identification is GNU 10.2.1
-- The CXX compiler identification is GNU 10.2.1
-- The ASM compiler identification is GNU
-- Found assembler: C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2020-q4-major/bin/arm-none-eabi-gcc.exe
Defaulting PICO target board to pico since not specified.
Using board configuration from D:/2021/RpiPico/pico-sdk/src/boards/include/boards/pico.h
-- Found Python3: C:/Python38/python.exe (found version "3.8.7") found components: Interpreter
TinyUSB available at D:/2021/RpiPico/pico-sdk/lib/tinyusb/src/portable/raspberrypi/rp2040; adding USB support.
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
ELF2UF2 will need to be built
PIOASM will need to be built
-- Configuring done
-- Generating done
-- Build files have been written to: D:/2021/RpiPico/pico-examples/build
D:\2021\RpiPico\pico-examples\build>nmake
'nmake' is not recognized as an internal or external command,
operable program or batch file.
from pico-sdk.
you need to run it from a visual studio developer command prompt (or whatever it is called)
Thanks a lot. It works. You save me a lot of time and headaches. I still have to figure out how to use VSCode. Is it possible to use J-Link for debugging on Windows?
from pico-sdk.
I've now updated the documentation to reflect this, will be available in the next docs release expected today.
You may also have to specify not to skip installing the Windows 10 SDK from VS build tool installation step. Because not installing the SDK will cause NMAKE to fail. Installing the Windows 10 SDK solved an error I encountered later.
from pico-sdk.
I'll add a note to the Getting Started book to this effect.
from pico-sdk.
Related Issues (20)
- USB stdio issue at lower sys clock HOT 1
- pico_flash should depend on hardware_exception HOT 3
- bootrom.h requires a __force_inline on rom_hwords_as_ptr ?
- dead code in __aeabi_dcmpun HOT 1
- Add test to check all library dependencies
- Need help for use I2C Slave mode HOT 2
- .wrap_target at the end of a PIO program is allowed, but generates bad code
- Unable to Integrate mbedtls with Pico-SDK - CMake Build Fails [build] <command-line>: fatal error: mbedtls_config.h: No such file or directory HOT 1
- Support MRAM flash (no erase cmd, etc.)? HOT 8
- Allow redirecting malloc functions to user defined functions HOT 1
- check_alloc uses wrong size for calloc
- cyw43_arch_init stuck in infinite loop HOT 1
- How to write to flash safely HOT 3
- Interrupt enabling without callback could use an assert
- elf2uf2 on s390x: ERROR: Not an ELF file HOT 2
- No MQTT transmission after some time
- HARDFAULT HANDLER IN PICO-SDK !!! HOT 1
- Ability to "set" OSC frequency dung runtime? HOT 7
- Add Newsan's Archi board HOT 2
- hard_assert in initialise_rand() when all perf counters in use 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 pico-sdk.