LowPowerLab Forum

Hardware support => Moteino => Topic started by: syrinxtech on October 28, 2016, 11:40:34 AM

Title: Error compiling basic LORA [solved]
Post by: syrinxtech on October 28, 2016, 11:40:34 AM
In the past I have worked with two Moteino's using LoRA without any problem.

Today I tried to compile both the rf95_client and rf95_server and both failed.  It keeps complaining about an RH_MRF89 issue, but I'm not using this nor can I find any reference to it in the code.  The following is the error messages I receive:

C:\Users\bryan\Documents\Arduino\sketches\libraries\RadioHead\RH_MRF89.cpp: In member function 'uint8_t RH_MRF89::spiReadRegister(uint8_t)':
C:\Users\bryan\Documents\Arduino\sketches\libraries\RadioHead\RH_MRF89.cpp:257:32: error: 'setSlaveSelectPin' was not declared in this scope
     setSlaveSelectPin(_csconPin);
                                ^
C:\Users\bryan\Documents\Arduino\sketches\libraries\RadioHead\RH_MRF89.cpp: In member function 'uint8_t RH_MRF89::spiWriteRegister(uint8_t, uint8_t)':
C:\Users\bryan\Documents\Arduino\sketches\libraries\RadioHead\RH_MRF89.cpp:265:32: error: 'setSlaveSelectPin' was not declared in this scope
     setSlaveSelectPin(_csconPin);
                                ^
C:\Users\bryan\Documents\Arduino\sketches\libraries\RadioHead\RH_MRF89.cpp: In member function 'uint8_t RH_MRF89::spiWriteData(uint8_t)':
C:\Users\bryan\Documents\Arduino\sketches\libraries\RadioHead\RH_MRF89.cpp:276:32: error: 'setSlaveSelectPin' was not declared in this scope
     setSlaveSelectPin(_csdatPin);
                                ^
C:\Users\bryan\Documents\Arduino\sketches\libraries\RadioHead\RH_MRF89.cpp: In member function 'uint8_t RH_MRF89::spiWriteData(const uint8_t*, uint8_t)':
C:\Users\bryan\Documents\Arduino\sketches\libraries\RadioHead\RH_MRF89.cpp:284:32: error: 'setSlaveSelectPin' was not declared in this scope
     setSlaveSelectPin(_csdatPin);
                                ^
C:\Users\bryan\Documents\Arduino\sketches\libraries\RadioHead\RH_MRF89.cpp: In member function 'uint8_t RH_MRF89::spiReadData()':
C:\Users\bryan\Documents\Arduino\sketches\libraries\RadioHead\RH_MRF89.cpp:301:32: error: 'setSlaveSelectPin' was not declared in this scope
     setSlaveSelectPin(_csdatPin);
Title: Re: Error compiling basic LORA
Post by: luisr320 on October 29, 2016, 02:28:53 PM
What is the selected board on the IDE?
Title: Re: Error compiling basic LORA
Post by: syrinxtech on October 29, 2016, 03:02:01 PM
Moteino

Title: Re: Error compiling basic LORA
Post by: luisr320 on October 30, 2016, 12:41:19 PM
Try to reinstall the Radiohead library
Title: Re: Error compiling basic LORA
Post by: syrinxtech on October 30, 2016, 01:14:27 PM
I did, twice.

Same errors.....fresh download and compile.

And I made sure it was from the LoRa page from Felix and not the native RH libraries.
Title: Re: Error compiling basic LORA
Post by: Felix on November 01, 2016, 08:07:18 AM
Did you upgrade your IDE to something more recent?
The LPL version of the RadioHead ZIP has not changed since it was released.
Title: Re: Error compiling basic LORA
Post by: syrinxtech on November 01, 2016, 08:23:18 AM
I haven't upgraded my IDE in a very long time.

I did some experimenting and went back to an older version of the RadioHead libraries and everything compiled just fine.  I then re-downloaded the LPL version and I get the same MRF:89 errors.

I'm not exactly sure where the issue is, but I don't have the energy or patience to track it down.  I'll just keep using the libraries that work.

Felix, can you verify that this is the proper URL for downloading your libraries:

https://lowpowerlab.com/RadioHead_LowPowerLab.zip
Title: Re: Error compiling basic LORA
Post by: Felix on November 01, 2016, 09:25:16 AM
Yes that's the one and only which I ever released, verified to compile and work.
Title: Re: Error compiling basic LORA
Post by: syrinxtech on November 01, 2016, 09:38:02 AM
When you say, "verified to compile and work", does that include the sketches that come with the library?

For example, the other day I downloaded this exact library and tried to compile the "rf95/client" program and that produced the errors shown below.  As soon as I put the old library into place the program compiled fine.

Title: Re: Error compiling basic LORA
Post by: Felix on November 01, 2016, 03:12:44 PM
It includes the rf95_server and rf95_client yes.
I use these very often to test Moteinos with LoRa modules.
Title: Re: Error compiling basic LORA - CLOSED
Post by: syrinxtech on November 12, 2016, 08:09:19 AM
Not sure what I was doing wrong....but it's OK now.

Consider this one closed.