Code: Select all
#include "ch.h"
#include "hal.h"
#include "chrtclib.h"
RTCTime timespec;
struct tm thetime;
int main(void) {
halInit();
chSysInit();
rtcGetTimeTm(&RTCD1, &thetime);
.
.
.
}
And I get the following error from compiler: undefined reference to `rtcGetTimeTm'
But it IS declared in the chrtclib.h Also it is defined in the chrtclib.c
If i right click "Open declaration" it is pointing me exactly to the c file - but why does the compiler not find it ?!
Best regards
Stomper