Hello all...
BACKGROUND
I am new to Moteino, and the RFM69, Not new to Arduino so much, Kinda New to Eclipse, Veteran programmer.
I purchased a few Moteino, and love them. Lots of projects in my future for them. I have taken time to even start making my own OOP libraries with set of standardized 16/32-bit preset network packet communications protocols, etc. from the ground up for the RFM69, for the Moteino R4, and next will be the Mega. Nothing wrong with the RFM69 libraries, but I thought they were a bit too crude for what I really needed. It was mostly to better suit my style of programming.
Like a lot of aruduino hobbyists, I outgrew the Auduino IDE and got nothing but frustrated with it. I needed a better IDE, so being a linux user, I chose Eclipse with the Sloeber plugin.
I cut the heart (it had a small PIC on it) out of a solar powered motion security light and wired in a Moteino R4. I wanted the device to use only minimal transmit power levels, and to auto-adjust for minimum reliable sig. strength, so that they play nice and use less energy. I did this, as well as implementing a repeater-based network using a mega as the repeater on a 15-foot pole with constant power from a usb plugin charger. that way, all devices can use very little power, and the repeater will do all the heavy lifting for longer ranges. -- I have it working fantastic so far, and it has been running for a week or so now without any interaction.
(fast forward a bit) ..
> Now, it is time to build the central hub. The command center, as it would be put, where remote devices can report to and be commanded form. I was using the Arduino IDE to temporarily program the repeater and the hub, for testing purposes, but now it is time to use the Eclipse IDE and implement all that nice shared libraries and standardized OOP code I have made for the project.
I created a new project, and WHA?? -- No Moteino Mega from the list of boards avail. grrr, so here we go ..
I spent the last 10 1/2 hours trying to find out why I could not get, for the life of me, the Moteino libraries to work with the Eclipse Sloeber plugin. I tried everything, copying the moteino files/settings, etc... making new folders for the entire library,,.. grr frustrated as all ***, and I am a bit new to Eclipse,.. but this is ridiculous.
I ended up manually copying the "boards.txt" file from the Moteino repository (for the mega) into the "/opt/eclipse/arduinoPlugin/packages/arduino/hardware/avr/1.6.15/boards.txt" file at its bottom. I ALSO copied the various files in the repository for the mega and R4 into the apropriate folders for bootloader, core, etc. --
For a moment I thought VIOLA! -- Now when I re-launched the Eclipse IDE, I can make a project and choose the Moteio or Moteino Mega, great, so I chose the Mega,.. and I am flooded with repeating errors...
Eclipse arduino
Eclipse Sloeber
Failed to find core reference: arduino:arduino" "See Details for more information
Only there is no more info. And it pops up like 6-8 times in a row when you start the IDE.
THE SOLUTION!
(found indirectly in some obscure place on the Inrternet in an unrelated problem after pulling a LOT of hair out)..
In the Moteino repository, the boards.txt file is the problem for Sloeber. The line(s) that read "MoteinoMEGA.build.core=arduino:arduino" -> Really ALL the lines that might contain "arduino:arduino" seem to be the problem. They simply need to say "arduino". here is the corrected line for the Mega..
MoteinoMEGA.build.core=arduino:arduino
becomes ..
MoteinoMEGA.build.core=arduino
THATS IT!
Well,.. along with the fact that I copied the libraries form the repository over to their correct locations in the Eclipse Sloeber plugin.
-- I thought I would share this information in the hopes that someday, some else might be scowering the Internet and looking to find this same answer. Hopefully someone else will benefit form this.
Now back to making my cnetral hub command center to control my upcoming army of Moteino minions that are going to be placed into everything I Own! -- Muaahahaha!.
Hi Rawze, welcome to this forum and thanks for sharing your problem and solution!
While I was never a fan of Eclipse, it's nice to hear you can program Moteinos from that IDE.
Hi Rawze,
I Rawze thank you very much for the solution. I'm also using sloeber Eclipse plugin for Moteino Development. I copied all Moteino libs/boards manually to the folder structure of the plugin.
Could you open a Github Issue on Sloebers Repo with a description please. Maybe he could fix it.
https://github.com/jantje/arduino-eclipse-plugin
Best Regards,
René
Just for the record guys - the arduino:arduino is required apparently so I will not change that unless there's a valid replacement. Either way it's officially supported so the Eclipse plugin should also honor it.
Hello Felix,
yes if it is a bug in sloeber plugin the owner must fix it.
That's why I asked that Rawze should open an issue on the owner of the Plugin not the Moteiono lib.
Best Regards,
René