请选择 进入手机版 | 继续访问电脑版
论坛
登录 | 立即注册
查看: 2621|回复: 1

要死人了,快来人啊

[复制链接]

1

主题

2

帖子

7

积分

新手上路

Rank: 1

积分
7
发表于 2020-3-14 21:47:49 | 显示全部楼层 |阅读模式
21:36:40 **** Build of configuration Default for project NONOS_SDK_2.2.1_Template ****
make COMPILE=gcc BOOT=none APP=0 SPI_SPEED=40 SPI_MODE=DIO SPI_SIZE_MAP=2 all
make[1]: Entering directory '/f/VM_virtualbox/share/NONOS_SDK_2.2.1_Template/app/user'
DEPEND: xtensa-lx106-elf-gcc -M -Os -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -fno-builtin-printf -DICACHE_FLASH -I include -I ./ -I ../../include/ets -I ../include -I ../../include -I ../../include/eagle -I ../../driver_lib/include user_main.c
xtensa-lx106-elf-gcc -Os -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -fno-builtin-printf  -DICACHE_FLASH   -I include -I ./ -I ../../include/ets -I ../include -I ../../include -I ../../include/eagle -I ../../driver_lib/include  -o .output/eagle/debug/obj/user_main.o -c user_main.c
xtensa-lx106-elf-ar ru .output/eagle/debug/lib/libuser.a .output/eagle/debug/obj/user_main.o
E:\AiThinkerIDE_V1.0\msys32\opt\arm-nono-eabi-gcc\bin\xtensa-lx106-elf-ar.exe: creating .output/eagle/debug/lib/libuser.a
make[1]: Leaving directory '/f/VM_virtualbox/share/NONOS_SDK_2.2.1_Template/app/user'
make[1]: Entering directory '/f/VM_virtualbox/share/NONOS_SDK_2.2.1_Template/app/driver'
DEPEND: xtensa-lx106-elf-gcc -M -Os -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -fno-builtin-printf -DICACHE_FLASH -I include -I ./ -I ../include -I ../../include -I ../../include/eagle -I ../../driver_lib/include uart.c
DEPEND: xtensa-lx106-elf-gcc -M -Os -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -fno-builtin-printf -DICACHE_FLASH -I include -I ./ -I ../include -I ../../include -I ../../include/eagle -I ../../driver_lib/include i2c_master.c
DEPEND: xtensa-lx106-elf-gcc -M -Os -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -fno-builtin-printf -DICACHE_FLASH -I include -I ./ -I ../include -I ../../include -I ../../include/eagle -I ../../driver_lib/include oled.c
DEPEND: xtensa-lx106-elf-gcc -M -Os -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -fno-builtin-printf -DICACHE_FLASH -I include -I ./ -I ../include -I ../../include -I ../../include/eagle -I ../../driver_lib/include dht11.c
xtensa-lx106-elf-gcc -Os -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -fno-builtin-printf  -DICACHE_FLASH   -I include -I ./ -I ../include -I ../../include -I ../../include/eagle -I ../../driver_lib/include  -o .output/eagle/debug/obj/dht11.o -c dht11.c
xtensa-lx106-elf-gcc -Os -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -fno-builtin-printf  -DICACHE_FLASH   -I include -I ./ -I ../include -I ../../include -I ../../include/eagle -I ../../driver_lib/include  -o .output/eagle/debug/obj/oled.o -c oled.c
xtensa-lx106-elf-gcc -Os -g -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -ffunction-sections -fdata-sections -fno-builtin-printf  -DICACHE_FLASH   -I include -I ./ -I ../include -I ../../include -I ../../include/eagle -I ../../driver_lib/include  -o .output/eagle/debug/obj/i2c_master.o -c i2c_master.c
In file included from i2c_master.c:25:0:
i2c_master.c: In function 'i2c_master_gpio_init':
../../include/ets_sys.h:99:5: error: implicit declaration of function 'ets_isr_mask' [-Werror=implicit-function-declaration]
     ets_isr_mask((1<<inum))
     ^
../../include/ets_sys.h:117:5: note: in expansion of macro 'ETS_INTR_DISABLE'
     ETS_INTR_DISABLE(ETS_GPIO_INUM)
     ^
i2c_master.c:119:5: note: in expansion of macro 'ETS_GPIO_INTR_DISABLE'
     ETS_GPIO_INTR_DISABLE() ;
     ^
../../include/ets_sys.h:96:5: error: implicit declaration of function 'ets_isr_unmask' [-Werror=implicit-function-declaration]
     ets_isr_unmask((1<<inum))
     ^
../../include/ets_sys.h:114:5: note: in expansion of macro 'ETS_INTR_ENABLE'
     ETS_INTR_ENABLE(ETS_GPIO_INUM)
     ^
i2c_master.c:132:5: note: in expansion of macro 'ETS_GPIO_INTR_ENABLE'
     ETS_GPIO_INTR_ENABLE() ;
     ^
cc1.exe: all warnings being treated as errors
make[1]: *** [../../Makefile:345: .output/eagle/debug/obj/i2c_master.o] Error 1
make[1]: Leaving directory '/f/VM_virtualbox/share/NONOS_SDK_2.2.1_Template/app/driver'
make: *** [../Makefile:330: .subdirs] Error 2

21:36:51 Build Finished (took 11s.434ms)

使用的安信可一体化环境1.0

根据安信可自带的操作说明,可是还是会有错误,搞不懂,这代码官方代码有那么垃圾吗,随便哪一个都不能编译通过,搞了一天气死了,有没有大佬知道怎么做
../../include/ets_sys.h:99:5: error: implicit declaration of function 'ets_isr_mask' [-Werror=implicit-function-declaration]
../../include/ets_sys.h:96:5: error: implicit declaration of function 'ets_isr_unmask' [-Werror=implicit-function-declaration]
     ets_isr_unmask((1<<inum))

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
回复

使用道具 举报

1

主题

2

帖子

7

积分

新手上路

Rank: 1

积分
7
 楼主| 发表于 2020-3-14 21:48:53 | 显示全部楼层
这种情况 咋搞啊
回复

使用道具 举报

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

本版积分规则

手机版|小黑屋|安信可论坛    

GMT+8, 2020-6-3 02:06 , Processed in 0.015985 second(s), 11 queries , Redis On.

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

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