|Cooking Hacks Forum
|Cross compile to Rasp.3 with eclipse,,
|Page 1 of 1|
|Author:||pluss2 [ Thu Oct 06, 2016 5:00 pm ]|
|Post subject:||Cross compile to Rasp.3 with eclipse,,|
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.
-- 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 ... ???
|Author:||libelium-dev [ Fri Oct 07, 2016 7:35 am ]|
|Post subject:||Re: Cross compile to Rasp.3 with eclipse,,|
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.
|Page 1 of 1||All times are UTC + 1 hour|
|Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group