GithubHelp home page GithubHelp logo

Comments (6)

jackcampbell19 avatar jackcampbell19 commented on August 16, 2024 1

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.

jackcampbell19 avatar jackcampbell19 commented on August 16, 2024 1

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:

  1. 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 :)
  2. 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.

kilograham avatar kilograham commented on August 16, 2024

What steps did you use to try to build; what was the full output?

from pico-examples.

rwcooper33 avatar rwcooper33 commented on August 16, 2024

from pico-examples.

rwcooper33 avatar rwcooper33 commented on August 16, 2024

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.

lurch avatar lurch commented on August 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.