vha3 / Hunter-Adams-RP2040-Demos

Demo code for the Raspberry Pi Pico
193 stars 54 forks source link

Windows installation instruction. #1

Open Philosophist opened 1 year ago

Philosophist commented 1 year ago

I had to restart windows after some of the installation to get around an error when trying to run the command cmake -G "NMake Makefiles" .. It might have been Cmake or something that needed a restart after installation. Worth adding a restart step to the instructions. Thanks so much for making these instructions publicly available.

AndrewCannon commented 10 months ago

I have been trying to get this to compile for a few nights now. I have tried a fresh install of VS2022 and 2019 and restarting. I was able to build and compile the "pico-example." I tried doing all of this in a dev container. I googled around and saw that some people had the same error and changed the generator to "MinGw" but this also didn't work (maybe I need to note this change somewhere else?). Below is the error message I get. I am pretty to new compilers so I could be doing something wrong but I followed the "Setting up the Raspberry Pi Pico for C/C++ Development on Windows" closely.

Any suggestions on what to try to fix this error?

I'm also new to microcontrollers and got interested in them after tinkering with my 3d printer and the Klipper FW. My only other experience is doing the Advent Calendar from PiHut but that used micropython (OMG so much simpler haha). I understand that there is a lot more control using C but do you think I could try to do this course using micropython? This compiling stuff is driving me nuts.

C:\Users\xxx\Desktop\personal\PicoStuff\Hunter-Adams-RP2040-Demos\build>cmake -G "NMake Makefiles" ..
Using PICO_SDK_PATH from environment ('..\..\pico-sdk')
PICO_SDK_PATH is C:/Users/xxx/Desktop/personal/PicoStuff/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
CMake Error at CMakeLists.txt:6 (project):
  Running

   'nmake' '-?'

  failed with:

   no such file or directory

-- Configuring incomplete, errors occurred!
HarryDrones commented 5 months ago

I'm just a hobbyist and I wouldn't even be looking here if I had not been able to try the beacon example as a .uf2 . Any chance the voice version could be compiled into a .uf2 for download ? I want to try using a simple analog AM circuit output as the input on the Pico ADC and then use SDR to hear it. The beacon comes in loud and clear on the SDR.

vha3 commented 5 months ago

Hi HarryDrones, can you send me an email (vha3@cornell.edu), and I'll send you a .uf2?