hey
i have great sketch here, for CW beacon on si4432 with STM32F103C8.
so i getting error -
Arduino: 1.8.5 (Windows 7), Board: "Generic STM32F103C series, STM32F103C8 (20k RAM. 64k Flash), STLink, 72Mhz (Normal), Smallest (default)"
In file included from C:\Program Files (x86)\Arduino\libraries\RF22/RF22.h:828:0,
from C:\Users\PC\Desktop\RF22_CW_beacon\RF22_CW_beacon.ino:8:
C:\Program Files (x86)\Arduino\libraries\RF22/HardwareSPI.h: In member function 'virtual void HardwareSPIClass::setBitOrder(uint8_t)':
C:\Program Files (x86)\Arduino\libraries\RF22/HardwareSPI.h:70:34: error: invalid conversion from 'uint8_t {aka unsigned char}' to 'BitOrder' [-fpermissive]
SPI.setBitOrder (bitOrder);
^
In file included from C:\Users\PC\Desktop\RF22_CW_beacon\RF22_CW_beacon.ino:7:0:
C:\Users\PC\Documents\Arduino\hardware\Arduino_STM32\STM32F1\libraries\SPI\src/SPI.h:220:7: error: initializing argument 1 of 'void SPIClass::setBitOrder(BitOrder)' [-fpermissive]
void setBitOrder(BitOrder bitOrder);
^
C:\Users\PC\Desktop\RF22_CW_beacon\RF22_CW_beacon.ino: In function 'void AlarmFunction()':
RF22_CW_beacon:42: error: no matching function for call to 'RTClock::getTime(tm*&)'
tm_ptr = rt.getTime(tm_ptr);
^
C:\Users\PC\Desktop\RF22_CW_beacon\RF22_CW_beacon.ino:42:29: note: candidates are:
In file included from C:\Users\PC\Desktop\RF22_CW_beacon\RF22_CW_beacon.ino:9:0:
C:\Users\PC\Documents\Arduino\hardware\Arduino_STM32\STM32F1\libraries\RTClock\src/RTClock.h:53:9: note: time_t RTClock::getTime()
time_t getTime();
^
C:\Users\PC\Documents\Arduino\hardware\Arduino_STM32\STM32F1\libraries\RTClock\src/RTClock.h:53:9: note: candidate expects 0 arguments, 1 provided
C:\Users\PC\Documents\Arduino\hardware\Arduino_STM32\STM32F1\libraries\RTClock\src/RTClock.h:54:7: note: void RTClock::getTime(tm_t&)
void getTime(tm_t & tmm );
^
C:\Users\PC\Documents\Arduino\hardware\Arduino_STM32\STM32F1\libraries\RTClock\src/RTClock.h:54:7: note: no known conversion for argument 1 from 'tm*' to 'tm_t&'
C:\Users\PC\Desktop\RF22_CW_beacon\RF22_CW_beacon.ino: In function 'void setup()':
RF22_CW_beacon:103: error: invalid conversion from 'tm*' to 'time_t {aka long int}' [-fpermissive]
rt.setTime(&time_tm);
^
In file included from C:\Users\PC\Desktop\RF22_CW_beacon\RF22_CW_beacon.ino:9:0:
C:\Users\PC\Documents\Arduino\hardware\Arduino_STM32\STM32F1\libraries\RTClock\src/RTClock.h:50:7: error: initializing argument 1 of 'void RTClock::setTime(time_t)' [-fpermissive]
void setTime (time_t time_stamp);
^
RF22_CW_beacon:107: error: invalid conversion from 'tm*' to 'time_t {aka long int}' [-fpermissive]
rt.createAlarm(&AlarmFunction, &time_tm); //ring the alarm 1 minutes later...
^
In file included from C:\Users\PC\Desktop\RF22_CW_beacon\RF22_CW_beacon.ino:9:0:
C:\Users\PC\Documents\Arduino\hardware\Arduino_STM32\STM32F1\libraries\RTClock\src/RTClock.h:83:7: error: initializing argument 2 of 'void RTClock::createAlarm(voidFuncPtr, time_t)' [-fpermissive]
void createAlarm(voidFuncPtr function, time_t alarm_time_t);
^
C:\Users\PC\Desktop\RF22_CW_beacon\RF22_CW_beacon.ino: In function 'void loop()':
C:\Users\PC\Desktop\RF22_CW_beacon\RF22_CW_beacon.ino:213:32: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
morse_str("CQ CQ UR5TLZ/B",14);
^
C:\Users\PC\Desktop\RF22_CW_beacon\RF22_CW_beacon.ino:240:21: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
morse_str("ECHO",4);
^
Multiple libraries were found for "RTClock.h"
Used: C:\Users\PC\Documents\Arduino\hardware\Arduino_STM32\STM32F1\libraries\RTClock
Not used: C:\Program Files (x86)\Arduino\libraries\RTClock
Not used: C:\Program Files (x86)\Arduino\libraries\MapleRTC
exit status 1
no matching function for call to 'RTClock::getTime(tm*&)'
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Here original sketch