Juhizo Posted March 8, 2015 Report Share Posted March 8, 2015 It's been while from last project. But now tried to compile example code for Logicstart megawing and Papilio Pro, and next error appeared. Just reporting if anyone has same issue: In file included from MegaWing_Logicstart.ino:31:C:/DesignLab-1.0.4/libraries/SPIADC/SPIADC.h:16: error: redefinition of `struct CS'C:/DesignLab-1.0.4/hardware/zpuino/zpu20/libraries/SPI/SPI.h:55: error: previous definition of `struct CS'Virhe käännettäessä. Quote Link to comment Share on other sites More sharing options...
G4DCP Posted March 9, 2015 Report Share Posted March 9, 2015 Comment out line 16 of SPIADC.h. That should let you compile and move forward. Quote Link to comment Share on other sites More sharing options...
Juhizo Posted March 9, 2015 Author Report Share Posted March 9, 2015 There is something horribly wrong to use Papilio PRO LX9 with this DesignLab. Even the upload doesn't work out of box. There is something that I don't get now. Loaded multiple .bit files succesfull also, but just no luck with IDE loader (where is the right .bit for this combination?) Edit: Win 8.1Connecting...[1425913660.189966] Tx: 0x7e 0x01 0x1e 0x0e 0x7eRx: 0xfa 0x00 0xfa 0xff 0xfa 0x00Connecting...[1425913661.102610] Tx: 0x7e 0x01 0x1e 0x0e 0x7eConnecting...[1425913662.015283] Tx: 0x7e 0x01 0x1e 0x0e 0x7eConnecting... Quote Link to comment Share on other sites More sharing options...
alvieboy Posted March 9, 2015 Report Share Posted March 9, 2015 Juhizo: are you using the correct serial port ? That "Rx" line does not look like anthing coming from ZPUino bootloader. Or it's just one bit off.. output should be something like 0x7e 0x81 ... 0x7e. Perhaps it's the AVR responding ? Quote Link to comment Share on other sites More sharing options...
Juhizo Posted March 9, 2015 Author Report Share Posted March 9, 2015 Tried both ports. I'm not using the DUO board, instead of that the older Papilio PRO LX9. Choosed also that from options. http://papilio.cc/index.php?n=Papilio.PapilioPro Quote Link to comment Share on other sites More sharing options...
Juhizo Posted July 4, 2015 Author Report Share Posted July 4, 2015 Arduino: 1.0.7 (Windows 7), Card :"Papilio Pro - ZPUino with Retrocade synth" Found smallfs directory C:\DesignLab-1.0.7/hardware/tools/zpu/bin/mksmallfs C:\Users\Juhizo\AppData\Local\Temp\build2810356164267746887.tmp/smallfs.dat C:\DesignLab-1.0.7\examples\Audio_RetroCade_Synth/smallfs SmallFS: Packed 11 files sucessfully!!!Audio_RetroCade_Synth.ino: In function `void setup()':Audio_RetroCade_Synth.ino:139: warning: unused variable 'input'C:/DesignLab-1.0.7/hardware/zpuino/libraries/MIDI/MIDI.hpp: At global scope:C:/DesignLab-1.0.7/hardware/zpuino/libraries/MIDI/MIDI.hpp:784: warning: unused parameter 'inChannel'C:/DesignLab-1.0.7/hardware/zpuino/libraries/MIDI/MIDI.hpp:1115: warning: unused parameter 'inChannel'C:/DesignLab-1.0.7/hardware/zpuino/libraries/MIDI/MIDI.hpp:784: warning: unused parameter 'inChannel'C:/DesignLab-1.0.7/hardware/zpuino/libraries/MIDI/MIDI.hpp:1115: warning: unused parameter 'inChannel'Audio_RetroCade_Synth.ino:388: warning: unused parameter 'velocity'Audio_RetroCade_Synth.ino:342: warning: unused parameter 'velocity'RetroCade.cpp: In member function `void RETROCADE::smallfsModFileJoystick(unsigned char)':RetroCade.cpp:407: warning: 'playing' might be used uninitialized in this functionC:\DesignLab-1.0.7\libraries\SID\sid.cpp:127: warning: unused parameter 'address'C:\DesignLab-1.0.7\libraries\SID\sid.cpp:127: warning: unused parameter 'address'C:\DesignLab-1.0.7\libraries\SID\sid.cpp:76: warning: unused parameter 'slot'C:\DesignLab-1.0.7\libraries\SID\sid.cpp:76: warning: unused parameter 'slot'C:\DesignLab-1.0.7\libraries\YM2149\YM2149.cpp:91: warning: unused parameter 'active'C:\DesignLab-1.0.7\hardware\zpuino\zpu20\libraries\SmallFS\SmallFS.cpp:400: warning: missing initializer for member `zfops::fstat'In file included from C:/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/HardwareSerial.h:4, from C:/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/Arduino.h:8, from C:\DesignLab-1.0.7\hardware\zpuino\libraries\LiquidCrystal\LiquidCrystal.cpp:6:C:/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:13: error: conflicting declaration 'typedef struct __zFILE FILE'C:/DesignLab-1.0.7/hardware/tools/zpu/bin/../lib/gcc/zpu-elf/3.4.2/../../../../zpu-elf/include/stdio.h:50: error: 'FILE' has a previous declaration as `typedef struct __FILE FILE'C:/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:13: error: declaration of `typedef struct __zFILE FILE'C:/DesignLab-1.0.7/hardware/tools/zpu/bin/../lib/gcc/zpu-elf/3.4.2/../../../../zpu-elf/include/stdio.h:50: error: conflicts with previous declaration `typedef struct __FILE FILE'C:/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:13: error: declaration of `typedef struct __zFILE FILE'C:/DesignLab-1.0.7/hardware/tools/zpu/bin/../lib/gcc/zpu-elf/3.4.2/../../../../zpu-elf/include/stdio.h:50: error: conflicts with previous declaration `typedef struct __FILE FILE'C:/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:13: error: declaration of `typedef struct __zFILE FILE'C:/DesignLab-1.0.7/hardware/tools/zpu/bin/../lib/gcc/zpu-elf/3.4.2/../../../../zpu-elf/include/stdio.h:50: error: conflicts with previous declaration `typedef struct __FILE FILE'C:/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:26: error: declaration of C function `void fclose(FILE*)' conflicts withC:/DesignLab-1.0.7/hardware/tools/zpu/bin/../lib/gcc/zpu-elf/3.4.2/../../../../zpu-elf/include/stdio.h:172: error: previous declaration `int fclose(FILE*)' hereC:/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:31: error: expected unqualified-id before '--' tokenC:/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:31: error: expected `)' before '--' tokenC:/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:31: error: expected `,' or `;' before '--' tokenC:/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:32: error: expected unqualified-id before '--' tokenC:/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:32: error: expected `)' before '--' tokenC:/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:32: error: expected `,' or `;' before '--' tokenC:/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:35: error: conflicting declaration 'typedef int fpos_t'C:/DesignLab-1.0.7/hardware/tools/zpu/bin/../lib/gcc/zpu-elf/3.4.2/../../../../zpu-elf/include/stdio.h:59: error: 'fpos_t' has a previous declaration as `typedef _fpos_t fpos_t'C:/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:35: error: declaration of `typedef int fpos_t'C:/DesignLab-1.0.7/hardware/tools/zpu/bin/../lib/gcc/zpu-elf/3.4.2/../../../../zpu-elf/include/stdio.h:59: error: conflicts with previous declaration `typedef _fpos_t fpos_t'C:/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:35: error: declaration of `typedef int fpos_t'C:/DesignLab-1.0.7/hardware/tools/zpu/bin/../lib/gcc/zpu-elf/3.4.2/../../../../zpu-elf/include/stdio.h:59: error: conflicts with previous declaration `typedef _fpos_t fpos_t'C:/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:41: error: declaration of C function `int fsetpos(FILE*, fpos_t*)' conflicts withC:/DesignLab-1.0.7/hardware/tools/zpu/bin/../lib/gcc/zpu-elf/3.4.2/../../../../zpu-elf/include/stdio.h:207: error: previous declaration `int fsetpos(FILE*, const fpos_t*)' hereC:/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:45: error: expected `)' before '->' tokenC:/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:45: error: expected init-declarator before '->' tokenC:/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:45: error: expected `,' or `;' before '->' tokenC:/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:46: error: expected `)' before '->' tokenC:/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:46: error: expected init-declarator before '->' tokenC:/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:46: error: expected `,' or `;' before '->' tokenC:/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:47: error: expected `)' before '->' tokenC:/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:47: error: expected init-declarator before '->' tokenC:/DesignLab-1.0.7/hardware/zpuino/zpu20/cores/zpuino/zstdio.h:47: error: expected `,' or `;' before '->' tokenC:\DesignLab-1.0.7\hardware\zpuino\libraries\LiquidCrystal\LiquidCrystal.cpp:85: warning: unused parameter 'cols'Virhe käännettäessä. Tässä raportissa olisi enemmän tietoa "Näytä yksityiskohtaiset tiedot käännettäessä" sallittu Tiedosto > Asetuksissa Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.