Post a new topicPost a reply Page 1 of 1   [ 2 posts ]
Author Message
 Post subject: Cross compile to Rasp.3 with eclipse,,
PostPosted: Thu Oct 06, 2016 5:00 pm 

Joined: Thu Oct 06, 2016 4:29 pm
Posts: 3
Hi,
i have a problem with cross compile to Rasp.3

I did make execute file in Rasp.3. But It it not conclusion what i coding.

I have a two Rasp.3, One is End-device the other is Gateway.
In this topic, The goal is that End-device send message and i can monitoring it with console log.
I success in End-device(connected with ssh).

I want to cross compile with End-device, so i used Eclipe CDT and Rasp.3 tool chain(arm-linux-gnueabihf). First test is success that make print function execute file to End-device.

and then, i start making a environment in eclipse with libbcm2835.a and bcm2835.h.
First step, make project in eclipse and import exist code what i already use.
exist code file composition is below.

end_device
|
-- lib(folder include arduPi, arduPi-api, libraries)
|
-- end_device.cpp(main function)
|
-- The other file what i want to do(.h .cpp)

I debug some error like a double main function, example folder in lib\arduPi\bcm2835-1.46\examples, test.cpp etc..

When i build this project, 2 error is appread. first is "cannot open output file end_device: invalid argument". Second is make: ***[end_device] Error1. But when i just run this project, dialog is pop up with "Errors exist in a required project. Continue launch?". i ignore this error and i check the end_device(execute file) exist in Rasp.3

But it didn't work what i did with error message - "Failed to open /dev/mem, try checking permissions. Failed to map the physical GPIO registers into the virtual memory space. bcm2835_init: Unable to open /dev/mem: Permission denied".
I doesn't use GPIO pin. But i ignore this error message and the i used sudo command like "sudo ./end_device". But it just finished with no message.

What can i do ... ???


Top
 Profile  
 
 Post subject: Re: Cross compile to Rasp.3 with eclipse,,
PostPosted: Fri Oct 07, 2016 7:35 am 

Joined: Mon Sep 28, 2009 12:06 pm
Posts: 11338
Hi pluss2,

We have never used eclipse with our libraries and our shields in Raspberry Pi.

Please follow the tutorials that we have to use our shields.

Regards


Top
 Profile  
 
Display posts from previous:  Sort by  
Post a new topicPost a reply Page 1 of 1   [ 2 posts ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
cron


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Libelium theme based on 610nm Style by Daniel St. Jules of http://www.gamexe.net


© Libelium Comunicaciones Distribuidas S.L. | Terms of use.