Open anandijain opened 1 day ago
Hello, Without debug probe, you cannot use defmt logging. If you have another pico, you could make it into a probe and use it on the other. Or as an alternative, you can use the usb_serial.rs example to read and write message to the Pico. You can then use pyserial read and write to the usb serial or any other similar program. This is the code I use on Linux.
import serial
def main():
with serial.Serial(
port="/dev/serial/by-id/usb-Embassy_USB-serial_example_12345678-if00",
baudrate=921600,
timeout=1,
) as ser:
while ser.is_open:
message = input()
if len(message) == 0:
message = " "
ser.write(message.encode())
while ser.in_waiting == 0:
pass
response = ser.read(ser.in_waiting)
print(response.decode())
if __name__ == "__main__":
try:
main()
except KeyboardInterrupt:
pass
hello and apologies if this isn't the best place to ask this.
i am trying to run a basic hello world program that prints to the terminal on my pico w.
im able to get
examples/rp/src/bin/wifi-blinky.rs
example to work by following the instruction in the embassy book (replacingprobe-rs
withelf2uf2-rs
in.cargo/config.toml
: https://embassy.dev/book/#_how_to_deploy_to_rp2040_without_a_debugging_probemy issue is I just can't seem to get any terminal output using
info!
commands. is it possible to log information to my terminal without a debug probe? i am new to embedded programmingmy code is here. when i do a
cargo run --release --bin hello_world
, I can see that the pico is getting flashed (because of the page and address info):So it seems like everything runs (just like with the
wifi_blinky
example). but no output in my terminalany help would be greatly appreciated! thank you!