Unable to compile for LogicStart MegaWing for papilio one 500


tonys

Recommended Posts

I get the following error message when compiling for the papilio one 500,  in designlab 1.08 (and 1.07) it works correctly for the papilio pro. 

Any one has any ideas ?

Arduino: 1.0.8 (Windows 7), Board: "Papilio One (500K) - ZPUino Hyperion"

Build options changed, rebuilding all

Found smallfs directory

C:\DesignLab-1.0.8/hardware/tools/zpu/bin/mksmallfs C:\Users\Tony\AppData\Local\Temp\build9072019199683906941.tmp/smallfs.dat C:\Users\Tony\Documents\DesignLab\Tony_LogicStart/smallfs

SmallFS: Packed 1 files sucessfully!!!
C:\DesignLab-1.0.8\hardware\zpuino\zpu20\libraries\SPI\SPI.cpp:116: warning: unused parameter 'bitOrder'
C:\DesignLab-1.0.8\libraries\SD\SD.cpp:320: warning: unused parameter 'object'
C:\DesignLab-1.0.8\libraries\SD\SD.cpp:312: warning: unused parameter 'object'
C:\DesignLab-1.0.8\libraries\SD\SD.cpp:234: warning: unused parameter 'isLastComponent'
C:\DesignLab-1.0.8\libraries\SD\SD.cpp:234: warning: unused parameter 'object'
C:\DesignLab-1.0.8\libraries\SD\SD.cpp: In member function `bool SDClass::begin(uint8_t, uint8_t)':
C:\DesignLab-1.0.8\libraries\SD\SD.cpp:362: warning: control reaches end of non-void function
C:\DesignLab-1.0.8\libraries\SD\utility\Sd2Card.cpp:763: warning: unused parameter 'blockNumber'
C:\DesignLab-1.0.8\libraries\SD\utility\Sd2Card.cpp:763: warning: unused parameter 'eraseCount'
C:\DesignLab-1.0.8\libraries\SD\utility\Sd2Card.cpp:713: warning: unused parameter 'token'
C:\DesignLab-1.0.8\libraries\SD\utility\Sd2Card.cpp:713: warning: unused parameter 'src'
C:\DesignLab-1.0.8\libraries\SD\utility\Sd2Card.cpp:698: warning: unused parameter 'src'
C:\DesignLab-1.0.8\libraries\SD\utility\Sd2Card.cpp:659: warning: unused parameter 'blockNumber'
C:\DesignLab-1.0.8\libraries\SD\utility\Sd2Card.cpp:659: warning: unused parameter 'src'
C:\DesignLab-1.0.8\libraries\SD\utility\Sd2Card.cpp:582: warning: unused parameter 'sckRateID'
C:\DesignLab-1.0.8\libraries\SD\utility\SdFile.cpp:1291: warning: unused parameter 'str'
C:\DesignLab-1.0.8\libraries\SD\utility\SdFile.cpp:1276: warning: unused parameter 'b'
C:\DesignLab-1.0.8\libraries\SD\utility\SdFile.cpp:1174: warning: unused parameter 'buf'
C:\DesignLab-1.0.8\libraries\SD\utility\SdFile.cpp:1174: warning: unused parameter 'nbyte'
C:\DesignLab-1.0.8\libraries\SD\utility\SdFile.cpp:667: warning: unused parameter 'v'
C:\DesignLab-1.0.8\libraries\SD\utility\SdFile.cpp:653: warning: unused parameter 'fatTime'
C:\DesignLab-1.0.8\libraries\SD\utility\SdFile.cpp:637: warning: unused parameter 'fatDate'
C:\DesignLab-1.0.8\libraries\SD\utility\SdFile.cpp:608: warning: unused parameter 'dir'
C:\DesignLab-1.0.8\libraries\SD\utility\SdFile.cpp:608: warning: unused parameter 'width'
C:\DesignLab-1.0.8\libraries\SD\utility\SdFile.cpp:210: warning: unused parameter 'flags'
C:\DesignLab-1.0.8\libraries\SD\utility\SdFile.cpp:210: warning: unused parameter 'indent'
C:\DesignLab-1.0.8\libraries\modplayer\ptplay.cpp: In function `pt_mod_s* pt_load(char*, int)':
C:\DesignLab-1.0.8\libraries\modplayer\ptplay.cpp:135: error: `FILE' undeclared (first use this function)
C:\DesignLab-1.0.8\libraries\modplayer\ptplay.cpp:135: error: (Each undeclared identifier is reported only once for each function it appears in.)
C:\DesignLab-1.0.8\libraries\modplayer\ptplay.cpp:135: error: `fp' undeclared (first use this function)
C:\DesignLab-1.0.8\libraries\modplayer\ptplay.cpp:141: error: `fopen' undeclared (first use this function)
C:\DesignLab-1.0.8\libraries\modplayer\ptplay.cpp:143: error: `fseek' undeclared (first use this function)
C:\DesignLab-1.0.8\libraries\modplayer\ptplay.cpp:144: error: `ftell' undeclared (first use this function)
C:\DesignLab-1.0.8\libraries\modplayer\ptplay.cpp:147: error: `fread' undeclared (first use this function)
C:\DesignLab-1.0.8\libraries\modplayer\ptplay.cpp:148: error: `fclose' undeclared (first use this function)
Error compiling.

 

Regards

 

Tony Smith

Link to comment
Share on other sites

Not everything will fit into the Hyperion version of ZPUino. Hyperion sacrifices some memory that was available for program space for video memory. The Papilio One does not have any external memory so it is very memory constrained compared to the Papilio Pro. Then Hyperion makes it even more so...

I would recommend trying the regular version of ZPUino for the Papilio One and see if it works. If not then the Papilio One does not have enough memory for the example you are trying to synthesize.

Jack

Link to comment
Share on other sites

Jack,

 

Thanks for getting back, but the error message is regarding a compiler errors relating to file handling,

 

C:\DesignLab-1.0.8\libraries\modplayer\ptplay.cpp:135: error: `FILE' undeclared (first use this function)C:\DesignLab-1.0.8\libraries\modplayer\ptplay.cpp:135: error: `fp' undeclared (first use this function)
C:\DesignLab-1.0.8\libraries\modplayer\ptplay.cpp:141: error: `fopen' undeclared (first use this function)
C:\DesignLab-1.0.8\libraries\modplayer\ptplay.cpp:143: error: `fseek' undeclared (first use this function)
C:\DesignLab-1.0.8\libraries\modplayer\ptplay.cpp:144: error: `ftell' undeclared (first use this function)
C:\DesignLab-1.0.8\libraries\modplayer\ptplay.cpp:147: error: `fread' undeclared (first use this function)
C:\DesignLab-1.0.8\libraries\modplayer\ptplay.cpp:148: error: `fclose' undeclared (first use this function)
Error compiling.

 

Do you really think this could be related to a memory issue ?

 

BTW it give the same error on the non-hyperion ZPUINO,

 

Regards,

 

Tony

 

Link to comment
Share on other sites

Yes, I haven't visited that code in a while but I'm pretty sure what you are running into is that certain libraries are disabled for the Papilio One because there is not enough memory to support them. What are you trying to compile anyway, I can't really tell from your pasted information...

It should say in the comments for the example what boards are supported. I think the Papilio One barely supported the Amiga mod player by itself, but definitely not with other players... That was the whole reason for the RetroCade light version. It was made for the Papilio One.

Jack.

Link to comment
Share on other sites

In the meantime, try to comment out this section like it says:

//Comment out this section for Papilio One.
#ifdef __ZPUINO_PAPILIO_PRO__
  #include <SD.h>
  #include "SmallFS.h"
  #include "modplayer.h"
  #include "ramFS.h"
  #include "cbuffer.h"
  MODPLAYER modplayer;
#endif

Like this:

//Comment out this section for Papilio One.
//#ifdef __ZPUINO_PAPILIO_PRO__
//  #include <SD.h>
// #include "SmallFS.h"
//  #include "modplayer.h"
//  #include "ramFS.h"
//  #include "cbuffer.h"
//  MODPLAYER modplayer;
//#endif

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.