rp2040-blink's People
rp2040-blink's Issues
doesn't connect to serial port on FreeBSD
under FreeBSD, usb serial ports are named /dev/cuaU0, U1 and /dev/ttyU0, U1 and so on. The current program doesn't connect to it:
tingo@kg-bsbox:~/work/bitraf/2023/20231015_rust_pi_pico/rp2040-blink $ cargo run --release
Compiling autocfg v1.1.0
Compiling proc-macro2 v1.0.69
Compiling unicode-ident v1.0.12
Compiling syn v1.0.109
Compiling semver-parser v0.7.0
Compiling semver v0.9.0
Compiling num-traits v0.2.17
Compiling num-integer v0.1.45
Compiling rustc_version v0.2.3
Compiling nb v1.1.0
Compiling cortex-m-rt v0.7.3
Compiling quote v1.0.33
Compiling cortex-m v0.7.7
Compiling bare-metal v0.2.5
Compiling nb v0.1.3
Compiling num-rational v0.3.2
Compiling num-iter v0.1.43
Compiling void v1.0.2
Compiling embedded-hal v0.2.7
Compiling vcell v0.1.3
Compiling debug-helper v0.3.13
Compiling paste v1.0.14
Compiling crc-any v2.4.3
Compiling num-complex v0.3.1
Compiling volatile-register v0.2.1
Compiling bitfield v0.13.2
Compiling rp2040-pac v0.2.1
Compiling num v0.3.1
Compiling rp2040-boot2 v0.2.1
Compiling either v1.9.0
Compiling critical-section v1.1.2
Compiling usb-device v0.2.9
Compiling bare-metal v1.0.0
Compiling arrayvec v0.7.4
Compiling critical-section v0.2.8
Compiling itertools v0.10.5
Compiling embedded-time v0.12.1
Compiling rand_core v0.6.4
Compiling blink v0.1.0 (/zs/tingo/work/bitraf/2023/20231015_rust_pi_pico/rp2040-blink)
Compiling usbd-serial v0.1.1
Compiling cortex-m-rt-macros v0.7.0
Compiling num_enum_derive v0.5.11
Compiling num_enum v0.5.11
Compiling pio v0.1.0
Compiling rp2040-hal v0.3.0
Finished release [optimized] target(s) in 28.26s
Running `elf2uf2-rs -d -s target/thumbv6m-none-eabi/release/blink`
Found pico uf2 disk /media/RPI_RP2_E0C9125B0D9B_s1
Transfering program to pico
62.50 KB / 62.50 KB [=======================================================================================================================] 100.00 % 9.11 MB/s
the it just exits.
pi pico - the LED stops blinking after a while
cargo run --release works, and the output works as long as the terminal is connected to the com port
[C:\Users\torfinn.ingolfsen\OneDrive - Inventas AS\Documents\Inventas\0_faglig\utvikling\rust\embedded\rp2040-blink] $ cargo run --release
Finished release [optimized] target(s) in 0.07s
Running `elf2uf2-rs -d -s target\thumbv6m-none-eabi\release\blink`
Found pico uf2 disk D:\
Transfering program to pico
63.50 KB / 63.50 KB [=======================================================================================] 100.00 % 148.48 KB/s
Found pico serial on COM6
Off
On
Off
On
Off
On
Off
On
Off
On
Off
On
Off
On
Off
On
Off
On
Off
On
Off
On
Off
On
Off
On
Off
On
Off
On
Off
On
Off
If I connect the Pico without running cargo run --release
(it has the code already), the LED stops blinking after a while. Perhaps a buffer for the usb serial port fills up?
works with a picoprobe as programmer, but is kinda missing the point
If you change the runner to probe-run, and connect the Pi Pico via a picoprobe the programming prosess works, but it is kind of useless, as the program tries to write via the usb serial port
tingo@kg-elitebook:~/work/bitraf/2023/20231015_rust_pi_pico_test/rp2040-blink % cargo run
Updating crates.io index
Downloaded critical-section v0.2.8
Downloaded num-rational v0.3.2
Downloaded embedded-time v0.12.1
Downloaded num-complex v0.3.1
Downloaded bare-metal v1.0.0
Downloaded num-iter v0.1.43
Downloaded usbd-serial v0.1.1
Downloaded pio v0.1.0
Downloaded num v0.3.1
Downloaded rp2040-hal v0.3.0
Downloaded rp2040-pac v0.2.1
Downloaded num-integer v0.1.45
Downloaded 12 crates (829.8 KB) in 0.59s
Compiling autocfg v1.1.0
Compiling proc-macro2 v1.0.69
Compiling unicode-ident v1.0.12
Compiling syn v1.0.109
Compiling semver-parser v0.7.0
Compiling semver v0.9.0
Compiling rustc_version v0.2.3
Compiling num-traits v0.2.17
Compiling num-integer v0.1.45
Compiling quote v1.0.33
Compiling cortex-m-rt v0.7.3
Compiling nb v1.1.0
Compiling cortex-m v0.7.7
Compiling nb v0.1.3
Compiling bare-metal v0.2.5
Compiling num-iter v0.1.43
Compiling num-rational v0.3.2
Compiling void v1.0.2
Compiling embedded-hal v0.2.7
Compiling paste v1.0.14
Compiling debug-helper v0.3.13
Compiling vcell v0.1.3
Compiling volatile-register v0.2.1
Compiling crc-any v2.4.3
Compiling num-complex v0.3.1
Compiling bitfield v0.13.2
Compiling rp2040-pac v0.2.1
Compiling rp2040-boot2 v0.2.1
Compiling bare-metal v1.0.0
Compiling num v0.3.1
Compiling usb-device v0.2.9
Compiling either v1.9.0
Compiling arrayvec v0.7.4
Compiling critical-section v1.1.2
Compiling critical-section v0.2.8
Compiling itertools v0.10.5
Compiling embedded-time v0.12.1
Compiling blink v0.1.0 (/zs/tingo/work/bitraf/2023/20231015_rust_pi_pico_test/rp2040-blink)
Compiling rand_core v0.6.4
Compiling usbd-serial v0.1.1
Compiling num_enum_derive v0.5.11
Compiling cortex-m-rt-macros v0.7.0
Compiling num_enum v0.5.11
Compiling pio v0.1.0
Compiling rp2040-hal v0.3.0
Finished dev [unoptimized + debuginfo] target(s) in 1m 03s
Running `probe-run --chip RP2040 target/thumbv6m-none-eabi/debug/blink`
(HOST) INFO flashing program (27 pages / 108.00 KiB)
(HOST) INFO success!
RTT logs not available; blocking until the device halts..
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
not unexpected
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.