IDEs / Sourcery Codebench

Forum for anything not suitable for the other forums.

IDEs / Sourcery Codebench

Postby louloizides » Wed Apr 01, 2015 11:27 pm

I finally have my Parallella up and running. Normally for coding on ARM devices I use Sourcery Codebench. But when I set it up using my normal settings I got a "No such file or directory" message when trying to run the exe. The file definitely exists and I get the same error when trying to run it through SSH. So I have no clue what's going on. I can compile on the device fine using gcc but I prefer to use the cross compiler when possible so that I can code on my PC. Does anyone use Sourcery Codebench and know what's going on (or can recommend the best settings to use)?

Or is there a better IDE I should be trying?

Note that I'd eventually like to try using both MPI and coprthr.
louloizides
 
Posts: 26
Joined: Fri Mar 20, 2015 11:53 am

Re: IDEs / Sourcery Codebench

Postby aolofsson » Wed Apr 01, 2015 11:43 pm

I once had the file not found error trying to run an x86 executable on an arm device. Doh! I am sure you wouldn't make that mistake but i thought i would tell you about mine anyway:-)
User avatar
aolofsson
 
Posts: 1005
Joined: Tue Dec 11, 2012 6:59 pm
Location: Lexington, Massachusetts,USA

Re: IDEs / Sourcery Codebench

Postby louloizides » Thu Apr 02, 2015 12:48 am

Oh I'm 100% sure that's the kind of thing I would do :)

But unfortunately that's not what's going on here. To be sure, I took one of the projects that ran fine on an oDroid and Raspberry Pi and then just changed the connection over to the Parallella. Same thing happened. So it has something to do with the Sourcery Codebench cross compiler.

If anyone in the forum us using Sourcery Codebench I'd love to find out what your connection and project settings are.
louloizides
 
Posts: 26
Joined: Fri Mar 20, 2015 11:53 am

Re: IDEs / Sourcery Codebench

Postby boeserbaer » Thu Apr 02, 2015 4:10 pm

Have you tried to see if you have missing libraries? ldd <executable> Best Regards, Mike
boeserbaer
 
Posts: 16
Joined: Thu Mar 12, 2015 11:06 pm

Re: IDEs / Sourcery Codebench

Postby boeserbaer » Thu Apr 02, 2015 4:25 pm

Hi. One more comment, you asked about other IDE's, and I am very satisfied using QT 5.2.1 in a cross compiled environment. There are good instructions regarding how get QT setup and working for the ZYNQ. My development environment is Ubuntu 14.04 LTS running as a virtual machine under OS X using VMware Fusion. For compilers you can either use the Xilinx arm cross compilers, or apt-get the arm-linux-gnueabihf-g++-4.8 compilers. There are ample tutorials on how to do this. To deploy QT on the parallella you just need to copy a few libraries over to /usr/lib/arm-linux-gnueabihf.

Once you set up the device under QT, you get automatic deployment and debug output via the QT Creator console. Also, since the IDE QT creator is separate from the QT library, You can install the latest version of QT creator, but stick with QT 5.2.1 for development.

Good luck getting you cross compiler setup regardless of the path you take.
boeserbaer
 
Posts: 16
Joined: Thu Mar 12, 2015 11:06 pm

Re: IDEs / Sourcery Codebench

Postby louloizides » Thu Apr 02, 2015 10:01 pm

Thanks - that's great advice about QT. But are there any more in depth tutorials that really spell it out step by step?

Is the Linux VM needed or is this something I could get working on a Mac?
louloizides
 
Posts: 26
Joined: Fri Mar 20, 2015 11:53 am

Re: IDEs / Sourcery Codebench

Postby boeserbaer » Fri Apr 03, 2015 12:12 am

I did not try to get a cross compile setup going on my mac (OS X yosemite). I think that the VM is the easier route, and there is a lot of info out there. I can provide a compressed file containing a pre-built QT 5.2.1 It is on the order of 380Mbytes. My upload is slow like 150kbytes/s so expect about a 45 minute download. Send me a pm if you need credentials to get the file.

I used the following tutorial, and modified it to use the Ubuntu provided cross compilers, and headless operation:
http://blog.idv-tech.com/2014/03/11/how ... linx-zynq/

Once the ESDK is stable, I think taking my VM which is fully setup for the Xilinx tools and cross development (or another) and stripping the Xilinx tools out so as not to violate there T&C, so that others can just install the Xilinx tools would really speed up access. Does Adapteva/Parallella want to host such a thing?
boeserbaer
 
Posts: 16
Joined: Thu Mar 12, 2015 11:06 pm

Re: IDEs / Sourcery Codebench

Postby aolofsson » Fri Apr 03, 2015 11:57 am

That's a fantastic idea! We would definitely be willing to host!
Andreas
User avatar
aolofsson
 
Posts: 1005
Joined: Tue Dec 11, 2012 6:59 pm
Location: Lexington, Massachusetts,USA

Re: IDEs / Sourcery Codebench

Postby louloizides » Fri Apr 03, 2015 2:05 pm

Awesome! I'll send you a PM. That would really make it helpful for me for someone who has very little Linux experience (still trying to learn).

FYI, I'm trying to figure out how I can use the board for my master's thesis which involves an embedded machine learning task. I'm really hoping to the co-processor is helpful. It's going to be a little tough to wrap my head around :)
louloizides
 
Posts: 26
Joined: Fri Mar 20, 2015 11:53 am

Re: IDEs / Sourcery Codebench

Postby louloizides » Fri Apr 03, 2015 3:01 pm

Andreas, maybe in the future you could host an Ubuntu VM image that has the entire dev environment set up (SDK, eclipse IDE, etc)? That would make it a lot easier for people like me that are pretty new to all of this.
louloizides
 
Posts: 26
Joined: Fri Mar 20, 2015 11:53 am

Next

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 3 guests