Stm32 cross-tool chain construction process 1 in Ubuntu

Source: Internet
Author: User

To be honest, this process will be a very difficult process and may not be successful. Therefore, many of my friends have poured cold water on me when they heard me say they want to do it.

However, I still want to work hard, because this time I made up my mind to fight against Microsoft.

Even if this process is difficult-I often see the scenes in my mind that the hualunshi is still shouting freely.

I say to myself, it is also to motivate myself: only such a person has the right to pursue and gain freedom.

 

It's hard for me to find that it's so hard to download codesourcery code.pdf just to get an available GCC compiler.

My network speed is quite fast, but somehow it is quite painful to get something from this website.

 

Let's talk about the general idea.

First, let's talk about the most popular online solution.

Eclipse + codesourcery + openhcd is used.

I spent a day rummaging through the entire network last weekend and found that this is the most common and probably the most successful solution.

However, I considered this solution and found that it is not suitable for me.

 

First of all, I have seen and used the super editor ecilpse, which is too big and comprehensive. It is more complicated than Vim Emacs, and VIM is enough for me.

I am a lightweight person and I hate it very much.

And because it is a super editor, it is quite useful. Although I have used this compiler several times, I almost think of vs2010 of 1 GB at the same time, refer to the files in the file tonight.

Configure the environment.

 

However, during compilation, I still encountered a link problem. Yes, my friend told me that this is very difficult.

I decided to stop because I had to wait for a while after 11 o'clock.

 

The. Bin is the simplest place to compile, but its installation command is different from direct./xxx.

Instead, it should be/bin/sh./xxx

 

In addition, I found that I cannot install it in a non-root folder.

Tomorrow or later, I have to find a way to verify this.

Similarly, I found that the environment variables I set are only useful under root, and even sudo is useless, which may be related to the location I set.

 

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.