Gadgetoid Posted May 11, 2013 Report Share Posted May 11, 2013 I seem to have run into a little problem hitting around 46,000 bytes in sketch size; the resulting sketch uploads, but does not run! Can someone else try padding out the sketch with a few thousand bytes and tell me if it breaks? For now I have removed the Space Invaders animation so that I can continue working on my code, but I can foresee problems building a feature-rich Synth if this barrier continues to exist... Link to comment Share on other sites More sharing options...
alvieboy Posted May 13, 2013 Report Share Posted May 13, 2013 Which papilio are you using ? Link to comment Share on other sites More sharing options...
Gadgetoid Posted May 13, 2013 Author Report Share Posted May 13, 2013 Whoops. Sorry, that would be a pretty crucial piece of information! I'm using the Papilio Pro, not a prototype or anything of that nature. I seem to get intermittent problems when I reach a certain sketch size, from it simply not running at all, to me being unable to page from one screen to another in the RetroCade Software. You can download the horribly hacky code I'm trying here: https://github.com/Gadgetoid/RetroCade_Synth You'll notice I've commented out the spaceinvaders stuff: https://github.com/Gadgetoid/RetroCade_Synth/blob/master/RetroCade_Sketch/RetroCade.cpp In retrospect, this could be a memory issue! Link to comment Share on other sites More sharing options...
Jack Gassett Posted May 14, 2013 Report Share Posted May 14, 2013 Gadgetoid, It should have up to 8MB of memory available. One thing to watch for is switch statements, I would see weird behavior like you are describing when I would setup big switch statements. Things would stabilize when I would move code out of the case sections and into a function and just call the function from the case section. Its a bug with gcc that Alvie can explain better then I can. Jack. Link to comment Share on other sites More sharing options...
Gadgetoid Posted May 14, 2013 Author Report Share Posted May 14, 2013 Cheers. I'll try moving things out of any switch statements I'm using and into functions. It will likely make the code moderately easier to read, anyway. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.