Comments (6)
For the next person who run into this issue here is an example of the other lines you need:
cmake_minimum_required(VERSION 3.12)
include(pico_sdk_import.cmake)
project(stepper_prog VERSION 1.0.0)
add_executable(stepper_prog)
target_sources(stepper_prog PRIVATE source.c)
target_link_libraries(stepper_prog PRIVATE pico_stdlib hardware_pio)
pico_sdk_init()
pico_generate_pio_header(stepper_prog ${CMAKE_CURRENT_LIST_DIR}/stepper.pio)
pico_add_extra_outputs(stepper_prog)
from pico-examples.
For the next person who run into this issue here is an example of the other lines you need:
This is all explained in Chapter 8 of https://datasheets.raspberrypi.com/pico/getting-started-with-pico.pdf ?
@lurch Given the odd phrasing of your reply you are either:
- Asking the question
Is this explained in https://datasheets.raspberrypi.com/pico/getting-started-with-pico.pdf?
to which the answer is: Yes! It is, specifically pages 30-31 :) - Or you are trying to be snarky. Clearly multiple people have been "led astray" (as the original poster puts it) by the Pico C/C++ SDK Documentation and I had personally been looking for an example to help me understand the full picture. Perhaps in the future you could phrase your replies in a more helpful way, such as
Full documentation for setting up a project can be found in Chapter 8 of https://datasheets.raspberrypi.com/pico/getting-started-with-pico.pdf
.
from pico-examples.
What steps did you use to try to build; what was the full output?
from pico-examples.
from pico-examples.
I realize what I did wrong. I was following the instructions on pages 33 and 34 of the Pico C/C++ SDK document and was led astray. The CMakeFiles.txt at this level is not complete. In order to make it work the way I was doing it I would have to add additional instructions to the CMakeFiles.txt. Perhaps the real issue is with the instructions on pages 33 and 34.
from pico-examples.
For the next person who run into this issue here is an example of the other lines you need:
This is all explained in Chapter 8 of https://datasheets.raspberrypi.com/pico/getting-started-with-pico.pdf ?
from pico-examples.
Related Issues (20)
- Add example of using TinyUSB CDC with extra stdio_usb iface
- Modify the pio uart examples to use DMA HOT 1
- ping examples hardcode an IP address
- Recommended launch.json is slow to connect due to no "adapter speed" setting
- No key press detected for pending in [iperf server] example HOT 1
- stdio_usb input available callback can't call other stdio functions, and pico-examples iperf assumes it can. HOT 3
- UART RX Garbage data recived HOT 5
- Pico-W to Pico-W STALL while sending UDP HOT 2
- Bug in BME280 SPI example when reading compensation parameters for humidity HOT 3
- Out-of-Memory Errors When Publishing MQTT Messages HOT 1
- host_cdc_msc_hid: incorrect len parameter in tuh_hid_report_received_cb HOT 1
- Bug in pio/uart_rx /uart_rx_intr.c HOT 6
- ir_nec variable length commands HOT 8
- How to do multiple TLS requests with changing request string HOT 2
- Example of starting and stopping btstack needed
- What does example iperf.c HOT 11
- Why MEMP_NUM_ARP_QUEUE lwIP options is set in lwipopts_examples_common.h if ARP_QUEUEING default value is 0? HOT 1
- Modbus TCP client over Wifi for Raspberry Pi Pico W (RP2040) HOT 1
- Issue in flash_program.c example
- Building for PICO_BOARD=pico2 fails HOT 4
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-examples.