Connection between RP2040<->U-blox module

Hi. I'm trying to write a custom NINA-like firmware for the U-blox WiFi module, however, I could not find out which pins are being used to connect the RP2040 and the U-blox module.

After looking at the WiFiNINA library examples, it seems like the RP2040 and the U-blox module are connected using UART/Serial and SPI.

Since I'm writing my custom firmware in Rust, I can't just do something like SPI.begin(), I have to initialize the SPI interface with the specified pins. As for the serial communication, I also don't know which pins are being used.

I tried looking at the nina-fw code, but I can't find any pin definitions. I did manage to find out that SerialNINA is Serial3, but I could find what pins Serial3 uses.

Can anyone tell me which pins are being used to connect the RP2040 and the U-blox modue over Serial and SPI? Thanks :slight_smile:

it is SPI1

#define SPI_MISO1 (digitalPinToPinName(25))
#define SPI_MOSI1 (digitalPinToPinName(28))
#define SPI_SCK1 (digitalPinToPinName(29))

https://github.com/arduino/ArduinoCore-mbed/blob/main/variants/NANO_RP2040_CONNECT/pins_arduino.h

and you can see it in the schematics too

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.