Starting LoRa Failed with MKR WAN 1300

Hi,

I have two MKR WAN 1300 and I'm trying to communicate between them using LoRa. I'm using the sender code that is found in the Examples menu. The code is

#include <SPI.h>
#include <LoRa.h>

int counter = 0;

void setup() {
Serial.begin(9600);
while (!Serial);

Serial.println("LoRa Sender");

if (!LoRa.begin(915E6)) {
Serial.println("Starting LoRa failed!");
while (1);
}
}

void loop() {
Serial.print("Sending packet: ");
Serial.println(counter);

// send packet
LoRa.beginPacket();
LoRa.print("hello ");
LoRa.print(counter);
LoRa.endPacket();

counter++;

delay(5000);
}

I just got the message

LoRa Sender
Starting LoRa failed!

Any hint?

I found the problem, just update the firmware using MKRWANFWUpdate_Standalone program that is propvided in the examples

@victorg2310, well done solving this yourself.

Your topic has been moved to a more suitable location on the forum. Installation and Troubleshooting is not for problems with your project :wink: See About the Installation & Troubleshooting category.

In future, please apply code tags to code that you post. It makes it easier to read, easier to copy and prevents the forum software from incorrect interpretation of the code.