NikolaiHP / musicshield

Automatically exported from code.google.com/p/musicshield
0 stars 0 forks source link

I can't compile it for ATMega328 #2

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
For every pde file in this repository I can compile it for the ATMega1280 
boards in the Arduino 0021, but when I choose a board that uses ATMega328 the 
compile log says:

config.cpp: In function 'void InitSPI()':
config.cpp:7: error: 'PB4' was not declared in this scope
config.cpp:8: error: 'PB3' was not declared in this scope
config.cpp:9: error: 'PB5' was not declared in this scope
config.cpp:13: error: 'PB2' was not declared in this scope
config.cpp: In function 'void InitIOForVs10xx()':
config.cpp:41: error: 'PC1' was not declared in this scope
config.cpp:42: error: 'PC2' was not declared in this scope
config.cpp:43: error: 'PC3' was not declared in this scope
config.cpp:44: error: 'PC0' was not declared in this scope
config.cpp: In function 'void InitIOForKeys()':
config.cpp:66: error: 'PD7' was not declared in this scope
config.cpp:67: error: 'PD6' was not declared in this scope
config.cpp:68: error: 'PD5' was not declared in this scope
config.cpp:69: error: 'PD3' was not declared in this scope
config.cpp:70: error: 'PD4' was not declared in this scope
config.cpp: In function 'void InitIOForLEDs()':
config.cpp:79: error: 'PB1' was not declared in this scope
config.cpp:80: error: 'PB0' was not declared in this scope

Original issue reported on code.google.com by jad...@gmail.com on 23 Oct 2010 at 7:16

GoogleCodeExporter commented 8 years ago
I also can compile 
http://code.google.com/p/musicshield/source/browse/#svn/branches/arduino 
code/musicNewSd to ATMega168 but I can't to 328

Original comment by jad...@gmail.com on 23 Oct 2010 at 8:38

GoogleCodeExporter commented 8 years ago
It will probably work on ATMega328 after I replace in the code PB4 with PORTB4 
and so on...

Original comment by jad...@gmail.com on 26 Oct 2010 at 12:50

GoogleCodeExporter commented 8 years ago
I had the same problem, won't compile on ATMega238. I replaced PB with PORTB 
etc. The errors disapeared but a new one occured :S. Anyone who knows how to 
fix this:

vs10xx.cpp: In function 'void Mp3Reset()':
vs10xx.cpp:161: error: 'SPORTDR' was not declared in this scope
vs10xx.cpp: In function 'void VsSineTest()':
vs10xx.cpp:214: error: 'SPORTDR' was not declared in this scope
vs10xx.cpp: In function 'void SendZerosToVS10xx()':
vs10xx.cpp:284: error: 'SPORTDR' was not declared in this scope

Thanks..

Original comment by gijswob...@gmail.com on 17 Mar 2011 at 12:24

GoogleCodeExporter commented 8 years ago
there are several instances of mistakes in Fat16Util.h, which should be 
Fat16util.h. After fixing these (4-5 files had them) ...
I managed to compile these sketches in linux, but without success in Mac OSX.

Original comment by enrique....@gmail.com on 27 Mar 2012 at 7:24