Toggle navigation
首页
问答
文章
积分商城
专家
专区
更多专区...
文档中心
返回主站
搜索
提问
会员
中心
登录
注册
Nuvoton_新唐mcu
[nuvoton][numaker-m467hj] 切换系统版本到latest后编译错误
发布于 2023-06-01 20:11:48 浏览:321
订阅该版
因为需要一些近期的rt-thread更新,切换latest版本后编译出错如下: 还请更新! ![latest.png](https://oss-club.rt-thread.org/uploads/20230601/f8dcb891dd0972ddcf715b0c42ebcf9b.png) ```c arm-none-eabi-gcc "../libraries/m460/rtt_port/emac/synopGMAC_plat.c" ../packages/ramdisk-latest/src/drv_ramdisk.c: In function 'ramdisk_init': ../packages/ramdisk-latest/src/drv_ramdisk.c:140:32: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] ramdisk_dev->parent.read = rt_ramdisk_read; ^ ../packages/ramdisk-latest/src/drv_ramdisk.c:141:32: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] ramdisk_dev->parent.write = rt_ramdisk_write; ^ arm-none-eabi-gcc "../libraries/m460/rtt_port/drv_bpwm.c" arm-none-eabi-gcc "../libraries/m460/rtt_port/drv_bpwm_capture.c" ../libraries/nu_packages/NCT7717U/sensor_nct7717u.c: In function 'nct7717u_fetch_data': ../libraries/nu_packages/NCT7717U/sensor_nct7717u.c:122:30: error: 'RT_SENSOR_CLASS_TEMP' undeclared (first use in this function) if (sensor->info.type == RT_SENSOR_CLASS_TEMP) ^~~~~~~~~~~~~~~~~~~~ ../libraries/nu_packages/NCT7717U/sensor_nct7717u.c:122:30: note: each undeclared identifier is reported only once for each function it appears in ../libraries/nu_packages/NCT7717U/sensor_nct7717u.c: In function 'rt_hw_nct7717u_temp_init': ../libraries/nu_packages/NCT7717U/sensor_nct7717u.c:176:31: error: 'RT_SENSOR_CLASS_TEMP' undeclared (first use in this function) sensor->info.type = RT_SENSOR_CLASS_TEMP; ^~~~~~~~~~~~~~~~~~~~ ../libraries/nu_packages/NCT7717U/sensor_nct7717u.c:178:17: error: 'struct rt_sensor_info' has no member named 'model'; did you mean 'mode'? sensor->info.model = "nct7717u_temp"; ^ ../libraries/nu_packages/NCT7717U/sensor_nct7717u.c:179:31: error: 'RT_SENSOR_UNIT_DCELSIUS' undeclared (first use in this function) sensor->info.unit = RT_SENSOR_UNIT_DCELSIUS; ^~~~~~~~~~~~~~~~~~~~~~~ ../libraries/nu_packages/NCT7717U/sensor_nct7717u.c:181:17: error: 'struct rt_sensor_info' has no member named 'range_max' sensor->info.range_max = 127; ^ ../libraries/nu_packages/NCT7717U/sensor_nct7717u.c:182:17: error: 'struct rt_sensor_info' has no member named 'range_min' sensor->info.range_min = -128; ^ ../libraries/nu_packages/NCT7717U/sensor_nct7717u.c:183:17: error: 'struct rt_sensor_info' has no member named 'period_min' sensor->info.period_min = 100; //100ms ^ make: *** [libraries/nu_packages/NCT7717U/subdir.mk:18: libraries/nu_packages/NCT7717U/sensor_nct7717u.o] Error 1 make: *** Waiting for unfinished jobs.... ../libraries/m460/rtt_port/emac/drv_emac.c: In function 'rt_hw_gmac_init': ../libraries/m460/rtt_port/emac/drv_emac.c:723:41: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] psNuGMAC->eth.parent.read = nu_gmac_read; ^ ../libraries/m460/rtt_port/emac/drv_emac.c:724:41: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] psNuGMAC->eth.parent.write = nu_gmac_write; ^ "make -j20 all" terminated with exit code 2. Build might be incomplete. 20:06:00 Build Failed. 9 errors, 4 warnings. (took 8s.510ms) ```
查看更多
1
个回答
默认排序
按发布时间排序
rcp
认证专家
2023-06-26
这家伙很懒,什么也没写!
编译不过很正常,latest是个开发中的版本,不能确保系统源码和其它代码能良好匹配,一般开发者,建议不要用latest版本,用稳定的发行版。除非对系统相当熟悉,有信心解决编译发生的各种错误
撰写答案
登录
注册新账号
关注者
0
被浏览
321
关于作者
mumumu
这家伙很懒,什么也没写!
提问
34
回答
29
被采纳
1
关注TA
发私信
相关问题
1
刚看到新唐的rt-thread战略合作
2
4.02版本RT运行了bsp包里移植好的工程,finsh显示有问题。
3
新唐NuMaker-PFM-M487按照上手指南编译不成功
4
RT-Thread Studio如何创建新唐等其他厂家的基于芯片的工程?
5
新唐N9H30开发板工程,大佬们有使用过sd卡功能的吗?
6
[nuvoton][numaker-m467hj] 无法进入debug模式
7
[nuvoton][numaker-m467hj]默认开发板工程,32G的SD卡容量识别错误无法加载
8
[nuvoton][numaker-m467hj] 进入debug模式后不能单步运行到断点
9
新唐M487 IAP跳跳转RTT应用失败,进入hard fault
10
RT-Thread Stuido自带的新唐NUMAKER-M467HJ工程Settings打不开
推荐文章
1
RT-Thread应用项目汇总
2
玩转RT-Thread系列教程
3
国产MCU移植系列教程汇总,欢迎查看!
4
机器人操作系统 (ROS2) 和 RT-Thread 通信
5
五分钟玩转RT-Thread新社区
6
【技术三千问】之《玩转ART-Pi》,看这篇就够了!干货汇总
7
关于STM32H7开发板上使用SDIO接口驱动SD卡挂载文件系统的问题总结
8
STM32的“GPU”——DMA2D实例详解
9
RT-Thread隐藏的宝藏之completion
10
【ART-PI】RT-Thread 开启RTC 与 Alarm组件
最新文章
1
使用百度AI助手辅助编写一个rt-thread下的ONVIF设备发现功能的功能代码
2
RT-Thread 发布 EtherKit开源以太网硬件!
3
rt-thread使用cherryusb实现虚拟串口
4
《C++20 图形界面程序:速度与渲染效率的双重优化秘籍》
5
《原子操作:程序世界里的“最小魔法单位”解析》
热门标签
RT-Thread Studio
串口
Env
LWIP
SPI
AT
Bootloader
Hardfault
CAN总线
FinSH
ART-Pi
USB
DMA
文件系统
RT-Thread
SCons
RT-Thread Nano
线程
MQTT
STM32
RTC
FAL
rt-smart
ESP8266
I2C_IIC
WIZnet_W5500
ota在线升级
UART
PWM
cubemx
freemodbus
flash
packages_软件包
BSP
潘多拉开发板_Pandora
定时器
ADC
GD32
flashDB
socket
中断
Debug
编译报错
msh
SFUD
keil_MDK
rt_mq_消息队列_msg_queue
at_device
ulog
C++_cpp
本月问答贡献
踩姑娘的小蘑菇
7
个答案
3
次被采纳
a1012112796
13
个答案
2
次被采纳
张世争
9
个答案
2
次被采纳
rv666
5
个答案
2
次被采纳
用户名由3_15位
11
个答案
1
次被采纳
本月文章贡献
程序员阿伟
7
篇文章
2
次点赞
hhart
3
篇文章
4
次点赞
大龄码农
1
篇文章
2
次点赞
ThinkCode
1
篇文章
1
次点赞
Betrayer
1
篇文章
1
次点赞
回到
顶部
发布
问题
分享
好友
手机
浏览
扫码手机浏览
投诉
建议
回到
底部