Step-by-Step Guide to Developing ARM with IAR Using N32G435

This article provides a step-by-step guide on using IAR for ARM development, taking the N32G435 as an example. The process is as follows:

S1: Launch IAR by double-clicking the icon to open the project.

Step-by-Step Guide to Developing ARM with IAR Using N32G435

S2: Create a new workspace: File / New workspace.

Step-by-Step Guide to Developing ARM with IAR Using N32G435

Step-by-Step Guide to Developing ARM with IAR Using N32G435

S3: Create a new project: Project / Create New Project…

Step-by-Step Guide to Developing ARM with IAR Using N32G435

A new project window will pop up as shown below:

Step-by-Step Guide to Developing ARM with IAR Using N32G435

Select 【Tool chain】 as 【ARM】;

Select 【Project templates】 as 【Empty Project】;

Finally, select 【OK】, a window will pop up to set the project path and name, then 【Save】, as shown below:

Step-by-Step Guide to Developing ARM with IAR Using N32G435

The empty project has been created, as shown below:

Step-by-Step Guide to Developing ARM with IAR Using N32G435

S4: Add a file group

Right-click on the project, select 【Add】 / 【Add Group】

Step-by-Step Guide to Developing ARM with IAR Using N32G435

A window will pop up, enter the group name 【CMSIS】

Step-by-Step Guide to Developing ARM with IAR Using N32G435

S5: Add files

Right-click on the file group, select 【Add】 / 【Add Files】

Step-by-Step Guide to Developing ARM with IAR Using N32G435

A window will pop up, select the files

Step-by-Step Guide to Developing ARM with IAR Using N32G435

All file groups and files have been added, as shown below:

Step-by-Step Guide to Developing ARM with IAR Using N32G435

S6: Configure the project

Right-click on the project, select 【Options】

Step-by-Step Guide to Developing ARM with IAR Using N32G435

General Options configuration is very important

Select 【General Options】 / 【Target】 / 【Device】 as Nations N32G435KB — target chip

Note: This can only be selected manually, direct input is not supported

Step-by-Step Guide to Developing ARM with IAR Using N32G435

Output target configuration

Step-by-Step Guide to Developing ARM with IAR Using N32G435

Library configuration

Step-by-Step Guide to Developing ARM with IAR Using N32G435

Static Analysis configuration

Step-by-Step Guide to Developing ARM with IAR Using N32G435

Runtime Checking configuration

Step-by-Step Guide to Developing ARM with IAR Using N32G435

C/C++ Compiler configuration is very important

Step-by-Step Guide to Developing ARM with IAR Using N32G435

Step-by-Step Guide to Developing ARM with IAR Using N32G435

Step-by-Step Guide to Developing ARM with IAR Using N32G435

Add file paths and macro definitions is very important

Step-by-Step Guide to Developing ARM with IAR Using N32G435

Switch files to relative paths

Step-by-Step Guide to Developing ARM with IAR Using N32G435

After adding, it looks like this:

Step-by-Step Guide to Developing ARM with IAR Using N32G435

Assembler configuration

Step-by-Step Guide to Developing ARM with IAR Using N32G435

Output Converter configuration is very important

Step-by-Step Guide to Developing ARM with IAR Using N32G435

Config configuration is very important

Step-by-Step Guide to Developing ARM with IAR Using N32G435

Generally, the default is fine, here I choose a custom icf file

$PROJ_DIR$\N32G435PMSM.icf

Step-by-Step Guide to Developing ARM with IAR Using N32G435

Step-by-Step Guide to Developing ARM with IAR Using N32G435

Step-by-Step Guide to Developing ARM with IAR Using N32G435

Debugger configuration is very important

Step-by-Step Guide to Developing ARM with IAR Using N32G435

Step-by-Step Guide to Developing ARM with IAR Using N32G435

Step-by-Step Guide to Developing ARM with IAR Using N32G435

J-Link/J-Trace configuration is very important

Step-by-Step Guide to Developing ARM with IAR Using N32G435

Step-by-Step Guide to Developing ARM with IAR Using N32G435

Step-by-Step Guide to Developing ARM with IAR Using N32G435

S7: For the first time, select 【Rebuild All】

Step-by-Step Guide to Developing ARM with IAR Using N32G435

A new window will pop up to set the Workspace project name

Step-by-Step Guide to Developing ARM with IAR Using N32G435

S8: Differences between 【compile】, 【make】, 【rebuild all】, and 【Batch build】

【compile】, shortcut key 【ctrl+F7】 only compiles the selected target file

【make】, shortcut key 【F7】 continues compiling based on the last compilation

【rebuild all】 recompiles everything

【Batch build】 compiles multiple projects at once

Thus, we conclude.

Leave a Comment