Skip to content
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

RP2040-LoRa Development kit #1042

Closed
ObiLeek opened this issue Mar 30, 2024 · 6 comments
Closed

RP2040-LoRa Development kit #1042

ObiLeek opened this issue Mar 30, 2024 · 6 comments
Labels
resolved Issue was resolved (e.g. bug fixed, or feature implemented) template info missing Author of this issue ignored the issue template.

Comments

@ObiLeek
Copy link

ObiLeek commented Mar 30, 2024

I've been puzzling for a few days how to make this development kit work with this library. Here is the link to the wiki: https://www.waveshare.com/wiki/RP2040-LoRa

I'm trying the sample examples with a modified pinout:

#define NSS_PIN 13 // SPI Chip Selection (low active)
#define DIO1_PIN 16 // SX1262 interrupt output pin or special function pin
#define RESET_PIN 23 // Reset pin, low active
#define BUSY_PIN 18 // SX1262 BUSY Pin

But it just won't and won't work, I keep getting an error:
failed, code -2

@HeadBoffin HeadBoffin added the template info missing Author of this issue ignored the issue template. label Mar 30, 2024
@jgromes
Copy link
Owner

jgromes commented Mar 31, 2024

I would suggest to fill in the "module not working" template. In there, you will find a link to RadioLib Troubleshooting Guide, which I believe will help you greatly ;)

@ObiLeek
Copy link
Author

ObiLeek commented Mar 31, 2024

That was the first thing I did, but to no success.

@HeadBoffin
Copy link
Collaborator

That was the first thing I did, but to no success.

If you filled the template in, can you post it here, that's the first step in getting some meaningful assistance.

@GUVWAF
Copy link
Contributor

GUVWAF commented Mar 31, 2024

Similar to #729, for this module you have to use hardware device SPI1 (instead of the default SPI0) and configure the pins for SPI1 accordingly.

@HeadBoffin
Copy link
Collaborator

Ah, that's where that nugget of information had disappeared to, thanks for finding it.

@ObiLeek
Copy link
Author

ObiLeek commented Apr 1, 2024

Thank you, that was exactly right. In my particular case, like this:

Module* mod
MbedSPI SPI1(24, 15, 14);

void setup() {
      mod = new Module(LORA_CS, LORA_DIO1, LORA_RST, LORA_BUSY, SPI1);
}

In my specific case with this modul LINK, tcxoVoltage had to be set to zero.

@jgromes jgromes added the resolved Issue was resolved (e.g. bug fixed, or feature implemented) label Apr 1, 2024
@jgromes jgromes closed this as completed Apr 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
resolved Issue was resolved (e.g. bug fixed, or feature implemented) template info missing Author of this issue ignored the issue template.
Projects
None yet
Development

No branches or pull requests

4 participants