Jack Gassett Posted January 20, 2015 Report Share Posted January 20, 2015 With the release of DesignLab and retirement of the ZAP IDE this forum has been renamed from the ZAP IDE forum to the DesignLab forum. We will keep all of the old ZAP IDE discussions here as we proceed with DesignLab discussions. DesignLab is the next step beyond ZAP IDE and better integrates FPGA circuits with Arduino sketches. With DesignLab every sketch has an FPGA circuit associated with it. DesignLab also has easy to create and share libraries that have FPGA circuits, arduino style c++ libraries, and example sketches all packaged together. For more information about the vision of DesignLab visit the Papilio DUO Kickstarter page. To download the latest version of DesignLab visit the Download Page. Quote Link to comment Share on other sites More sharing options...
Peter Ivanov Posted January 23, 2015 Report Share Posted January 23, 2015 DesignLab 1.0.0, Papilio One 500K + Arcade MegaWing:I've changed boards.txt:zpuino_papilio_one500vps.name=Papilio One (500K) - ZPUino Hyperionzpuino_papilio_one500vps.boardid=0xb4010f00zpuino_papilio_one500vps.upload.protocol=zpuino-serialzpuino_papilio_one500vps.upload.maximum_size=12160zpuino_papilio_one500vps.upload.size_sections=allzpuino_papilio_one500vps.upload.speed=115200zpuino_papilio_one500vps.upload.tool=zpuinoprogrammerzpuino_papilio_one500vps.build.f_cpu=92000000Lzpuino_papilio_one500vps.build.core=zpuino2zpuino_papilio_one500vps.build.mcu=zpuzpuino_papilio_one500vps.build.pins=standardzpuino_papilio_one500vps.build.toolchain=zpuzpuino_papilio_one500vps.build.extra_flags=-D__ZPUINO_PAPILIO_ONE__ -DCLK_FREQ=92000000 -DBOARD_ID=0xb4010f00 -DBOARD_MEMORYSIZE=0x4000 -D__S3E_500__ -nostartfileszpuino_papilio_one500vps.build.extraSflags=-DBOARD_ID=0xb4010f00zpuino_papilio_one500vps.bitloader.tool=papilioprogzpuino_papilio_one500vps.bitloader.file=p1_500k/zpuino-1.0-PapilioOne-S3E500-Hyperion-HQVGA-PinSelect.bitzpuino_papilio_one500vps.xise.file=circuit/PSL_Papilio_One_500K.xisezpuino_papilio_one500vps.pdf.file=circuit/schematic_papilio_one_500k.pdfzpuino_papilio_one500vps.bit.file=circuit/500K/papilio_one_500k.bitSomehow the compiled binary is much larger than earlier for the sometris game. It was 9144 bytes for zpu1, but 14216 bytes without Timer now:Executing /usr/share/papilio-designlab/hardware/tools/zpu/bin/zpu-elf-size /tmp/build7908412095521054450.tmp/sometris.cpp.elfBinary sketch size: 14,216 bytes (of a 12,160 byte maximum) - 12,836 bytes ROM, 2,736 bytes memory, 116% used I've checked the dump of the zpuino1 and zpuino2 output. I found an sprintf in the latter one. Maybe -ffunction-sections -fdata-sections switches of gcc can help? Quote Link to comment Share on other sites More sharing options...
Peter Ivanov Posted January 23, 2015 Report Share Posted January 23, 2015 Another thing I found (under Linux): if I try to edit the circuit it always says it is a library circuit (but it is in ~/DesignLab/sometris/):http://stuff.ivanov.eu/designlab_screenshot.png EDIT: Probably 4 pull-ups are accidentally wired to integrated buttons instead of Joystick B pins. Quote Link to comment Share on other sites More sharing options...
Jack Gassett Posted January 23, 2015 Author Report Share Posted January 23, 2015 Another thing I found (under Linux): if I try to edit the circuit it always says it is a library circuit (but it is in ~/DesignLab/sometris/):http://stuff.ivanov.eu/designlab_screenshot.png EDIT: Probably 4 pull-ups are accidentally wired to integrated buttons instead of Joystick B pins. Hey Peter, After you save the file to a new location be sure to remove the line that associates it with a library circuit:#define circuit Arcade_MegaWingI should make this automatic so it isn't confusing... Jack Quote Link to comment Share on other sites More sharing options...
Jack Gassett Posted January 23, 2015 Author Report Share Posted January 23, 2015 Oh, and I'll fix those wrong pullups. Jack. Quote Link to comment Share on other sites More sharing options...
Jack Gassett Posted January 23, 2015 Author Report Share Posted January 23, 2015 Ok, I just uploaded DesignLab v1.0.1 with fixes for Hyperion and the pullups on the Arcade MegaWing circuit. http://forum.gadgetfactory.net/index.php?/files/download/236-papilio-designlab-ide/ Quote Link to comment Share on other sites More sharing options...
Peter Ivanov Posted January 24, 2015 Report Share Posted January 24, 2015 I downloaded DesignLab 1.0.1 (Linux 32-bit). I got these errors:Executing /usr/share/papilio-designlab/hardware/tools/zpu/bin/zpu-elf-size /tmp/build9052358762595091587.tmp/sometris.cpp.elfBinary sketch size: 14,216 bytes (of a 12,160 byte maximum) - 12,836 bytes ROM, 2,736 bytes memory, 116% usedprocessing.app.debug.RunnerException: Sketch too big; see http://www.arduino.cc/en/Guide/Troubleshooting#size for tips on reducing it.But ZAP 2.3.0 produces this executable size:Executing /usr/share/papilio-zap-ide/hardware/tools/zpu/bin/zpu-elf-size /tmp/build246896770949469503.tmp/sometris.cpp.elfBinary sketch size: 9,144 bytes (of a 12,160 byte maximum) - 9,008 bytes ROM, 1,312 bytes memory, 75% used Quote Link to comment Share on other sites More sharing options...
alvieboy Posted January 25, 2015 Report Share Posted January 25, 2015 Which board are you targeting ? Is that a Papilio One ? [edit: did not read the whole thread: a P1-500, correct ?] Indeed it looks like DesignLab is generating bigger binaries. We can eventually look at that in detail - can you send me the generated .elf file ? Send it to alvieboy at alvie dot com please. If printf is the culprit, I'll see where it's being called, and remove it (it's probably debugging) Alvie Quote Link to comment Share on other sites More sharing options...
Peter Ivanov Posted January 25, 2015 Report Share Posted January 25, 2015 Hi, Yes, Papilio One 500K and Arcade Megawing. I've sent the binaries. Regards,Peter Quote Link to comment Share on other sites More sharing options...
Peter Ivanov Posted April 4, 2015 Report Share Posted April 4, 2015 Hi,I've just downloaded DesignLab 1.0.5. I tried to use Papilio One 500K and Arcade Megawing again. My sometris game can be compiled and uploaded to the board, but none of the joysticks are working (neither integrated buttons nor Joy A, . Reading with digitalRead returns always LOW. Regards,Peter 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.