Help for first time building PanelDue firmware
-
Hello,
I am attempting to build PanelDue firmware (1.24) I have the following installed:
*gcc-arm-none-eabi-6-2017-q2-update-win32-sha1
Eclipse IDE for C/C++ Developers
Version: Oxygen.3a Release (4.7.3a)
Build id: 20180405-1200*and have added make.exe from Arduino 1.5.8 to the GCC install path
I have followed the build instructions but do not think I have everything set up correctly.
When I try to build the PanelDue project (project>Build all) in Eclipse I get the following result:**10:03:50 **** Incremental Build of configuration Release-7.0 for project PanelDue ****
make -j6 all10:03:51 Build Finished (took 113ms)**
How can I tell if I have imported the PanelDue project to Eclipse correctly?
and is there anything else I need to do before I can build the project?Thank you for the help!
-
I now have some output after changing the Build type to internal builder in the project properties. However, the output is .elf and not .bin.
There are also numerous warnings from Buzzer.cpp
Appreciate any thoughts on what I am missing.
-
Have you copied rrflibraries into the paneldue firmware folder as well?
-
I didn't have the rfflibraries and have since found them - they are not mentioned in any of the build instructions.
(https://github.com/Duet3D/RRFLibraries)Are they to sit in the PanelDue project in an rfflibraries folder?
-
like this
-
Thank you for such a fast response!
![0_1606750563595_result.jpg](Uploading 100%)
I'm not sure if the image upload worked - but as output I get :
PanelDue-v2-4.3.elf
PanelDue-v2-4.3.map
and 92 files in the src folderIs this as expected?
-
-
Download and install the gcc cross-compiler from https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads:
User version 9_2020_q2_update -
Download and install Eclipse IDE for C/C++ Developers version 2020-06, from http://www.eclipse.org/downloads/eclipse-packages/. You do not need the Arduino add-on.
-
Download and install GNU Arm Eclipse from https://sourceforge.net/projects/gnuarmeclipse/files/Build Tools/gnuarmeclipse-build-tools-win64-2.6-201507152002-setup.exe/download. This provides versions of make.exe, rm.exe and other tools without the 8192-character command line limitation of some other versions.
-
Modify your PATH environment variable to include the 'bin' folder of the GNU ARM Eclipse installation.
-
Run "which rm" and "which make" to make sure that rm and make will be fetched from that folder.
-
In Eclipse create new workspace C:/Eclipse/Paneldue. Then exit Eclipse.
-
Download the paneldue project as a zip file from github and unzip it into C:/Eclipse/Paneldue. Then rename folder Paneldue-master in that folder to Paneldue.
-
Repeat the previous step for github project RRFlibraries (Dev Branch). Then rename folder RRFLibraries-dev in that folder to RRFLibraries.
-
list itemLoad Eclipse and tell it to import the Paneldue and RRFLibraries projects.
-
The build depends on the Eclipse workspace variable 'ArmGccPath" being set to the directory where your arm-none-eabi-g++ compiler resides. For example "C:\Program Files (x86)\GNU Arm Embedded Toolchain\9 2020-q2-update\bin" on Windows. To set it, go to Windows -> Preferences -> C/C++ -> Build -> Build Variables and click "Add..."
-
Change the build configuration for RRFlibraries to SAM4S
-
Change the build configuration for Paneldue to the panel you want.
Build paneldue
-
-
Thanks so much for the detailed instructions they've resolved everything for me and I'm now happily compiling - I hope they help out some other people too.
-
I followed the instructions
Can't find String.h file in RRFLibraries\src\General \Where can i find it?
Thanks. -
Open up RRFLibraries/General and see if it's there first.
If it is, you need to get your INCLUDE path set to include RRFLibraries folder.
(I'm not sure how to do that.)
-
I didn't find the file on GitHub too
-
Make sure you are using the dev branch of the RRFLibraries project.
-
@dc42 thanks a lot !