Lora-e5-mini lib

Hi,
I am having difficulty programming the lora-e5 module.
has anyone already used this card?
Are there any ready-made libraries?
thanks for your time

I found an interesting library ( GitHub - chandrawi/LoRaRF-Arduino: Arduino library for basic transmitting and receiving data using LoRa and FSK modulation) allows you to communicate with the rfm module via spi.
looking at the manual of the card (stm32wl5) I found the internal pins of the SPI, in this case SUBGHZSPI ( Datasheet - STM32WLE5xx STM32WLE4xx - Multiprotocol LPWAN 32-bit Arm® Cortex®-M4 MCUs, LoRa®, (G)FSK, (G)MSK, BPSK, up to 256KB flash, 64KB SRAM)

the problem is that i still can't initialize the lora module, can someone help me?

#include <BaseLoRa.h>
#include <SX126x.h>
#include <SX126x_driver.h>
#include <SoftwareSerial.h>

SoftwareSerial mySerial (PB7, PB6);

SX126x LoRa;

// Message to transmit
char message[] = "HeLoRa World!";
uint8_t nBytes = sizeof(message);
uint8_t counter = 0;




void setup() {
  // put your setup code here, to run once:
  mySerial.begin(9600);
  mySerial.println("Begin LoRa radio");
  
  SPIClass SPI_2(PA7,PA6,PA5); //mosi,miso,clk
  LoRa.setSPI(SPI_2, 16000000); // 12MHz to 16MHz

  // Begin LoRa radio and set NSS, reset, busy, IRQ, txen, and rxen pin with connected arduino pins
  // IRQ pin not used in this example (set to -1). Set txen and rxen pin to -1 if RF module doesn't have one
// irqPin = PB3 
  int8_t nssPin = PA4, resetPin = PA11, busyPin = PA12, irqPin = -1, txenPin = -1, rxenPin = -1;

  if (!LoRa.begin(nssPin, resetPin, busyPin, irqPin, txenPin, rxenPin)){
    mySerial.println("Something wrong, can't begin LoRa radio");
  }
  mySerial.println("End setup");
}

Are you programming via the Arduino IDE ?

I tried with arduino ide, but without a positive result.
For the moment I found a lorawan project for the stm32cube ide and I m working to adapt it for a ping pong example.
The probel with this board is that there are not the physical pins for the subghzspi, so my code in the arduino ide can't run.

Is this for use with the Esplora?

If it is - then you don't need SoftwareSerial because the Esplora has an available hardware UART, Serial1 (with rx/tx on D0/D1, PD2/PD3).

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