-
Notifications
You must be signed in to change notification settings - Fork 442
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
After flashing the pico, no life sign from the board #743
Comments
Most likely the issue is the flash. A different bootloader is required for different flash vendors, and the Waceshare board may not use flash compatible with the original RPi Pico. ry the Generic board, and use the Generic SPI / 4 (i.e. slowest, safest) |
Hi, thanks for the answer. Even with the generic board nothing changes. still no life sign at any level.
The only way to have the board working is to use the "raspberry platform"
But this platform is missing a lot of stuff to work with most of the arduino libraries online and does not allow changing the pins of the i2c or SPI. Any idea on what can cause the problem? |
I was suggesting that it's not just the board you need to set, but the bootloader. Not sure the PIO commands to make it happen, but you want to use this boot2.S file to slow things down and use the safest single-bit SPI:
|
I get what you are saying. So the bootloader is missing and the board cannot execute any code. Still i don't know how to add the bootloader to the system, nor if it is possible to steal it from the raspberry platform |
Just to double check, when you use the Arduino IDE and the "Pico" or "Generic" board definition, the board also does nothing? If the Arduino IDE works, it's a fault on the PlatformIO side. For PlatformIO, the default bootloader is decided in the board's JSON https://github.com/maxgerhardt/platform-raspberrypi/blob/develop/boards/generic.json#L5 So if you open BTW, for |
BTW, what is on written on the small flash chip on the top of the board? Same as in https://www.waveshare.com/media/catalog/product/cache/1/image/800x800/9df78eab33525d08d6e5fb8d27136e95/r/p/rp2040-zero-3.jpg ? The product page says it's a
|
in this case the board works. same with platformio by using the raspberry platform and MBED core. boots writes over serial etc. but i'm missing a lot of stuff that are present in this platform.
4P03Z0022Y |
Okay so to tripple check, Arduino IDE + Arduino-Pico (not Arduino IDE + ArduinoCore-mbed) works. What version of the Arduino-Pico core is install when you go into the Arduino IDE's tools->board->board manager? Can you make a screenshot of the exact tool menu with which it works in Arduino IDE + Arduino-Pico? |
I've got hold of a few Waveshare RP2040-Zero, and tried one with the NeoPixel example I first tried with the Adafruit ItsyBitsy RP2040: #756 It's working fine with the Arduino IDE v1.8.19, with the board type set to Raspberry Pi Pico. I haven't verified that all the pins are mapped where they should be, but the ADC pins seem to be (finger test, reading out the values to the serial monitor), and the WS2812 works on pin 16, as advertised. I'm using it on Windows 7, so part of this may not apply. Initially, it didn't connect so I couldn't upload to it, but I used Zadig (see #96) to make Windows recognise it, after plugging it in with the Boot button held down. After uploading the first sketch with the Boot button held down as I connected it, I haven't needed to use the Boot button again - it's just working the same as a Pico. There could be different Flash versions though, I suppose, like there were with the ItsyBitsy RP2040. I don't know if I have anything capable of reading the label on the chip. I still have the PC I've been trying it with on arduino-pico 1.9.15, but that's probably not relevant to the issue @HexRebuilt is having. Is the Zadig (issue #96) thing relevant to Windows 10/11? That seems like the first thing to try. |
@maxgerhardt I found my cheap pair of watch repair glasses, and used a little torch to light the Flash chip. I can't photograph it easily, but this is what I've read, on all four that I have: 1P128 I don't know if that's a zero or a capital O, on the second line, of course. |
Could you say something in regards to #743? Still trying to exactly understand the situation.
With Arduino-Pico or ArduinoCore-mbed? You didn't specify it there. |
@maxgerhardt My comments were intended to relate to this current issue, but I can't claim to fully understand what @HexRebuilt is saying is the problem. I use Arduino, and only Arduino, in this case with Earle's arduino-pico core, and I was confirming that it works fine with those, giving the version numbers of both the IDE and the arduino-pico core I was using to test my new boards. I can try newer versions of those two things if it helps in any way, but I had reasons for leaving it as it was on that PC, for the moment. You asked for the marking on the Flash chip, recently, so I've given mine. I have no way of knowing if the ones @HexRebuilt has are the same, of course. |
Ahh my bad, I confused you with the other user. |
I see :) No problem. |
Hi guys sorry for the late reply. my problem is that, with platformio and arduino + MbdedOS the board works and do what is supposed to (except for the parts not implemented by mBedOS in platformio, requested by many off the shelf arduino libraries). For sure i'm doing something wrong here but i don't know what it is. |
And with the Arduino IDE + latest Arduino-Pico, it's the same, no matter if choosing the generic pico or RP2040 Zero? |
Can you take a screenshot of your exact Arduino IDE -> Tools menu with which it works with Arduino-Pico? The pic you uploaded doesn't display. |
Can you open a CLI and execute
to make sure you have all the latest versions? Your initial Remember to close the Arduino IDE serial monitor, then use the "Upload" task and then the "Monitor" task. (USB serial needs some time to show up). |
|
Huh. Did you initially install it with a In any case, please do a
then remove all folders |
ok i've updated everything and now i'm not able to upload the code for some reason.
|
When you plug the boot in in bootloader mode, does Zadig still show WinUSB drivers loaded for the Interface 1? See platformio/platform-raspberrypi#36 (comment) |
Weird how it doesn't say "RP2 Boot (Interface 1)" but "RP2 Boot". Can you show a screenshot of Zadig with the RP2 Boot Interface 1 device selected? |
And clicking replace driver and retrying the upload makes no difference? |
indeed. i've changed it again to USB Serial but nothing changes. Zadig reads it always as usbser. don't know if it's expected |
After loading "WinUSB" driver, it is indeed supposed to show "winusb" as the now loaded driver, if not the driver change has not worked. I currently do not have access to my board to show the "counter screenshot", that needs a few hours more. |
i was following the guide here https://arduino-pico.readthedocs.io/en/latest/install.html#windows-7-driver-notes for the driver. that's why it was not showing winUSB in the screenshot. tried again with WinUSB but nothing changes. it just misses "interface 1" in the windows device manager. |
Hm but Zadig shows the right driver is loaded at least, so it should work.. What happens in when you execute this in the VSCode terminal? (Pico board should be connected in bootloader mode of course)
|
i get this: |
I'm literally baffled by what is going on your computer or chip, never seen this before. It's running into an assert when reading from the memory of the Pico, the calculated number of bytes it wants to read was 0. There is a new version available (1.1.0), but PIO doesn't yet have it (https://registry.platformio.org/tools/platformio/tool-rp2040tools/versions). The only thing I can recommend for now is to set upload_protocol = mbed in the I can work on getting the newer picotool software version and autoreset for the UF2 upload enabled (so it's pretty much equivalent to what this core does) in the meantime. |
ok i've tried it. i'm able to upload the file over usb to double check i've done another upload with the arduni IDE and with copying the UF2 file. still works. I've no idea on what i'm doing wrong with platformio. To triple check. i've created a new project from scratch with the classical "hello" over seial and it uploads over platformio and kinda works. But in the instant want to use a BH1750 light sensor, then the board no longer boots, nor is recognised by windows. it's not the .begin() part that makes everything goes south but even doing: the following snippet is enough to make the board mad:
i have no idea on what's causing this issue, also with other pins. Naturally if i remove those instruction, everything goes back to "normal". |
OH. i'm dumb. sorry. so now it works i think. if so i'll bother you again. thanks a lot for the help |
Wait, does it work in PlatformIO too now? No more discrepency between PIO and Arduino? |
yes for the moment. i cannot use the old project tho. but that can be related to some of my programming error. i'm able to flash it with platformio |
Hi everyone,
i'm using a RP2040-Zero from waveshare https://www.waveshare.com/product/raspberry-pi/boards-kits/raspberry-pi-pico-cat/rp2040-zero.htm.
If i try to upload the code, even a simple "hello word" over serialUSB, nothing happens after the flashing is completed. It's like the board is not able boot or something because if i connect it over USB windows does not detect it and the code seems not running (tried to change a pin digital output to see if was something only related to the serialUSB but no changes there).
If i use platformio indicated platform (raspberry) even if it is missing a lot of key stuff that are present in the arduino-pico, the board is detected overt serial and i get the "hello word" print. So the board is ok and working from the hw point of view.
What am i doing wrong?
This is my platformio.ini file
[env:pico]
platform = https://github.com/maxgerhardt/platform-raspberrypi.git
board = pico
framework = arduino
board_build.core = earlephilhower
thanks in advance
The text was updated successfully, but these errors were encountered: