segfault Posted March 2, 2014 Report Share Posted March 2, 2014 Hi, using the Linux version of ZAP 2.2.0, I get the following error:Cannot run program "/install_dir/hardware/tools/papilio/cp": java.io.IOException: error=2, No such file or directoryThe "hardware/tools/papilio" directory contains "cp.exe", which is not usable on Linux for obvious reasons. (I tried substituting /bin/cp, but that gives me a new error.) What am I doing wrong? Link to comment Share on other sites More sharing options...
Jack Gassett Posted March 3, 2014 Report Share Posted March 3, 2014 What are you doing in zap when this error happens? Jack. Link to comment Share on other sites More sharing options...
segfault Posted March 3, 2014 Author Report Share Posted March 3, 2014 I'm trying to upload the example sketch for the AVR8 processor. I followed the instructions given in the ZAP IDE Quick Start video. Link to comment Share on other sites More sharing options...
Jack Gassett Posted March 3, 2014 Report Share Posted March 3, 2014 Ah, ok. AVR8 is not working under linux yet. I'm working on a new zap release this week, I'll see if I can sort out the linux issues for AVR8. Jack. Link to comment Share on other sites More sharing options...
segfault Posted March 3, 2014 Author Report Share Posted March 3, 2014 Hello Jack, ZPUino doesn't work for me either. I get the following error when I do "Tools -> Burn Bootloader":java.io.IOException: Cannot run program "/home/vibe/installed/papilio-zap-ide/hardware/tools/papilio/papilio_loader/bin/papilio-prog.exe": java.io.IOException: error=2, No such file or directory Link to comment Share on other sites More sharing options...
Jack Gassett Posted March 3, 2014 Report Share Posted March 3, 2014 Ok, that is the older way of doing things... Please take a look at file/examples/00.Papilio_Schematic_Library You will find several ZPUino examples in the new format. There will be zpuino bit files in the sketch directory, press control-k to open the sketch directory and use papilio-prog to load the sketch files to spi flash. Things are still a work in progress under linux. Jack. Link to comment Share on other sites More sharing options...
segfault Posted March 3, 2014 Author Report Share Posted March 3, 2014 OK, I loaded one of the bit files onto the board like this:papilio-prog -b bscan_spi_xc6slx9.bit -f papilio_pro.bitBut when I try to upload the Papilio_QuickStart sketch in ZPUino_Examples from the Zap IDE, I get this error:Executing /home/vibe/installed/papilio-zap-ide/hardware/tools/zpu/bin/zpu-elf-size /tmp/build6037701769378218784.tmp/Papilio_QuickStart.cpp.elfBinary sketch size: 1,856 bytes (of a 8,388,608 byte maximum) - 1,836 bytes ROM, 236 bytes memory, 0% usedopen: No such file or directoryCould not open port, exiting...Any idea what could be wrong? Link to comment Share on other sites More sharing options...
alvieboy Posted March 3, 2014 Report Share Posted March 3, 2014 You're probably specifying the wrong port. If you don't have any other Serial->USB adaptors, it should be /dev/ttyUSB1. Choose it from the menus in the IDE, then it should work properly. Link to comment Share on other sites More sharing options...
segfault Posted March 3, 2014 Author Report Share Posted March 3, 2014 It's working now, thanks! Link to comment Share on other sites More sharing options...
defuzo Posted May 25, 2014 Report Share Posted May 25, 2014 Hello.. I also test ZAP, for Linux. The Quickstart example, didnt wanto get uploaded..: Converting Intel hex file to Verilog Mem format:./srec_cat Papilio_QuickStart.cpp.hex -Intel -Byte_Swap 2 -Data_Only -o tmp.mem -vmem 8./srec_cat: error while loading shared libraries: libsrecord.so.0: cannot open shared object file: No such file or directorymake: *** [hex] Error 127 BUT $ find -name "libsrecord.so*"./hardware/tools/papilio/lin32/libsrecord.so.0./hardware/tools/papilio/libsrecord.so.0Same file, btw. Guess if I find a rpm-package with this guess http://srecord.sourceforge.netmaybe, maybe.. Link to comment Share on other sites More sharing options...
defuzo Posted May 25, 2014 Report Share Posted May 25, 2014 Oh, It was the AVR8 example I tested. That was mentioned here that it didnt work. BUT, the ZPUino didnt work neather, it compiles. But trying to burn bootloader just said "Error while b urning bootloader". The older Papilio_Loader_V1.5 is the only tool I know of that works under Linux. Link to comment Share on other sites More sharing options...
Jack Gassett Posted May 26, 2014 Report Share Posted May 26, 2014 Hello defuzo, I'm sorry that things are a little confusing right now. I'm trying to transition away from the ZAP IDE way of doing things which is using the burn bootloader, to the new DesignLab way of doing things where bit files are included with sketches. The problem is that sales of the Papilio slumped to the point where I've had to put all of my time and energy into a Kickstarter campaign to bring in enough resources to get back to work on the software. All of my time has gone into the Kickstarter and in the meantime ZAP IDE is kind of stuck in the transition to the DesignLab IDE. I really apologize and I hope you bear with me just a little longer while the Kickstarter completes and I can get the resources to complete the DesignLab transition. In the meantime, the burn bootloader option is not working because that is the old way of doing things, I realized it was not going to be sustainable so I changed to including bit files with every sketch. So if you select the ZPUino Soft Processor as your board type and then go to file/examples/00.Papilio_Schematic_Library you should see several sketches there. They all have a bit file associated with them. If you open any of the examples you will see a link in the comment section to load the bit file. Please give that a try, it should work under linux. Also, AVR8 should be working under Linux as well with the latest ZAP IDE release. It looks like I missed the srecord dependency, I was rushing a little bit, so if you install the library yourself then AVR8 should be working. Jack. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.