Comments (5)
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.
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.
Feel free to join our matrix channel and we'll be happy to help over there too :)
from rp-hal.
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.
@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)
- GPIO pins should have inherent infallible methods HOT 1
- Clock errors cannot be printed with deft
- I2C on GPIO24/25 not working HOT 13
- Update terminology for I2C (and possibly other peripherals)
- Input Enable now turned off on ADC capable GPIOs (Errata RP2040-E6) HOT 2
- Missing impls for Pin<_, DynFunction, _> HOT 12
- Should there be a default impl for hal::serial::blocking::Write? HOT 3
- Support use of slice for Program code HOT 1
- Note on how to acquire Pin's number as an integer HOT 1
- Crates.io version HOT 2
- ADC read blocks HOT 3
- embedded_io::serial::Reader implementations drop data on error
- rp2040_hal::halt() makes rp2040 un-debuggable even though comment in function says debugging will stay possible
- Does rp2040_hal::spi::Spi implement the embedded-hal 1.0 SpiDevice trait? HOT 3
- Cycling a buffer with DMA HOT 5
- Support for #[thread_local]? HOT 3
- Multicore Lockout HOT 11
- Readme seems to use wrong cargo run command HOT 1
- I2C example produces weird non-working results HOT 3
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 rp-hal.