Hi ı am using Arduino ide to code my raspberry pi pico and ı can upload basic blink code but if ı wanna upload another code ı need to unplug and plug in while pushing the bootsel button in addition ı cannot get any output because, after ı upload the code, it immediately disconnects
This is the way the Raspberry Pi Pico is supposed to behave. When the bootloader is running, it connects to the USB, and fakes being a mass storage device. When a file is copied to the 'drive' the bootloader puts it into the flash memory of the Pico. Once that it done, the bootloader's job is finished, so it resets the Pico CPU, and starts running whatever code is in the flash memory.
If you want output from the Pico, then your code needs to call Serial.begin() to set up the USB port on the Pico as a serial interface to the computer. Once that is done, Serial.print() will be able to send characters to the host computer, and Serial.read() will be able to get characters sent from the host computer to the Pico.
ı tried to use basic arduino ide example code analog read but it didnt give any output ı connected a pot as well
Almost Same here. I was trying to read the serial data from the pico. The code uploads and the pico gets ejected. But as per @kellygray reply , i couldn't detect the usb becoming serial interface to the computer after calling the Serial.begin() and Serial.println()
yeah thats what ı am saying ı tired to read voltage from adc0 port using a pot and example code in arduino ide but it didnt work at all ı mean is there a diffrent way to test that idk
One alternative to do is to use it via hardware-UART.
See section 9.1.4.1 of https://datasheets.raspberrypi.com/pico/getting-started-with-pico.pdf
it looks like ı would need a external component is there any other way
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.