2359 views|8 replies

6075

Posts

6

Resources
The OP
 

【National Technology N32G430】03 Development foundation, the platform is emerging [Copy link]

 

03 The foundation of development, the platform emerges

I often use IAR as my development environment. I checked the Nations.N32G430_Library.1.0.0 in the documentation and found that only IAR projects are used in ICACHE_CoreMark under FLASH. The other examples are based on Keil. I caught the fish that slipped through the net! However, I still plan to rebuild the test project based on IAR8.30.

First, use Nations Device PACK Add To IAR Tool.exe software to add chip information in the target IAR. The operation is very simple. Just find the installation directory of IAR and install it.

Next, open IAR and create a new project;

Create the following folders:

CMSIS, stores system files;

Libraries, which store manufacturer-level hardware firmware;

Startup, stores startup files;

USER, to store user files;

The following is the project configuration:

Select the project name - open Options, select the device, previously Pack allowed us to discover the target chip;

To configure CMSIS, one method is to use the kernel file that comes with IAR, and the other is to add the files provided by the manufacturer to the CMSIS we created ourselves. National Technology provides these files. In order to avoid differences, do not check Use CMSIS;

Configure include, and be sure to add the folders where the corresponding C files and header files are located;

Configure output files;

Configure Linker configuration;

Simulation configuration: The onboard debugger is the standard CMSIS DAP. Note that you must select SWD . The default is JTAG. This small detail bothered me for a long time when I downloaded the program later.

Select the correct FlashLoader;

At this point, the IAR configuration is basically completed. There is no need to write a specific program. Make it first to check if there are some unknown configuration errors. You can modify them according to the prompts.

Error reporting and modification:

Fatal Error[Pe035]: #error directive: "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)" G:\s-software program\j-evaluation\20220909 N32G430_eva\CMSIS\core\core_cm4.h

Solution: Add __FPU_PRESENT in Option---C++--define;

Fatal Error[Pe1696]: cannot open source file "log.h" G:\s-software program\j-evaluation\20220909 N32G430_eva\USER\src\main.c

What is log.h? It just has a redirection and initialization, which should be removed after the subsequent changes.

Error[Pe020]: identifier "FILE" is undefined G:\s-software program\j-evaluation\20220909 N32G430_eva\USER\src\log.c

Solution: Change the library setting to Full.

This post is from Domestic Chip Exchange

Latest reply

Hello, where can I download the Nations Device PACK Add To IAR Tool.exe software?  Details Published on 2023-8-2 20:44
Personal signature

在爱好的道路上不断前进,在生活的迷雾中播撒光引

 
 

6841

Posts

11

Resources
2
 

What is log.h? It just contains a redirection and initialization. You can remove these after subsequent changes. You can just include this log.c for easy printing.

This post is from Domestic Chip Exchange

Comments

I usually use the LED status to indicate, and then check it through online debugging, and rarely use printing  Details Published on 2022-9-21 16:04
 
 
 

6075

Posts

6

Resources
3
 
lugl4313820 posted on 2022-9-21 15:43 What is log.h? It just contains a redirection and initialization. You should be able to remove these after the subsequent changes; you can just include this log.c...

I usually use the LED status to indicate, and then check it through online debugging, and rarely use printing

This post is from Domestic Chip Exchange
Personal signature

在爱好的道路上不断前进,在生活的迷雾中播撒光引

 
 
 

7462

Posts

2

Resources
4
 

I still like IAR, ahahaha.

This post is from Domestic Chip Exchange

Comments

I really like what I often use. I get used to it.  Details Published on 2022-9-22 09:00
Personal signature

默认摸鱼,再摸鱼。2022、9、28

 
 
 

6075

Posts

6

Resources
5
 
freebsder posted on 2022-9-21 20:18 I still like IAR, hahaha.

I really like what I often use. I get used to it.

This post is from Domestic Chip Exchange
 
 
 

539

Posts

1

Resources
6
 

I have never used IAR, I usually use Keil. I wonder how difficult it is to get started with it?

This post is from Domestic Chip Exchange

Comments

It's all a matter of habit. Once you get used to it, it will be easy.  Details Published on 2022-9-25 07:35
 
 
 

6075

Posts

6

Resources
7
 
Honghuzaitian posted on 2022-9-25 00:48 I have never used IAR, I usually use Keil, I wonder how difficult it is to get started in Chengdu?

It's all a matter of habit. Once you get used to it, it will be easy.

This post is from Domestic Chip Exchange
Personal signature

在爱好的道路上不断前进,在生活的迷雾中播撒光引

 
 
 

1

Posts

0

Resources
8
 
Hello, where can I download the Nations Device PACK Add To IAR Tool.exe software?
This post is from Domestic Chip Exchange

Comments

There is corresponding Pack software on the official website, which is very convenient to add  Details Published on 2023-8-3 09:04
 
 
 

6075

Posts

6

Resources
9
 
MYxinyi posted on 2023-8-2 20:44 Hello, where can I download the Nations Device PACK Add To IAR Tool.exe software?

There is corresponding Pack software on the official website, which is very convenient to add

This post is from Domestic Chip Exchange
Personal signature

在爱好的道路上不断前进,在生活的迷雾中播撒光引

 
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list