野火电子论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 9037|回复: 3

吃螃蟹,Nuttx+RT1052,欢迎大家一起来撸板子,围观也行。

[复制链接]
发表于 2019-11-26 00:42:23 | 显示全部楼层 |阅读模式
编译环境:ubuntu 18.04 x64(vbox6.0.10虚拟机)
1. 安装编译工具
#这个虚拟机还没装过开发工具,所以连autoconf也没有
sudo apt-get install libncurses5-dev flex bison gperf gcc-arm-none-eabi autoconf
$ git clone https://github.com/jameswalmsley/kconfig-frontends.git
$ cd kconfig-frontends
$ ./bootstrap
$ ./configure
$ make
$ sudo make install
$ sudo ldconfig

2. 默认配置
cd nuttx-8.2
./tools/configure.sh imxrt1050-evk:nsh
make
………………
CC:  imxrt_boot.c
CC:  imxrt_flexspi_nor_boot.c
CC:  imxrt_flexspi_nor_flash.c
CC:  imxrt_appinit.c
CC:  imxrt_bringup.c
CC:  imxrt_autoleds.c
AR:   imxrt_boot.o imxrt_flexspi_nor_boot.o imxrt_flexspi_nor_flash.o imxrt_appinit.o imxrt_bringup.o imxrt_autoleds.o
make[2]: Leaving directory '/z/nuttx-8.2/boards/arm/imxrt/imxrt1050-evk/src'
LD: nuttx
make[1]: Leaving directory '/z/nuttx-8.2/arch/arm/src'
CP: nuttx.hex
编译通过。明天再来。开始开启了net,usb,ble...编译没通过。路漫漫……
回复

使用道具 举报

发表于 2019-11-26 15:36:42 | 显示全部楼层
赞,不过 这个特牛叉系统用的人少啊。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2019-11-26 18:49:07 | 显示全部楼层
fire 发表于 2019-11-26 15:36
赞,不过 这个特牛叉系统用的人少啊。

确实。对于高性能的MCU,肯定希望功能多一些,最快的方式就是移植一些linux上的软件库,这就需要posix接口。而rtt是不支持posix的。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2019-11-27 01:08:09 | 显示全部楼层
看起来还有好几个驱动没配好。

CC:  imxrt_gpio.c
AR:   imxrt_boot.o imxrt_flexspi_nor_boot.o imxrt_flexspi_nor_flash.o imxrt_appinit.o imxrt_bringup.o imxrt_autoleds.o imxrt_ethernet.o imxrt_lcd.o imxrt_gpio.o
make[2]: Leaving directory '/z/nuttx-8.2/boards/arm/imxrt/imxrt1050-evk/src'
LD: nuttx
/z/nuttx-8.2/staging/libsched.a(clock_settime.o): In function `clock_settime':
clock_settime.c.text+0x48): undefined reference to `up_rtc_settime'
clock_settime.c.text+0x70): undefined reference to `g_rtc_enabled'
/z/nuttx-8.2/staging/libsched.a(clock_initialize.o): In function `clock_basetime':
clock_initialize.c.text+0x4): undefined reference to `up_rtc_time'
/z/nuttx-8.2/staging/libsched.a(clock_initialize.o): In function `clock_initialize':
clock_initialize.c.text+0x66): undefined reference to `up_rtc_initialize'
/z/nuttx-8.2/staging/libsched.a(clock_initialize.o): In function `clock_resynchronize':
clock_initialize.c.text+0x9a): undefined reference to `up_rtc_time'
/z/nuttx-8.2/staging/libarch.a(imxrt_idle.o): In function `up_idle':
imxrt_idle.c.text+0x4a): undefined reference to `imxrt_pmstop'
imxrt_idle.c.text+0x50): undefined reference to `imxrt_pmstandby'
/z/nuttx-8.2/staging/libarch.a(up_initialize.o): In function `up_initialize':
up_initialize.c.text+0x10): undefined reference to `up_pminitialize'
up_initialize.c.text+0x2e): undefined reference to `up_usbinitialize'
/z/nuttx-8.2/staging/libarch.a(imxrt_timerisr.o).data+0x8): undefined reference to `up_pm_prepare'
/z/nuttx-8.2/staging/libnet.a(netdev_statistics.o): In function `netprocfs_inet4addresses':
netdev_statistics.c:(.text+0x8): undefined reference to `inet_ntoa'
netdev_statistics.c:(.text+0x24): undefined reference to `inet_ntoa'
netdev_statistics.c:(.text+0x40): undefined reference to `inet_ntoa'
/z/nuttx-8.2/staging/libgraphics.a(nxmu_start.o): In function `nx_server':
nxmu_start.c:(.text+0x2): undefined reference to `board_lcd_initialize'
nxmu_start.c:(.text+0xc): undefined reference to `board_lcd_getdev'
/z/nuttx-8.2/staging/libdrivers.a(lcd_framebuffer.o): In function `up_fbinitialize':
lcd_framebuffer.c:(.text+0xe0): undefined reference to `board_graphics_setup'
Makefile:184: recipe for target 'nuttx' failed
make[1]: *** [nuttx] Error 1
make[1]: Leaving directory '/z/nuttx-8.2/arch/arm/src'
tools/Makefile.unix:464: recipe for target 'pass2' failed
make: *** [pass2] Error 2
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

联系站长|手机版|野火电子官网|野火淘宝店铺|野火电子论坛 ( 粤ICP备14069197号 ) 大学生ARM嵌入式2群

GMT+8, 2024-11-24 17:13 , Processed in 0.028436 second(s), 23 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表