Build the strongest eclipse, develop the AVR project

Source: Internet
Author: User
Tags pack



Objective



Because I am an embedded MCU development siege Lion, I use the IDE on their own to spend some effort to optimize the upgrade of it, in order to solve the problem of higher efficiency.



"If you want to be good at work, you must first sharpen it", from the entry to now also used a lot of editor/ide, from notepad++ in school to Uestudio to vs 2013 and so on,



Every time I find a useful feature, I can program faster.



Search the Internet for a long time, found that the information about the eclipse is too little incomplete, so we have this blog post, each of our share will eventually converge



Into ocean. For easy retrieval, please specify the source of the reprint.



Uestudio probably spent more than 2 years, I go through every corner of it to optimize for my needs, but after all, it is a paid-closed editor, and gradually can not



Meet my needs, while now idle, in the online rushed a long time after the spray, after several comparisons, finally chose Eclipse. There are several reasons for this:



1. Open source



This is very important, so that I can better optimize it, in case there is a function I would like to use, even if the changes have code can be changed, right!



2. Special rich third-party plugins



And it's all open source. Although many of these plugins have not been updated for many years, these are still very useful.



3. Conditional compilation Difference Display



The code snippet that can be compiled on the condition shows that the feature segment is not configured at a glance.



4. Custom formatting of code



Because of the frequent receiving, browsing the code of others, using this function as a key format of their usual format, extremely convenient.



5. Reference Location Search



Easy to check the use of functions



6. Easy to compile



can refer to other compilers to handle compilation results.



7. To summarize, it is easy to use!





Software Installation List



Eclips http://www.eclipse.org/Select the eclipse IDE for C + + developers version, I downloaded the Luna version because the latest version has not yet updated the Chinese language pack



WINWVR http://winavr.sourceforge.net/index.html using the GCC compiler



MinGW http://www.mingw.org/is used to test the local C code and is not installed. Since Microsoft has always rejected the full support of C, so the current MinGW is the best choice, of course, you can choose Codeblocks, C-free and so on



The above installation is relatively simple, on-line search related blog can, need to note is to add the necessary system environment variables. For this I made a plugin using a batch script, so please look forward to my other posts.



Other related blog posts are recommended:



Build Eclipse IDE AVR development Platform



Building Avr-c language development environment ECLIPSE+WINAVR



Eclipse Environment Construction _ Baidu Experience



I installed it separately in the D:\CODE\MinGW D:\CODE\eclipse-Luna directory, which makes it easy to manage



List of my Eclipse Essentials plugins:



AVR-ECLIPSE Auxiliary Configuration AVR Project Http://avr-eclipse.sourceforge.net/updatesite
Luna Language Pack (currently not supported in Mars version) Http://download.eclipse.org/technology/babel/update-site/R0.12.1/luna
ColorCode Code Coloring Plugin http://colorer.sf.net/eclipsecolorer/
Easy Explorer Opens the project file location http://sourceforge.net/projects/easystruts/
Regex Util Regular expression aided design tool http://regex-util.sourceforge.net/update/
Subversive Site version Control SVN plugin http://download.eclipse.org/technology/subversive/3.0/update-site/
Git version control GitHub plugin http://download.eclipse.org/egit/updates/



Note: The above-mentioned URLs are currently the latest available version (2015-07-11), many of which are not updated for a long time, so use this can be.



Alternatively, you can automatically find the latest version by using the following method: Help->eclipse Marketplace, search for plugins inside.



Also, check the source list in Help->install new software to find some new gadgets.



tips for using a cheat



1. After installing the Eclips plugin, restart the software to apply.



Restarting eclipse is a good choice when you occasionally encounter problems that are confusing.



2. Auto-Save before compiling



To activate Autosave open the Eclipse Preferences (Window > Preferences ...) and select General, Workspace. Here the Save automatically before build option can is enabled.



3. Modify the labeling resolution settings



Windows-> Preferences, C + +, Indexer revoke the index source files not includeed in the build option.



When you press F3 to jump to an exception (skip to the part of the code that is not compiled), most also for this reason, when you revoke this option, the definition of invalid code snippet is not referenced, and it is more convenient to search for a full-project search.



4. Because the Remotesystemstempfiles project is always generated automatically, how to delete it?



A. Open Windows-->preferences-->general-->startup and shutdown remove the selected state of the RSE UI and turn off eclipse;
B. Open the Eclipse workspace to remove the "Remotesystemstempfiles" project and then start the Eclipse program, no longer automatically generated.



This thing is used to do remote file local cache use, it is recommended not to delete. Eclipse has a "remote System exexplorer" perspective, which has a variety of remote terminal functions such as FTP, SSH, Linux, Unix, Windows, Telnet, etc., which depend on the " Remotesystemstempfiles ".



5. Delete line trailing spaces when saving



Window > Preferences > Editor check Remove trailing whitespace



6. Display the print page margin



Window > Preferences > Editor tick Show print page margin



7. Above settings and other settings please look forward to my next blog post, "Create your own dedicated eclipse personalization."






Some memo items for AVR related projects:



1. Create the AVR Project



Select the first, General mode (AVR cross target applications) and the second Common Library template (AVR cross target Static library)



2. Project Properties



Since the makefile file configured with the Avr-eclipse plug-in has been compiled with some unresolved issues, I recommend the following settings for the created project, which we use to create the project manually or makefile created by AVR Studio.



Open the project properties,



C + + Build revocation gernerate makefiles automatically option



C + + build-"Bulider Settings in the Build location to the default folder



Add a project reference under the Include tab in the C + + general-Path and Symbols (if your project is also managed in folders)



3. Pre-compilation Instructions



Open the project properties, go to C + + Build > Settings > Build Steps and set the following as the Pre-build Steps Command



-avr-size--format=avr ==mcu=${avrtargetmcu} ${buildartifactfilename}



4. Post-compilation instructions



Open the project properties, go to C + + Build > Settings > Build Steps and set the following as the Pre-build Steps Command



Avr-objcopy-r. Eeprom-o binary ${buildartifactfilename} ${buildartifactfilebasename}.bin



5. Create the makefile file using Avr-eclipse, which differs from as as follows:



1, the project properties page to set the optimization option to -0s



2, after compiling, found that the file is slightly larger than the makefile of the as settings, the comparison of settings found the following different



Asmflags +=-wa,-gdwarf2



CFLAGS + =-g2-ffunction-sections



Lack



CFLAGS + =-MD-MP-MT $ (*f). O-MF dep/$ (@F). D



Works created using the Avr-eclipse plugin, large after compilation, cannot be run



Recording:



File header



/* --------------------------------------------------------------------
* Copyright (C), ${year},c.w.coderp. [Email protected]
* File_name:${file_name}
* Author: ${user}
* Created: ${date} ${time}
* GCC Vers:gnu make 3.81
* @version: 1.0.0
* Description:
*
* ------------------------------------------------------------------- */






Other plugin memos:



The following is collected from the Internet, not organized, so you can slowly explore the rise of the words.



1.MyEclipse Java EE Development Plug-in, support servlet/jsp/ejb/database manipulation, etc.



Www.myeclipseide.com



2.Properties Editor to edit the Java properties file, and can be automatically saved to Unicode format



Http://propedit.sourceforge.jp/index_en.html



3.Colorer take for hundreds of types of files by syntax coloring



http://colorer.sourceforge.net/



4.XMLBuddy Editing XML files



Www.xmlbuddy.com



5.Code folding Add a variety of code folding features (more than eclipse comes with)



Http://www.coffee-bytes.com/servlet/PlatformSupport



6.Easy Explorer access to the folder where the selected files and directories are located from eclipse



http://easystruts.sourceforge.net/



7.Fat Jar Packaging Plug-in, can easily complete a variety of packaging tasks, can include external packages, etc.



http://fjep.sourceforge.net/



8.RegEx Test Regular expression



http://brosinski.com/stephan/archives/000028.php



9.JasperAssistant Report Plugin (strong, ask for money)



http://www.jasperassistant.com/



GUI Editor plugin for 10.Jigloo GUI Builder java



http://cloudgarden.com/jigloo/



11.Profiler performance tracking and measurement tools to track and measure BS programs



http://sourceforge.net/projects/eclipsecolorer/



12.AdvanQas provides prompt and quick help for conditional statements such as if/else (automatic change of structure, etc.)



Http://eclipsecolorer.sourceforge.net/advanqas/index.html



13.LOG4E log4j plug-in that provides various and log4j related tasks, such as adding a logger for methods, classes, etc.



Http://log4e.jayefem.de/index.php/Main_Page



14.VSSPlugin VSS Plugin



Http://sourceforge.net/projects/vssplugin



15.Implementors provides a way to jump to a method's implementation class, rather than the function in the connection (practical!)



http://eclipse-tools.sourceforge.net/implementors/



16.Call Hierarchy shows the call hierarchy of a method (which methods are tuned and which methods are tuned)



Http://eclipse-tools.sourceforge.net/call-hierarchy/index.html



17.EclipseTidy checking and formatting of html/xml files



http://eclipsetidy.sourceforge.net/



18.Checkclipse Check the style and wording of code to conform to specifications



Http://www.mvmsoft.de/content/plugins/checkclipse/checkclipse.htm



19.Hibernate Synchronizer Hibernate plugin, auto map, etc.



http://www.binamics.com/hibernatesync/



20.VeloEclipse Velocity Plug-in



http://propsorter.sourceforge.net/



21.EditorList easy to list all open editor



http://editorlist.sourceforge.net/



Monitoring of 22.MemoryManager memory usage



http://cloudgarden.com/memorymanager/



Plug-in website:



http://www.eclipse-plugins.info/eclipse/index.jsp



http://www.eclipse-workbench.com/jsp/



Http://eclipse-plugins.2y.net/eclipse/index.jsp (very very famous plugin update website)



http://www.crionics.com/products/opensource/eclipse/eclipse.jsp (Clear classification)



http://www.eclipseplugincentral.com/



Preferences Unable to display new installed plug-in workaround



Remove the Platform.xml file under C:/eclipse/configuration/org.eclipse.update and restart Eclipse



Perl plugin Http://e-p-i-c.sf.net/updates



The Freemarker IDE is a freemarker (template engine) awareness editor that supports: syntax highlighting (Syntax hilighting), Content Assist (contents Assist), and outline view (Outline view). The home page provides flash video on how to use the plugin for development. Freemarker also has another plugin Freemarker Eclipse Plugin.



Official website: http://freemarker-ide.sourceforge.net/
Plugin Download url:http://sourceforge.net/projects/freemarker-ide/files/



C # plugin Http://www.improve-technologies.com/alpha/updates/site.xml



C Plugin Http://update.eclipse.org/tools/cdt/releases/new



Hex plugin Http://ehep.sourceforge.net/update



Eclipse Accelerator Plugin Keepresident



http://suif.stanford.edu/pub/keepresident/



Rationale: Leverages two windows Api-setprocessworkingsetsize and VirtualLock (for Windows platforms).



It was a lot quicker to switch.



The official recommended minimum value is set at 100MB and the maximum value is about 250MB.








Copy to Google TranslateTranslation Results


Build the strongest eclipse, develop the AVR project


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.