You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! I downloaded the last version yesterday and tried recompiling to rename my device and I had 2 different issues.
I am using windows 7, 64 bit, and "LUFA-140928"
The first one was that I had to erase every other project from the lufa Projects folder, since I was getting an error at Benito.c xD
Apparently "clock_div_1" is not defined in avr/power.h for Atmega16u2, so for make to work, and still disable the clock prescaler you need to comment line 74 and add this code:
Hi! I downloaded the last version yesterday and tried recompiling to rename my device and I had 2 different issues.
I am using windows 7, 64 bit, and "LUFA-140928"
The first one was that I had to erase every other project from the lufa Projects folder, since I was getting an error at Benito.c xD
The second one was with the file "arduino-midi.c"
I got that error on line 74, so I checked and with some search I found this:
http://fab.cba.mit.edu/classes/863.14/people/andrew_mao/week11/
Apparently "clock_div_1" is not defined in avr/power.h for Atmega16u2, so for make to work, and still disable the clock prescaler you need to comment line 74 and add this code:
CLKPR = (1 << CLKPCE);
CLKPR = (0 << CLKPS3) | (0 << CLKPS2) | (0 << CLKPS1) | (0 << CLKPS0);
That works!
Thx for hiduino guys!
The text was updated successfully, but these errors were encountered: