GithubHelp home page GithubHelp logo

Comments (5)

ithinuel avatar ithinuel commented on July 28, 2024

RTT is not used by the pwm_blink examples.
This is why the probe does not attach to it.
You can look at defmt-rtt to use with probe-rs for logging.

The rp2040-project-template set it up if you're looking for some reference code.

from rp-hal.

1-rafael-1 avatar 1-rafael-1 commented on July 28, 2024

thanks for the superquick reply!
Found most of the stuff, fiddled it into working.
I can now flash via the probe, no error message.
The led won't blink though. So maybe this is not for me... :-) There must still be some key thing I am not doing. I'll do some reading around. After all, the thing won't blink even if I flash by bootsel, so... well.
Anyway, thanks again!

from rp-hal.

ithinuel avatar ithinuel commented on July 28, 2024

Feel free to join our matrix channel and we'll be happy to help over there too :)

from rp-hal.

jannic avatar jannic commented on July 28, 2024

The led won't blink though

The most common cause for this is that you are using a Pico W. On that board, the LED is not directly connected to the RP2040, so it can't be controlled by toggling a GPIO pin. Instead, it's necessary to communicate with the Wifi coprocessor, which isn't implemented in rp2040-hal.

If that's the case, you have a few options:

  • Use embassy-rp, which implements a wifi driver
  • Connect an external LED to one of the GPIO pins and use that (don't forget a series resistor)
  • Buy an RP Pico (without W)

from rp-hal.

1-rafael-1 avatar 1-rafael-1 commented on July 28, 2024

@jannic and @ithinuel thank You both for Your hints & tips! I managed now! (I indeed have a Pico W and indeed wiring up on e LED on another Pin did the trick)

Now I begin to know how many things I don't know :-)

So, that being done I will next see if I can set up a new repo and slowly put all the things in place that I need to get to a flashing LED step by step in order to get an idea how this works.
There is a ton in that small example that I do not yet understand and ... well... I'll see if I can manage. Maybe this time I need to pick up a book or tutorial first, unliked MicroPython which one can figure out (to some degree) by just reading examples.

Thanks again, this has been two fun evenings already :-)

from rp-hal.

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.