Create a STM32 project using Emide

Source: Internet
Author: User

Emide is an open source embedded integrated development environment, based on Code::Blocks development, able to support multiple platforms and multiple manufacturers of embedded hardware, inherited a bit of code::blocks.

Download the emide and install it, or choose the green version. Installation of J-link GDB Server is required if debugging is required.

1. Open Emide Select "New File/project" in the File menu to create a new project, such as:

2, pop up the following dialog box, select "Projects"

Select "Embedded Application" and click "Go" button

3. Pop up the following dialog box, click "Next" button

4, pop up the following dialog box,

Enter the project name and select the directory where the project is saved, and click on the "Next" button.

5, select the compiler and target file directory, the default is as follows, generally do not need to change. Click on the "Next" button.

6, pop Up the following dialog box, select equipment manufacturers, according to their own microcontroller selection. Click on the "Next" button.

7, pop Up the following dialog box, select the corresponding device, click on the "Next" button.

8, pop Up the following dialog box, set the target object's "stack" and "Heap" size, click on the "Next" button.

9, pop Up the following dialog box, click "Finish" button

10. Popup Project Properties dialog box, as follows:

Click on the "Debugger" tab and select "GdB" tab, select "J-link gdb Server" in "Remote Server" to select "J-link gdb Server" tab,

"Target device" in "Device Settings" is populated with the corresponding target devices, depending on the situation: target interface, speed and size end, etc. Click on the "OK" button.

11. Copy the library function to the appropriate directory. And in the project folder wearing the "Inc" folder, Stm32f10x_conf.h, stm32f10x_it.h files copied to the folder. Copy the stm32f10x_it.c file to the "SRC" folder at the same time.

12. Select the project name of the project tree in Emide, click "Right button" to select "Add Files" in the pop-up menu.

Select the file that you added, as follows:

13, select the project name of the project tree in Emide, click "Right mouse button" Select "Build Options" in the pop-up menu to open the "Project Build Options" dialog box.

Open the Compiler Settings tab and open the other options, under which you enter-STD=C99 to support the C99 standard.

Open the Compiler Settings tab and open the #defines tab to add a definition macro:

Stm32f10x_md

Use_stdperiph_driver

Open the Linker Settings tab, configure the Linker script

Open the Search Directories tab and add the reference directory as needed, as

Click on the "Pre/post Build Steps" tab and select the "Generate" checkbox in "post-build steps". and select the output file format, the default is hex.

Click "OK" button to complete the configuration, the project configuration is complete.

14, compile (build) and debug (Debug) testing are no problem.

Create a STM32 project using Emide

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.