Hi Flip, thanks for the reply.
I just quickly made this program to show you as my program is far too long (and needs cleaning up
). I have only changed the clock speed and the oscillator selection bits to Primary Osc (XT,HS,EC). I figure something is wrong with the package installation. Complies fine at 80 MHz though.
However I have found a walk around.
I found the old library on github and although not as nice I have it running at 8MHz.
On a side note.
To anyone reading this, to run a RN2903 with a MCU at 8Mhz you have to change the BAUD rate (57600) of the RN2903 to a lower value (I used 9600) or the UART communication fails. (Restart Condition, RN2903 LoRa™ Technology Module Command Reference User’s Guide page 12.)
ie Something like.
TRISF5_bit = 0; //Uart2 Tx... For BAUD change only.
LATF5_bit = 0; //Tx low.
UART2_Init( 9600 );
Delay_ms( 200 );
Thanks Flip, and look forward to hearing what you find.