CoIDE Manual V2.0

Create a new component

How to create a new component? Below is an introduction of how to create a new project in CoIDE 2.0 Beta version, using STM32F407 discovery board as an example.

Step1: Click "Browse in Repository".

COIDE_CH4_1_1

Step2: Select the manufacturer, and here we select ST.

COIDE_CH4_1_2

Step3: Select the chip, and here we select STM32F407VG.

COIDE_CH4_1_3

Step4: Click the chip name and select "New Component Project" to create a component project.

COIDE_CH4_1_4

Step5: Input the name of the component project, configure the location of the project, and click "Finish". Please note that the project name is actually the name of the component, so we recommend you to think a good component name for the convenience of future use.

COIDE_CH4_1_5

Step6: Add the library component of STM32F407. Find component "STM32F407xx_cmsisboot", download it, and add it to the project, CoIDE will generate a component project template for us automatically.

COIDE_CH4_1_6

Step7: Accomplish file Hw_Component.h.

COIDE_CH4_1_7

Step8: Accomplish file Component_config.h.

COIDE_CH4_1_8

Step9: Accomplish file Conponent.c.

COIDE_CH4_1_9

Step10: Accomplish file Component.h.

COIDE_CH4_1_10

Step11: Modify the name of auto-generated file helloword.c and add it to the project, and then accomplish the example code of the component.

COIDE_CH4_1_11

Step12: Write the index document for the code component.

COIDE_CH4_1_12

Step13: Generate component documents: click "Create a Doc" button, then click "setting" button to view the component document in CoIDE.

COIDE_CH4_1_13

Step14: Click "Open Doc" button to view the code component in web explorer.

COIDE_CH4_1_14