新手入门
- 积分
- 19
- 金钱
- 19
- 注册时间
- 2019-6-18
- 在线时间
- 3 小时
|
1.准备一个ubuntu环境
apt-get update //更新软件包
apt-get install gcc-arm-none-eabi //安装编译器
apt-get install ubuntu-make //安装make工具
2.下载nuttx代码
等级不够,不让发链接,链接见评论区
3.开始配置
1>进入nuttx目录下执行./tools/configure.sh stm32_tiny/nsh
2>在nuttx目录下执行 make menuconfig 进入图形配置界面
3>选择 Build Setup,进入后选择Build Host platform,将其改成LINUX
4>选择System Type,进入后选择
ARM chip selection (STMicro STM32 F1/F2/F3/F4)
STM32 Chip Selection (STM32F103ZE)
Toolchain Selection(Generic GNU EABI toochain under linux(or other POSIX environment)
5>选择Board Selection,进入后选择目标板Select target board (STM3210E-EVAL development board)
6>选择Application Configuration-->example-->hello 应用程序(打印hello world)(前面括号带 * 表示选中)
7>保存退出后,执行make命令,会生成nuttx.bin文件
4.开始烧写
使用STM32-ST-LINK ulility 软件进行烧写烧写步骤也见评论区
5.结果展示
使用usb转串口线连接至串口1,波特率设为115200 ,1个停止位 ,8个数据位,无奇偶校验
敲入hello命令,出现了hello world 。至此nuttx在STM32精英板上移植成功。
|
|