Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8093

General • Re: Obtaining data on a PC through USB

$
0
0
Is there anything special in the boot.py of your STM32F411 board? The STM32 ports of MicroPython have some extra features enabled via the pyb.usb_mode() function. The way STM32 USB port is handled is rather different to the way it's done on the Raspberry Pi Pico.
You, right. The stm32 board has the special usb settings.
To help me understand your setup, is it something like a battery-powered data logger that periodically prints a line of data to the console (= USB serial port)?
Yes, my Pico has an independent power supply. Board gathers the data from the sensors and prints it to a display and the console (serial-port). And I connect the board to PC for an errors check, sometimes.
On STM32, you can connect the board and it outputs some data based on ongoing state, but with the Raspberry Pi Pico, the board resets and those data are lost?
Your understanding absolutely right. One correction, the board resets when my IDE (PyCharm or Thonny) connects to the Pico via REPL. USB cable connection has no influence to the program execution.

Statistics: Posted by nesergen — Sun Mar 16, 2025 10:45 am



Viewing all articles
Browse latest Browse all 8093

Trending Articles