qzc0927 发表于 2024-12-25 16:04

【MCXA156开发板测评】学习笔记01(开发环境搭建)

<center><font size=8><b>NCXA156学习笔记</b></font></center>

<span name="TOP"><font size=6>目录</font></span>



# 开发环境搭建

## 帐号注册

​        在官网上下载工具,需要注册NXP的帐号,注册帐号的时候要注意,国内的邮箱服务器好像是收不到验证码的,我这边是使用谷歌帐号进行注册,收到验证码,注册完成后下载软件。

!(https://boreyun.oss-cn-shanghai.aliyuncs.com/image-20241225144113144.png)

## 软件安装

​        软件下载地址为:

https://www.nxp.com/design/design-center/software/development-software/mcuxpresso-software-and-tools-/mcuxpresso-integrated-development-environment-ide:MCUXpresso-IDE?tid=vanMCUXPRESSO/IDE       

!(https://boreyun.oss-cn-shanghai.aliyuncs.com/image-20241225144511839.png)

​        点击Download进行下载:

!(https://boreyun.oss-cn-shanghai.aliyuncs.com/image-20241225144544410.png)

​        下载最新版本的NXP开发软件,版本为24.9.

!(https://boreyun.oss-cn-shanghai.aliyuncs.com/image-20241225144227499.png)

打开后进行安装。选择D盘目录,配置好工作空间目录,进行安装。安装完成,打开IDE,界面如下:

!(https://boreyun.oss-cn-shanghai.aliyuncs.com/image-20241225144328440.png)

## 环境搭建

- 1、创建工程

!(https://boreyun.oss-cn-shanghai.aliyuncs.com/image-20241225144705082.png)

- 2、搜索开发板

!(https://boreyun.oss-cn-shanghai.aliyuncs.com/image-20241225144803949.png)

​        根据型号选择指定开发开发板:

!(https://boreyun.oss-cn-shanghai.aliyuncs.com/image-20241225144926726.png)

!(https://boreyun.oss-cn-shanghai.aliyuncs.com/image-20241225145007566.png)

- 3、导入例程

!(https://boreyun.oss-cn-shanghai.aliyuncs.com/image-20241225145827413.png)

!(https://boreyun.oss-cn-shanghai.aliyuncs.com/image-20241225150025009.png)

- 4、打开例程

!(https://boreyun.oss-cn-shanghai.aliyuncs.com/image-20241225151154460.png)

​        进行编译,发现编译报错,报错信息如下:

!(https://boreyun.oss-cn-shanghai.aliyuncs.com/image-20241225152709938.png)

!(https://boreyun.oss-cn-shanghai.aliyuncs.com/image-20241225151230362.png)

## 错误处理

```
The name was interpreted by this TemplateLoader: com.crt.advproject.linkertemplate.FMLinkerFileTemplateLoader@2088726e.
make: *** Error 1
make: *** Error 2
"make -r -j12 all" terminated with exit code 2. Build might be incomplete.
```

不知道那里配置错误,导致无法编译。感觉是我的工具链配置不对。

# 参考文献

> https://blog.csdn.net/redparrot2008/article/details/143330575

> https://www.nxp.com.cn/document/guide/getting-started-with-frdm-mcxn947:GS-FRDM-MCXNXX

秦天qintian0303 发表于 2024-12-25 22:25

<p>官方的例程还是挺全面的,新板子就得用官方的IDE</p>

qzc0927 发表于 2024-12-26 17:56

<p>重新安装IDE就解决了,说我有一个link&nbsp;server&nbsp;没有安装导致工具链有问题</p>

rkf666666 发表于 2025-1-6 13:21

<p>学习学习!</p>

qzc0927 发表于 2025-1-14 19:23

rkf666666 发表于 2025-1-6 13:21
学习学习!

<p>相互学习</p>
页: [1]
查看完整版本: 【MCXA156开发板测评】学习笔记01(开发环境搭建)