cp.exe on Linux!?


segfault

Recommended Posts

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 directory

The "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

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

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

OK, I loaded one of the bit files onto the board like this:

papilio-prog -b bscan_spi_xc6slx9.bit -f papilio_pro.bit

But 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

  • 2 months later...

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 directory
make: *** [hex] Error 127

 

BUT $ find -name "libsrecord.so*"
./hardware/tools/papilio/lin32/libsrecord.so.0
./hardware/tools/papilio/libsrecord.so.0
Same file, btw.

 

Guess if I find a rpm-package with this guess http://srecord.sourceforge.net

maybe, maybe..

Link to comment
Share on other sites

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

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

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.