Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation error w/ Arduino 1.8.2 IDE #11

Open
eudoxos opened this issue Apr 7, 2017 · 2 comments
Open

Compilation error w/ Arduino 1.8.2 IDE #11

eudoxos opened this issue Apr 7, 2017 · 2 comments

Comments

@eudoxos
Copy link

eudoxos commented Apr 7, 2017

After opening the firmware Mechaduino_01.ino in Arduino IDE 1.8.2, verification fails with errors from gcc. I tried to google things up, nothing shows up. Maybe some problem between keyboard and chair. I am new to mechaduino so maybe I am missing something obvious. I looks as if types were not recognized, but there is no error about #include not being found. These are the first few messages. Thanks for help!

sketch/analogFastWrite.c: In function 'syncADC':
analogFastWrite.c:17: error: invalid type argument of '->' (have 'uint16_t')
   while (ADC->STATUS.bit.SYNCBUSY == 1)
             ^
sketch/analogFastWrite.c: In function 'syncDAC':
analogFastWrite.c:24: error: 'DAC' undeclared (first use in this function)
   while (DAC->STATUS.bit.SYNCBUSY == 1)
          ^
sketch/analogFastWrite.c:24:10: note: each undeclared identifier is reported only once for each function it appears in
sketch/analogFastWrite.c: At top level:
analogFastWrite.c:29: error: unknown type name 'Tc'
 static __inline__ void syncTC_8(Tc* TCx) __attribute__((always_inline, unused));
                                 ^
analogFastWrite.c:30: error: unknown type name 'Tc'
 static void syncTC_8(Tc* TCx) {
@mikbeng
Copy link

mikbeng commented Oct 11, 2017

I have the same problem here, did you find any solution to this?

@jcchurch13
Copy link
Owner

I would double check that you have the correct board selected in the Arduino IDE (Arduino/Genuino Zero, (Native USB port)). I've seen similar issues when I've forgotten to select the right board.

-Joe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants