-
Notifications
You must be signed in to change notification settings - Fork 90
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
Arduino Nano RP2040 Connect blinky example not working #80
Comments
The example says it blinks an LED attached to GPIO25, but there's no LED attached to that pin. |
The comment refers to GPIO25 but it looks like it actually uses SPICLK/SCK0, which does have an LED attached. I think the comment is incorrect but I'll dig out a multimeter and check anyway. Edit: neither GPIO25 nor SCK0 are showing any changes when probed with a multimeter. |
Progress! In the lib.rs file for the Arduino board, there's some lines that select the bootloader. The generic one is enabled and a specific one is commented out. Swapping these over and recompiling gives me the blinky LED I'd expect: This works (for me):
I recall some comments that different flash chips were used during the chip shortages, but I'm not sure which I have or why the generic option didn't work. I'm happy to test out any suggestions people have to make this work without modifications. |
BOOT_LOADER_GENERIC_03H should be the most forgiving boot2 implementation, it's surprising that it doesn't work here. |
I've checked and my board does have the AT25SF128A flash chip so that makes sense. However, having looked through the history of the various related repos I see that there's already been a move from specific->generic because of different flash chips being used (rp-rs/rp-hal#503). Given that, I won't raise a PR to change it back. I'll try any suggestions to understand the problem with the generic bootloader, though. |
I'm able to run |
The example doesn't contain any USB code, it's the bare minimum to blink the LED. So it's expected that the USB port doesn't work while the example is running. |
I'm trying to get set up with the Arduino Nano RP2040 Connect board, but can't get the blinky example to work. I've tested that the Arduino IDE can program its own blinky example (so the board/LED definitely works) and I've tried the pico_blinky example on a Pico board and seen the flashing LED there (so I think my toolchain's OK). However, when I run
cargo run --release --example nano_blinky
I can see that the UF2 is copied to my board, which then reboots (so I lose the drive that it appears as in bootloader mode) but there's no sign of a flashing LED.I don't have the means to connect a debugger to the board, and I don't see any indication of any signs of life. Can anyone suggest where I might be going wrong?
The text was updated successfully, but these errors were encountered: