So I tried the older IDE version and it's not working. The actual SdFat library is not recognized by the IDE. I probably need the older version... Maybe I can find it.
Next I replaced all prog_uint16_t. Know I get less errors:
Arduino : 1.8.5 (Linux), Carte : "Arduino/Genuino Uno"
In file included from /home/jean/Arduino/eurorack/grandPa_1_2/grandPa_1_2.ino:34:0:
/home/jean/Arduino/libraries/bastl-master/WaveRP.h:93:19: error: 'SdBaseFile' does not name a type
volatile static SdBaseFile *sdFile;
^
/home/jean/Arduino/libraries/bastl-master/WaveRP.h:136:13: error: 'SdBaseFile' has not been declared
bool play(SdBaseFile* file); //,uint32_t _pos=0
^
/home/jean/Arduino/libraries/bastl-master/WaveRP.h:137:15: error: 'SdBaseFile' has not been declared
bool record(SdBaseFile* file, uint16_t rate, uint8_t pin, uint8_t ref);
^
/home/jean/Arduino/libraries/bastl-master/WaveRP.h:141:13: error: 'SdBaseFile' has not been declared
bool trim(SdBaseFile* file);
^
grandPa_1_2:84: error: variable 'noteSampleRateTable' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
PROGMEM uint16_t noteSampleRateTable[65]={
^
grandPa_1_2:219: error: variable 'granSizeMap' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
PROGMEM uint16_t granSizeMap[16]={
^
grandPa_1_2:223: error: variable 'shiftSpeedMap' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
PROGMEM uint16_t shiftSpeedMap[20]={
^
MEM:2: error: variable 'clearTo' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
PROGMEM uint16_t clearTo[]={
^
MEM:31: error: 'prog_char' does not name a type
PROGMEM prog_char labels[]={
^
MEM:78: error: variable 'maxValue' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
PROGMEM uint16_t maxValue[]={
^
/home/jean/Arduino/eurorack/grandPa_1_2/SD.ino: In function 'bool play(uint8_t)':
SD:128: error: no matching function for call to 'WaveRP::play(SdFile*)'
if (!wave.play(&file)) { //,uint32_t _pos=0
^
/home/jean/Arduino/eurorack/grandPa_1_2/SD.ino:128:25: note: candidate is:
In file included from /home/jean/Arduino/eurorack/grandPa_1_2/grandPa_1_2.ino:34:0:
/home/jean/Arduino/libraries/bastl-master/WaveRP.h:136:8: note: bool WaveRP::play(int*)
bool play(SdBaseFile* file); //,uint32_t _pos=0
^
/home/jean/Arduino/libraries/bastl-master/WaveRP.h:136:8: note: no known conversion for argument 1 from 'SdFile*' to 'int*'
/home/jean/Arduino/eurorack/grandPa_1_2/SOUND.ino: At global scope:
SOUND:27: error: variable 'usefulLengths' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
PROGMEM uint16_t usefulLengths[17]={
^
/home/jean/Arduino/eurorack/grandPa_1_2/SOUND.ino: In function 'void updateSound()':
SOUND:57: error: no matching function for call to 'WaveRP::play(SdFile*)'
wave.play(&file);
^
/home/jean/Arduino/eurorack/grandPa_1_2/SOUND.ino:57:26: note: candidate is:
In file included from /home/jean/Arduino/eurorack/grandPa_1_2/grandPa_1_2.ino:34:0:
/home/jean/Arduino/libraries/bastl-master/WaveRP.h:136:8: note: bool WaveRP::play(int*)
bool play(SdBaseFile* file); //,uint32_t _pos=0
^
/home/jean/Arduino/libraries/bastl-master/WaveRP.h:136:8: note: no known conversion for argument 1 from 'SdFile*' to 'int*'
SOUND:74: error: no matching function for call to 'WaveRP::play(SdFile*)'
wave.play(&file);
^
/home/jean/Arduino/eurorack/grandPa_1_2/SOUND.ino:74:26: note: candidate is:
In file included from /home/jean/Arduino/eurorack/grandPa_1_2/grandPa_1_2.ino:34:0:
/home/jean/Arduino/libraries/bastl-master/WaveRP.h:136:8: note: bool WaveRP::play(int*)
bool play(SdBaseFile* file); //,uint32_t _pos=0
^
/home/jean/Arduino/libraries/bastl-master/WaveRP.h:136:8: note: no known conversion for argument 1 from 'SdFile*' to 'int*'
exit status 1
variable 'noteSampleRateTable' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
Ce rapport pourrait être plus détaillé avec
l'option "Afficher les résultats détaillés de la compilation"
activée dans Fichier -> Préférences.
On way could be to replace the code concerning SD card. It look like that's the node of the errors. But there's a huge gap in my knowledges for doing that...
Greetz!