Project Gamma question

Salut Matt,

I am trying to compile the example for the Gamma board called Factory Test. It loads a wavdata.h file which cannot be found. I was not able to locate that lib. Can you point me to the right direction and do I need additional files for the test?

Ciao, Mathias

Comments

The I2S library is installed

The I2S library is installed and the include statement for I2S.h is ok. I searched the c:\UEDIDE tree and found no WavData.h file. The directory c:\UECIDE\libraries\Audio\chipkit\I2S\ only holds the I2S.h and I2S.cpp file (I uninstalled and re-installed the library). These two files are identical to the ones on github. I copied the files from github to the library location but compiling is still not working

Compiling...
• Preprocessing...
• Converting binary files
• Compiling sketch...
◦ audio_channel_side_left.c
◦ audio_channel_side_right.c
◦ GammaFactoryTest_combined.cpp
• Error at line 40 in file twAnimIcon.h:
‣ conflicting return type specified for 'virtual uint16_t twAnimIcon::getWidth()'
• Error at line 486 in file DisplayCore.h:
‣ overriding 'virtual int Image::getWidth()'
• Error at line 41 in file twAnimIcon.h:
‣ conflicting return type specified for 'virtual uint16_t twAnimIcon::getHeight()'
• Error at line 487 in file DisplayCore.h:
‣ overriding 'virtual int Image::getHeight()'
• Error at line 21 in file GammaFactoryTest.ino:
‣ no matching function for call to 'TLV320DAC3101::TLV320DAC3101(DTWI1&, int, int)'
• Error at line 32 in file GammaFactoryTest.ino:
‣ cannot declare variable 'Yes' to be of abstract type 'twButton'
• Error at line 33 in file GammaFactoryTest.ino:
‣ cannot declare variable 'No' to be of abstract type 'twButton'
Compiling Failed

It's three on a line before

It's three on a line before and after, or one either side.

```
some code
```

`some code`

I cleaned all, installed

I cleaned all, installed UECIDE fresh, moved sketch directory, I now have nothing but the Gamma as board. Error is still there. Here the console output:

c:\UECIDE\compilers\pic32-tools/bin/pic32-gcc -c C:\Users\A681818\AppData\Local\Temp\build-414ec93f-1058-4b74-8e5c-9e754255fe3a\binary\audio_channel_side_right.c -o C:\Users\A681818\AppData\Local\Temp\build-414ec93f-1058-4b74-8e5c-9e754255fe3a\audio_channel_side_right.c.o -mprocessor=32MZ2048EFG
100 -Os -DF_CPU=200000000UL -DARDUINO=157 -D_BOARD_MAJENKO_GAMMA_ -DMPIDEVER=10001932 -DMPIDE=157 -DIDE=UECIDE -mips32r2 -w -G1024 -g -ffunction-sections -fdata-sections -mno-smart-io -mdebugger -Wcast-align -fno-short-double -std=gnu11 -Ic:\UECIDE\cores\chipkit\pic32 -Ic:\UECIDE\libraries\Commu
nications\chipkit\DTWI -Ic:\UECIDE\libraries\Audio\chipkit\I2S -Ic:\UECIDE\libraries\Audio\chipkit\TLV320DAC3101 -Ic:\UECIDE\libraries\Storage\chipkit\DSDVOL -Ic:\UECIDE\libraries\IO\DebouncedInput -Ic:\UECIDE\libraries\DisplayCore\Gamma -Ic:\UECIDE\libraries\DisplayCore\AnalogTouchMZ -Ic:\UECID
E\libraries\DisplayCore\CP437 -Ic:\UECIDE\libraries\DisplayCore\Framebuffer565 -IC:\Data\UECIDE\libraries\Widgets -Ic:\UECIDE\libraries\Communications\chipkit\DSPI -Ic:\UECIDE\libraries\DisplayCore\DisplayCore -Ic:\UECIDE\libraries\Storage\chipkit\DFATFS -Ic:\UECIDE\boards\MajenkoTechnologies\ma
jenko-gamma -IC:\Users\A681818\AppData\Local\Temp\build-414ec93f-1058-4b74-8e5c-9e754255fe3a -Ic:\UECIDE\libraries\DisplayCore\Gamma\examples\GammaFactoryTest                                                                                                                                          

c:\UECIDE\compilers\pic32-tools/bin/pic32-gcc -c C:\Users\A681818\AppData\Local\Temp\build-414ec93f-1058-4b74-8e5c-9e754255fe3a\binary\audio_channel_side_left.c -o C:\Users\A681818\AppData\Local\Temp\build-414ec93f-1058-4b74-8e5c-9e754255fe3a\audio_channel_side_left.c.o -mprocessor=32MZ2048EFG10
0 -Os -DF_CPU=200000000UL -DARDUINO=157 -D_BOARD_MAJENKO_GAMMA_ -DMPIDEVER=10001932 -DMPIDE=157 -DIDE=UECIDE -mips32r2 -w -G1024 -g -ffunction-sections -fdata-sections -mno-smart-io -mdebugger -Wcast-align -fno-short-double -std=gnu11 -Ic:\UECIDE\cores\chipkit\pic32 -Ic:\UECIDE\libraries\Communi
cations\chipkit\DTWI -Ic:\UECIDE\libraries\Audio\chipkit\I2S -Ic:\UECIDE\libraries\Audio\chipkit\TLV320DAC3101 -Ic:\UECIDE\libraries\Storage\chipkit\DSDVOL -Ic:\UECIDE\libraries\IO\DebouncedInput -Ic:\UECIDE\libraries\DisplayCore\Gamma -Ic:\UECIDE\libraries\DisplayCore\AnalogTouchMZ -Ic:\UECIDE\
libraries\DisplayCore\CP437 -Ic:\UECIDE\libraries\DisplayCore\Framebuffer565 -IC:\Data\UECIDE\libraries\Widgets -Ic:\UECIDE\libraries\Communications\chipkit\DSPI -Ic:\UECIDE\libraries\DisplayCore\DisplayCore -Ic:\UECIDE\libraries\Storage\chipkit\DFATFS -Ic:\UECIDE\boards\MajenkoTechnologies\maje
nko-gamma -IC:\Users\A681818\AppData\Local\Temp\build-414ec93f-1058-4b74-8e5c-9e754255fe3a -Ic:\UECIDE\libraries\DisplayCore\Gamma\examples\GammaFactoryTest                                                                                                                                            

c:\UECIDE\compilers\pic32-tools/bin/pic32-g++ -c C:\Users\A681818\AppData\Local\Temp\build-414ec93f-1058-4b74-8e5c-9e754255fe3a\GammaFactoryTest_combined.cpp -o C:\Users\A681818\AppData\Local\Temp\build-414ec93f-1058-4b74-8e5c-9e754255fe3a\GammaFactoryTest_combined.cpp.o -mprocessor=32MZ2048EFG1
00 -Os -DF_CPU=200000000UL -DARDUINO=157 -D_BOARD_MAJENKO_GAMMA_ -DMPIDEVER=10001932 -DMPIDE=157 -DIDE=UECIDE -mips32r2 -w -G1024 -g -fno-exceptions -ffunction-sections -fdata-sections -mno-smart-io -mdebugger -Wcast-align -fno-short-double -std=gnu++11 -Ic:\UECIDE\cores\chipkit\pic32 -Ic:\UECID
E\libraries\Communications\chipkit\DTWI -Ic:\UECIDE\libraries\Audio\chipkit\I2S -Ic:\UECIDE\libraries\Audio\chipkit\TLV320DAC3101 -Ic:\UECIDE\libraries\Storage\chipkit\DSDVOL -Ic:\UECIDE\libraries\IO\DebouncedInput -Ic:\UECIDE\libraries\DisplayCore\Gamma -Ic:\UECIDE\libraries\DisplayCore\AnalogT
ouchMZ -Ic:\UECIDE\libraries\DisplayCore\CP437 -Ic:\UECIDE\libraries\DisplayCore\Framebuffer565 -IC:\Data\UECIDE\libraries\Widgets -Ic:\UECIDE\libraries\Communications\chipkit\DSPI -Ic:\UECIDE\libraries\DisplayCore\DisplayCore -Ic:\UECIDE\libraries\Storage\chipkit\DFATFS -Ic:\UECIDE\boards\Majen
koTechnologies\majenko-gamma -IC:\Users\A681818\AppData\Local\Temp\build-414ec93f-1058-4b74-8e5c-9e754255fe3a -Ic:\UECIDE\libraries\DisplayCore\Gamma\examples\GammaFactoryTest                                                                                                                         
In file included from C:\Data\UECIDE\libraries\Widgets/Widgets.h:9:0,                                                                                                                                                                                                                                   
                 from c:\UECIDE\libraries\DisplayCore\Gamma\examples\GammaFactoryTest\GammaFactoryTest.ino:11:                                                                                                                                                                                          
C:\Data\UECIDE\libraries\Widgets/twAnimIcon.h:40:18: error: conflicting return type specified for 'virtual uint16_t twAnimIcon::getWidth()'                                                                                                                                                             
         uint16_t getWidth() { return _data->width; }                                                                                                                                                                                                                                                   
                  ^                                                                                                                                                                                                                                                                                     
In file included from c:\UECIDE\libraries\DisplayCore\Gamma/Gamma.h:4:0,                                                                                                                                                                                                                                
                 from c:\UECIDE\libraries\DisplayCore\Gamma\examples\GammaFactoryTest\GammaFactoryTest.ino:6:                                                                                                                                                                                           
c:\UECIDE\libraries\DisplayCore\DisplayCore/DisplayCore.h:486:21: error:   overriding 'virtual int Image::getWidth()'                                                                                                                                                                                   
         virtual int getWidth() { return _width; }                                                                                                                                                                                                                                                      
                     ^                                                                                                                                                                                                                                                                                  
In file included from C:\Data\UECIDE\libraries\Widgets/Widgets.h:9:0,                                                                                                                                                                                                                                   
                 from c:\UECIDE\libraries\DisplayCore\Gamma\examples\GammaFactoryTest\GammaFactoryTest.ino:11:                                                                                                                                                                                          
C:\Data\UECIDE\libraries\Widgets/twAnimIcon.h:41:18: error: conflicting return type specified for 'virtual uint16_t twAnimIcon::getHeight()'                                                                                                                                                            
         uint16_t getHeight() { return _data->height; }                                                                                                                                                                                                                                                 
                  ^                                                                                                                                                                                                                                                                                     
In file included from c:\UECIDE\libraries\DisplayCore\Gamma/Gamma.h:4:0,                                                                                                                                                                                                                                
                 from c:\UECIDE\libraries\DisplayCore\Gamma\examples\GammaFactoryTest\GammaFactoryTest.ino:6:                                                                                                                                                                                           
c:\UECIDE\libraries\DisplayCore\DisplayCore/DisplayCore.h:487:21: error:   overriding 'virtual int Image::getHeight()'                                                                                                                                                                                  
         virtual int getHeight() { return _height; }                                                                                                                                                                                                                                                    
                     ^                                                                                                                                                                                                                                                                                  
c:\UECIDE\libraries\DisplayCore\Gamma\examples\GammaFactoryTest\GammaFactoryTest.ino:21:44: error: no matching function for call to 'TLV320DAC3101::TLV320DAC3101(DTWI1&, int, int)'                                                                                                                    
 TLV320DAC3101 dac(twi, 44100, PIN_DAC_RESET);                                                                                                                                                                                                                                                          
                                            ^                                                                                                                                                                                                                                                           
c:\UECIDE\libraries\DisplayCore\Gamma\examples\GammaFactoryTest\GammaFactoryTest.ino:21:44: note: candidates are:                                                                                                                                                                                       
In file included from c:\UECIDE\libraries\DisplayCore\Gamma\examples\GammaFactoryTest\GammaFactoryTest.ino:3:0:                                                                                                                                                                                         
c:\UECIDE\libraries\Audio\chipkit\TLV320DAC3101/TLV320DAC3101.h:51:9: note: TLV320DAC3101::TLV320DAC3101(DTWI&, uint32_t)                                                                                                                                                                               
         TLV320DAC3101(DTWI &d, uint32_t fs = 44100) : dtwi(&d), _sampleFrequency(fs) {}
         ^                                                                                                                                                                                                                                                                                              
c:\UECIDE\libraries\Audio\chipkit\TLV320DAC3101/TLV320DAC3101.h:51:9: note:   candidate expects 2 arguments, 3 provided                                                                                                                                                                                 
c:\UECIDE\libraries\Audio\chipkit\TLV320DAC3101/TLV320DAC3101.h:50:9: note: TLV320DAC3101::TLV320DAC3101(DTWI*, uint32_t)                                                                                                                                                                               
         TLV320DAC3101(DTWI *d, uint32_t fs = 44100) : dtwi(d), _sampleFrequency(fs) {}                                                                                                                                                                                                                 
         ^                                                                                                                                                                                                                                                                                              
c:\UECIDE\libraries\Audio\chipkit\TLV320DAC3101/TLV320DAC3101.h:50:9: note:   candidate expects 2 arguments, 3 provided                                                                                                                                                                                 
c:\UECIDE\libraries\Audio\chipkit\TLV320DAC3101/TLV320DAC3101.h:21:7: note: constexpr TLV320DAC3101::TLV320DAC3101(const TLV320DAC3101&)                                                                                                                                                                
 class TLV320DAC3101 : public DAC, public Amplifier {                                                                                                                                                                                                                                                   
       ^                                                                                                                                                                                                                                                                                                
c:\UECIDE\libraries\Audio\chipkit\TLV320DAC3101/TLV320DAC3101.h:21:7: note:   candidate expects 1 argument, 3 provided                                                                                                                                                                                  
c:\UECIDE\libraries\Audio\chipkit\TLV320DAC3101/TLV320DAC3101.h:21:7: note: constexpr TLV320DAC3101::TLV320DAC3101(TLV320DAC3101&&)                                                                                                                                                                     
c:\UECIDE\libraries\Audio\chipkit\TLV320DAC3101/TLV320DAC3101.h:21:7: note:   candidate expects 1 argument, 3 provided                                                                                                                                                                                  
c:\UECIDE\libraries\DisplayCore\Gamma\examples\GammaFactoryTest\GammaFactoryTest.ino:32:10: error: cannot declare variable 'Yes' to be of abstract type 'twButton'                                                                                                                                      
 twButton Yes(ts, tft, 160, 440, 160, 40, "Yes");                                                                                                                                                                                                                                                       
          ^                                                                                                                                                                                                                                                                                             
In file included from C:\Data\UECIDE\libraries\Widgets/Widgets.h:6:0,                                                                                                                                                                                                                                   
                 from c:\UECIDE\libraries\DisplayCore\Gamma\examples\GammaFactoryTest\GammaFactoryTest.ino:11:                                                                                                                                                                                          
C:\Data\UECIDE\libraries\Widgets/twButton.h:6:7: note:   because the following virtual functions are pure within 'twButton':                                                                                                                                                                            
 class twButton : public Widget {                                                                                                                                                                                                                                                                       
       ^                                                                                                                                                                                                                                                                                                
In file included from c:\UECIDE\libraries\DisplayCore\Gamma/Gamma.h:4:0,                                                                                                                                                                                                                                
                 from c:\UECIDE\libraries\DisplayCore\Gamma\examples\GammaFactoryTest\GammaFactoryTest.ino:6:                                                                                                                                                                                           
c:\UECIDE\libraries\DisplayCore\DisplayCore/DisplayCore.h:611:22: note:         virtual void Widget::draw(DisplayCore*, int, int)                                                                                                                                                                                virtual void draw(DisplayCore *dev, int x, int y) = 0;                                                                                                                                                                                                                                         
                      ^                                                                                                                                                                                                                                                                                 
c:\UECIDE\libraries\DisplayCore\Gamma\examples\GammaFactoryTest\GammaFactoryTest.ino:33:10: error: cannot declare variable 'No' to be of abstract type 'twButton'                                                                                                                                       
 twButton No(ts, tft, 0, 440, 160, 40, "No");                                                                                                                                                                                                                                                           
          ^                                                                                                                                                                                                                                                                                             
In file included from C:\Data\UECIDE\libraries\Widgets/Widgets.h:6:0,                                                                                                                                                                                                                                   
                 from c:\UECIDE\libraries\DisplayCore\Gamma\examples\GammaFactoryTest\GammaFactoryTest.ino:11:                                                                                                                                                                                          
C:\Data\UECIDE\libraries\Widgets/twButton.h:6:7: note:   since type 'twButton' has pure virtual functions                                                                                                                                                                                               
 class twButton : public Widget {                                                                                                                                                                                                                                                                       
       ^                                                                                                                                                                                                                                                                                                

I missed out the new files I

I missed out the new files I added to the I2S library from the uecide.json file's install list... (oops). Updated it now - the library should rebuild automatically and be fixed within the hour.

C:\Data\UECIDE\libraries

C:\Data\UECIDE\libraries\Widgets/twAnimIcon.h
  • that's not a standard location for that library if you installed it with UECIDE's plgugin manager...

Looks like the updates to the

Looks like the updates to the DAC library didn't get bundled into a new library package. It'll build within the hour and fix itself.

I got relatively far ... but

I got relatively far ... but at the end I get this weird message:

Compiling...
• Preprocessing...
• Converting binary files
• Compiling sketch...
◦ audio_channel_side_left.c
◦ audio_channel_side_right.c
◦ GammaFactoryTest_combined.cpp
• Compiling core...
‣ api
◦ cpp-startup.S
◦ crti.S
◦ crtn.S
◦ doprnt.cpp
◦ exceptions.c
◦ HardwareSerial.cpp
◦ hooks.c
◦ IPAddress.cpp
◦ main.cpp
◦ noniso.c
◦ pic32_software_reset.S
◦ pins_arduino.c
• Error at line 90 in file pins_arduino.c:
‣ Board_Data.c: No such file or directory
Compiling Failed

Looks like a packaging error

Looks like a packaging error (pesky packaging errors...). The file got dumped in the wrong place. I'll fix it... brb...

Pages