AT组件,env后,keil编译出错

发布于 2019-07-18 16:51:21    浏览:2042
AT组件版本1.6.0,rt_thread版本4.0.1,env工具1.1.2


packages\at_device-v1.6.0\at_socket_esp8266.c(74): error: #29: expected an expression
[AT_SOCKET_EVT_RECV] = NULL,
packages\at_device-v1.6.0\at_socket_esp8266.c(75): error: #29: expected an expression
[AT_SOCKET_EVT_CLOSED] = NULL,
packages\at_device-v1.6.0\at_socket_esp8266.c(1118): error: #268: declaration may not appear after executable statement in block
extern int sal_at_netdev_set_pf_info(struct netdev *netdev);
packages\at_device-v1.6.0\at_socket_esp8266.c: 0 warnings, 3 errors


compiling stubs.c...
..\..\components\libc\compilers\armlibc\stubs.c(268): warning: #177-D: variable "stat" was declared but never referenced
struct stat stat;
..\..\components\libc\compilers\armlibc\stubs.c: 1 warning, 0 errors

compiling at_socket.c...
..\..\components\net\at\at_socket\at_socket.c(1156): error: #268: declaration may not appear after executable statement in block
struct sockaddr_in *sa4 = (struct sockaddr_in *) sa;
..\..\components\net\at\at_socket\at_socket.c: 0 warnings, 1 error
compiling at_client.c...


为移植后,直接用keil编译结果。

查看更多

12 个回答
zhangjun
zhangjun 2019-07-18
This guy hasn't written anything yet
试试最新的at-device
armink
armink 2019-07-19
This guy hasn't written anything yet
像是没有开启 c99
猪儿会飞
猪儿会飞 2019-07-19
This guy hasn't written anything yet
armink 发表于 2019-7-19 14:22
像是没有开启 c99


哥,能说细些吗?我试了很多种方法,都没解决:L
猪儿会飞
猪儿会飞 2019-07-19
This guy hasn't written anything yet
猪儿会飞 发表于 2019-7-19 15:15
哥,能说细些吗?我试了很多种方法,都没解决


可以了,非常感谢:)
学长啊啊啊
学长啊啊啊 2019-07-24
This guy hasn't written anything yet
猪儿会飞 发表于 2019-7-19 17:01
可以了,非常感谢


是怎么解决的? 我在ENV上 添加了AT DRIVE后, scons 创建不了工程了。
whj467467222
whj467467222 认证专家 2019-07-24
This guy hasn't written anything yet
    本帖最后由 whj467467222 于 2019-7-24 10:02 编辑


为什么会生成不了呢
猪儿会飞
猪儿会飞 2019-07-24
This guy hasn't written anything yet
学长啊啊啊 发表于 2019-7-24 09:27
是怎么解决的? 我在ENV上 添加了AT DRIVE后, scons 创建不了工程了。


生成的时候要注意工程是MDK4还是MDK5。我就遇到过,找了好久才发现。工程是MDK4,用MDK5是更新不了的
学长啊啊啊
学长啊啊啊 2019-07-24
This guy hasn't written anything yet
猪儿会飞 发表于 2019-7-24 11:30
生成的时候要注意工程是MDK4还是MDK5。我就遇到过,找了好久才发现。工程是MDK4,用MDK5是更新不了的 ...


软件包更新失败:
Administrator@USER-20140222TZ C:\Users\Administrator\Desktop\rt-thread\bsp\stm32\stm32l10x-atk
$ pkgs -update
usage: env.py [-h] [-v] {system,menuconfig,package} ...
env.py: error: unrecognized arguments: -update
whj467467222
whj467467222 认证专家 2019-07-24
This guy hasn't written anything yet
学长啊啊啊 发表于 2019-7-24 12:23
软件包更新失败:
Administrator@USER-20140222TZ C:%users\Administrator\Desktop\rt-thread\bsp\stm32\ ...


pkgs --update 两个横线你少了一个
学长啊啊啊
学长啊啊啊 2019-07-24
This guy hasn't written anything yet
whj467467222 发表于 2019-7-24 13:32
pkgs --update 两个横线你少了一个


惭愧啊。原来是我指令输错了。
现在又提示网络问题。:'( 悲伤。
Administrator@USER-20140222TZ C:\Users\Administrator\Desktop\rt-thread\bsp\stm32\stm32l10x-atk
$ pkgs --update
'git' is not recognized as an internal or external command,
operable program or batch file.

Failed to download software package with git. Please check the network connection.
{'path': '/packages/iot/at_device', 'ver': 'latest', 'name': 'AT_DEVICE'} download failed.

Package download failed list:
{'path': '/packages/iot/at_device', 'ver': 'latest', 'name': 'AT_DEVICE'}
You need to reuse the command to download again.
Operation failed.

撰写答案

请登录后再发布答案,点击登录
关注者
0
被浏览
2k

发布
问题

分享
好友

手机
浏览

扫码手机浏览