arduino-libraries / MKRWAN_v2

[Beta] Library for Arduino MKRWAN 1300 / 1310 suitable for firmwares derived from ST sources
GNU Lesser General Public License v3.0
7 stars 6 forks source link

'SerialLoRa' was not declared in this scope #33

Closed marimelhanafy closed 9 months ago

marimelhanafy commented 9 months ago

When running (MKRWANFWUpdate_standalone.ino), I am getting this error:

WARNING: library MKRWAN_v2 claims to run on samd, mbed architecture(s) and may be incompatible with your current board which runs on mbed_portenta architecture(s).
C:\Users\M\AppData\Local\Temp.arduinoIDE-unsaved2023818-7392-ond0ck.taup\MKRWANFWUpdate_standalone\MKRWANFWUpdate_standalone.ino: In function 'void setup()':
C:\Users\M\AppData\Local\Temp.arduinoIDE-unsaved2023818-7392-ond0ck.taup\MKRWANFWUpdate_standalone\MKRWANFWUpdate_standalone.ino:39:18: error: 'SerialLoRa' was not declared in this scope
port.dev = &SerialLoRa;
^~~~~~~~~~
C:\Users\M\AppData\Local\Temp.arduinoIDE-unsaved2023818-7392-ond0ck.taup\MKRWANFWUpdate_standalone\MKRWANFWUpdate_standalone.ino:39:18: note: suggested alternative: 'SerialFifo'
port.dev = &SerialLoRa;
^~~~~~~~~~
SerialFifo
C:\Users\M\AppData\Local\Temp.arduinoIDE-unsaved2023818-7392-ond0ck.taup\MKRWANFWUpdate_standalone\MKRWANFWUpdate_standalone.ino:45:11: error: 'LORA_BOOT0' was not declared in this scope
pinMode(LORA_BOOT0, OUTPUT);
^~~~~~~~~~
C:\Users\M\AppData\Local\Temp.arduinoIDE-unsaved2023818-7392-ond0ck.taup\MKRWANFWUpdate_standalone\MKRWANFWUpdate_standalone.ino:45:11: note: suggested alternative: 'LORA_OK'
pinMode(LORA_BOOT0, OUTPUT);
^~~~~~~~~~
LORA_OK
C:\Users\M\AppData\Local\Temp.arduinoIDE-unsaved2023818-7392-ond0ck.taup\MKRWANFWUpdate_standalone\MKRWANFWUpdate_standalone.ino:47:11: error: 'LORA_RESET' was not declared in this scope
pinMode(LORA_RESET, OUTPUT);
^~~~~~~~~~
C:\Users\M\AppData\Local\Temp.arduinoIDE-unsaved2023818-7392-ond0ck.taup\MKRWANFWUpdate_standalone\MKRWANFWUpdate_standalone.ino:47:11: note: suggested alternative: 'LORA_ERROR'
pinMode(LORA_RESET, OUTPUT);
^~~~~~~~~~
LORA_ERROR
C:\Users\M\AppData\Local\Temp.arduinoIDE-unsaved2023818-7392-ond0ck.taup\MKRWANFWUpdate_standalone\MKRWANFWUpdate_standalone.ino: In function 'void resetModuleRunning()':
C:\Users\M\AppData\Local\Temp.arduinoIDE-unsaved2023818-7392-ond0ck.taup\MKRWANFWUpdate_standalone\MKRWANFWUpdate_standalone.ino:270:16: error: 'LORA_BOOT0' was not declared in this scope
digitalWrite(LORA_BOOT0, LOW);
^~~~~~~~~~
C:\Users\M\AppData\Local\Temp.arduinoIDE-unsaved2023818-7392-ond0ck.taup\MKRWANFWUpdate_standalone\MKRWANFWUpdate_standalone.ino:270:16: note: suggested alternative: 'LORA_OK'
digitalWrite(LORA_BOOT0, LOW);
^~~~~~~~~~
LORA_OK
C:\Users\M\AppData\Local\Temp.arduinoIDE-unsaved2023818-7392-ond0ck.taup\MKRWANFWUpdate_standalone\MKRWANFWUpdate_standalone.ino:271:3: error: 'SerialLoRa' was not declared in this scope
SerialLoRa.end();
^~~~~~~~~~
C:\Users\M\AppData\Local\Temp.arduinoIDE-unsaved2023818-7392-ond0ck.taup\MKRWANFWUpdate_standalone\MKRWANFWUpdate_standalone.ino:271:3: note: suggested alternative: 'SerialFifo'
SerialLoRa.end();
^~~~~~~~~~
SerialFifo
C:\Users\M\AppData\Local\Temp.arduinoIDE-unsaved2023818-7392-ond0ck.taup\MKRWANFWUpdate_standalone\MKRWANFWUpdate_standalone.ino:274:16: error: 'LORA_RESET' was not declared in this scope
digitalWrite(LORA_RESET, HIGH);
^~~~~~~~~~
C:\Users\M\AppData\Local\Temp.arduinoIDE-unsaved2023818-7392-ond0ck.taup\MKRWANFWUpdate_standalone\MKRWANFWUpdate_standalone.ino:274:16: note: suggested alternative: 'LORA_ERROR'
digitalWrite(LORA_RESET, HIGH);
^~~~~~~~~~
LORA_ERROR
C:\Users\M\AppData\Local\Temp.arduinoIDE-unsaved2023818-7392-ond0ck.taup\MKRWANFWUpdate_standalone\MKRWANFWUpdate_standalone.ino: In function 'void loop()':
C:\Users\M\AppData\Local\Temp.arduinoIDE-unsaved2023818-7392-ond0ck.taup\MKRWANFWUpdate_standalone\MKRWANFWUpdate_standalone.ino:286:5: error: 'SerialLoRa' was not declared in this scope
SerialLoRa.end();
^~~~~~~~~~
C:\Users\M\AppData\Local\Temp.arduinoIDE-unsaved2023818-7392-ond0ck.taup\MKRWANFWUpdate_standalone\MKRWANFWUpdate_standalone.ino:286:5: note: suggested alternative: 'SerialFifo'
SerialLoRa.end();
^~~~~~~~~~
SerialFifo

exit status 1

Compilation error: 'SerialLoRa' was not declared in this scope