Closed BallscrewBob closed 7 years ago
Compiles fine for MKR but when compiling for 101 or MEGA the errors come up.
The RTCZero library is only mean't for SAMD boards (Zero, MKR1000).
cc/ @smellai @matteosuppo
I'm going to close this for now, it's the same behaviour as well you try to use the library on a non-SAMD board in the Java IDE. Note, there is a warning in the output:
WARNING: library RTCZero claims to run on [samd] architecture(s) and may be incompatible with your current board which runs on [avr] architecture(s).
I have this error too: "error: 'RTC_MODE2_MASK_SEL_OFF_Val' was not declared in this scope
MATCH_OFF = RTC_MODE2_MASK_SEL_OFF_Val, // Never"
same goes for every minute, etc. My question: I downloaded code from Arduino Project Hub and I'm just testing it. If I connect my Arduino MKR1000 will this still be an error? I'm just new to this area so sorry if it a dumb question.
@epugar which board do you have selected? As was already stated, this library is only compatible with the Arduino SAMD Boards. If you try to compile for a board of any other architecture, you'll get that error.
The MKR1000 is SAMD architecture so if you select that board you should not get this error. For compilation, it doesn't matter whether you have the MKR1000 connected or not. That only matters for uploading.
@per1234 That board was not selected. As I said, I'm completely new to this. I would never think about checking that. Thank you!
Compile errors in either DEV CREATE or regular CREATE