-
Notifications
You must be signed in to change notification settings - Fork 184
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
Does not compile when set to HIFI mode #28
Comments
Hi, |
I removed ALL libraries except for Mozzi, closed arduino IDE and re-opened. Still same problem. |
Thanks for your help. I see the problem in line 444 of MozziGuts.cpp. Please try the most recent commit. |
Thank you. This solves one of the errors, but the others persist, so it will not compile yet. Here is the error message now: In file included from C:...\Arduino\libraries\Mozzi-1.0.3rc4\MozziGuts.cpp:13:0: C:...\Arduino\libraries\Mozzi-1.0.3rc4\MozziGuts.cpp: In function 'void setupTimer2()': C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:104:37: error: expected unqualified-id before '(' token #define clockCyclesPerMicrosecond() ( F_CPU / 1000000L )
C:...\Arduino\libraries\Mozzi-1.0.3rc4\MozziGuts.cpp:443:29: note: in expansion of macro 'clockCyclesPerMicrosecond' period *= FrequencyTimer2::clockCyclesPerMicrosecond();
exit status 1 |
Removed incorrect FrequencyTimer2 namespace for clockCyclesPerMicrosecond(). Committed to github. It compiles here, hope it works for you now. |
Excellent! It does compile now. So it was just a namespace issue. I am glad it was a simple fix. 👍 |
Arduino 1.8.1
Mozzi 1.0.3rc4
Windows 10
Examples work fine in the default STANDARD_PLUS mode, but when attempting to compile any example in HIFI mode (by setting it in the mozzi_config.h file), it produces the following error:
`In file included from C:...\Arduino\libraries\Mozzi-1.0.3rc4\MozziGuts.cpp:13:0:
C:...\Arduino\libraries\Mozzi-1.0.3rc4\MozziGuts.cpp: In function 'void setupTimer2()':
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:104:37: error: expected unqualified-id before '(' token
#define clockCyclesPerMicrosecond() ( F_CPU / 1000000L )
C:...\Arduino\libraries\Mozzi-1.0.3rc4\MozziGuts.cpp:443:29: note: in expansion of macro 'clockCyclesPerMicrosecond'
period *= FrequencyTimer2::clockCyclesPerMicrosecond();
C:...\Arduino\libraries\Mozzi-1.0.3rc4\MozziGuts.cpp:444:2: error: 'setPeriod' is not a member of 'FrequencyTimer2'
FrequencyTimer2::setPeriod(period);
^
exit status 1
Error compiling for board Arduino/Genuino Uno.`
The text was updated successfully, but these errors were encountered: