Error compiling basic LORA [solved]

Started by syrinxtech, October 28, 2016, 11:40:34 AM

syrinxtech

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);

luisr320

What is the selected board on the IDE?

syrinxtech


luisr320

Try to reinstall the Radiohead library

syrinxtech

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.

Felix

Did you upgrade your IDE to something more recent?
The LPL version of the RadioHead ZIP has not changed since it was released.

syrinxtech

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

Felix

Yes that's the one and only which I ever released, verified to compile and work.

syrinxtech

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.


Felix

It includes the rf95_server and rf95_client yes.
I use these very often to test Moteinos with LoRa modules.

syrinxtech

Not sure what I was doing wrong....but it's OK now.

Consider this one closed.