Closed xyjand closed 2 years ago
感谢您提出的宝贵问题,我们有7x24小时服务的“HaaS百事通”客服系统,
您可以先尝试能否解决您的问题(https://haas.iot.aliyun.com/?ask=1&f=a2cre.b82925042)
如果“HaaS百事通”没有解决您的问题,请回复“人工支持”,我们会在工作日(10:00-12:00/14:00-18:00)10分钟内回复您。
亲,amp_demo@haas100的编译问题我们10分钟前已经修复。请基于haas stduio重新下载个源码工程编译。谢谢。
haas-studio更新到了最新版 V1.0.71 ; 重新下载了 轻应用示例,编译时还是有错误。
CC out\amp_adapter\platform\aos\aos_fs.o CC out\amp_adapter\platform\aos\haas100\amp_ota_port.o CC out\amp_adapter\platform\aos\aos_system.o CC out\amp_adapter\platform\aos\network\aos_cellular.o CC out\amp_adapter\platform\aos\network\aos_httpc.o CC out\amp_adapter\platform\aos\network\aos_netdev.o CC out\amp_adapter\platform\aos\network\aos_tcp.o CC out\amp_adapter\platform\aos\network\aos_udp.o CC out\amp_adapter\platform\aos\network\aos_wifi.o CC out\amp_adapter\platform\aos\peripheral\aos_hal_adc.o E:\PROJECT\haas\h4\components\amp_adapter\platform\aos\aos_system.c: In function 'aos_network_status_registercb': E:\PROJECT\haas\h4\components\amp_adapter\platform\aos\aos_system.c:117:12: warning: implicit declaration of function 'aos_wifi_set_msg_cb'; did you mean 'netmgr_wifi_set_msg_cb'? [-Wimplicit-function-declaration] 117 | return aos_wifi_set_msg_cb(cb); | ^ |
netmgr_wifi_set_msg_cb E:\PROJECT\haas\h4\components\amp_adapter\platform\aos\aos_system.c: In function 'aos_get_network_status': E:\PROJECT\haas\h4\components\amp_adapter\platform\aos\aos_system.c:124:11: warning: implicit declaration of function 'aos_wifi_get_state'; did you mean 'netmgr_wifi_get_state'? [-Wimplicit-function-declaration] 124 | ret = aos_wifi_get_state(); | ^ |
netmgr_wifi_get_state CC out\amp_adapter\platform\aos\peripheral\aos_hal_can.o E:\PROJECT\haas\h4\components\amp_adapter\platform\aos\aos_system.c: In function 'aos_get_device_name': E:\PROJECT\haas\h4\components\amp_adapter\platform\aos\aos_system.c:173:5: warning: implicit declaration of function 'tg_get_chipid' [-Wimplicit-function-declaration] 173 | tg_get_chipid(chip_id, 16); | ^ |
close(fd); | ^~~~~ | pclose E:\PROJECT\haas\h4\components\amp_adapter\platform\aos\network\aos_tcp.c: In function 'aos_tcp_read': E:\PROJECT\haas\h4\components\amp_adapter\platform\aos\network\aos_tcp.c:204:5: CC out\amp_adapter\platform\aos\peripheral\aos_hal_lcd.o warning: implicit declaration of function 'gettimeofday' [-Wimplicit-function-declaration] 204 | gettimeofday(×tart, NULL); | ^ |
close(p_socket); | ^~~~~ | pclose E:\PROJECT\haas\h4\components\amp_adapter\platform\aos\network\aos_udp.c: In function 'aos_udp_read_timeout': E:\PROJECT\haas\h4\components\amp_adapter\platform\aos\network\aos_udp.c:358:13: warning: implicit declaration of function 'read'; did you mean 'fread'? [-Wimplicit-function-declaration] 358 | return read((long)p_socket, p_data, datalen); | ^~~~ | fread CC out\amp_adapter\platform\aos\peripheral\aos_hal_rtc.o CC out\amp_adapter\platform\aos\peripheral\aos_hal_spi.o CC out\amp_adapter\platform\aos\peripheral\aos_hal_timer.o CC out\amp_adapter\platform\aos\peripheral\aos_hal_uart.o E:\PROJECT\haas\h4\components\amp_adapter\platform\aos\peripheral\aos_hal_gpio.c: In function 'aos_hal_gpio_init': E:\PROJECT\haas\h4\components\amp_adapter\platform\aos\peripheral\aos_hal_gpio.c:129:23: warning: passing argument 1 of 'aos_gpioc_put' from incompatible pointer type [-Wincompatible-pointer-types] 129 | aos_gpioc_put(&gpioc); | ^ |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
aos_gpioc_ref_t {aka struct aos_dev_ref } |
In file included from E:\PROJECT\haas\h4\components\amp_adapter\include\peripheral/aos_hal_gpio_internal.h:21, from E:\PROJECT\haas\h4\components\amp_adapter\include\peripheral/aos_hal_gpio.h:4, from E:\PROJECT\haas\h4\components\amp_adapter\platform\aos\peripheral\aos_hal_gpio.c:12: E:\PROJECT\haas\h4\components\drivers\peripheral\gpio\include/aos/gpioc.h:36:37: note: expected 'aos_gpioc_ref_t ' {aka 'struct aos_dev_ref '} but argument is of type 'aos_gpioc_ref_t ' {aka 'struct aos_dev_ref '} 36 | void aos_gpioc_put(aos_gpioc_ref_t *ref); | return udisplay_uninit(); | ^ |
udisplay_init E:\PROJECT\haas\h4\components\amp_adapter\platform\aos\peripheral\aos_hal_lcd.c: In function 'aos_hal_lcd_fill': E:\PROJECT\haas\h4\components\amp_adapter\platform\aos\peripheral\aos_hal_lcd.c:43:12: warning: implicit declaration of function 'udisplay_fill_rect'; did you mean 'udisplay_show_rect'? [-Wimplicit-function-declaration] 43 | return udisplay_fill_rect(x, y, w, h, color); | ^ |
udisplay_show_rect CC out\amp_adapter\platform\aos\peripheral\aos_hal_wdg.o CC out\flash\src\flash_dev.o CC out\flash\src\mtd.o CC out\flash\src\mtdnand.o E:\PROJECT\haas\h4\components\amp_adapter\platform\aos\peripheral\aos_hal_uart.c: In function 'aos_hal_uart_rx_sem_take': E:\PROJECT\haas\h4\components\amp_adapter\platform\aos\peripheral\aos_hal_uart.c:56:12: warning: implicit declaration of function 'hal_uart_rx_sem_take'; did you mean 'aos_hal_uart_rx_sem_take'? [-Wimplicit-function-declaration] 56 | return hal_uart_rx_sem_take(uartid, timeout); | ^ |
aos_hal_uart_rx_sem_take E:\PROJECT\haas\h4\components\amp_adapter\platform\aos\peripheral\aos_hal_uart.c: In function 'aos_hal_uart_rx_sem_give': E:\PROJECT\haas\h4\components\amp_adapter\platform\aos\peripheral\aos_hal_uart.c:65:12: warning: implicit declaration of function 'hal_uart_rx_sem_give'; did you mean 'aos_hal_uart_rx_sem_give'? [-Wimplicit-function-declaration] 65 | return hal_uart_rx_sem_give(port); | ^ |
aos_hal_uart_rx_sem_give E:\PROJECT\haas\h4\components\amp_adapter\platform\aos\peripheral\aos_hal_uart.c: In function 'aos_hal_uart_any': E:\PROJECT\haas\h4\components\amp_adapter\platform\aos\peripheral\aos_hal_uart.c:156:12: warning: implicit declaration of function 'hal_uart_any'; did you mean 'hal_uart_send'? [-Wimplicit-function-declaration] 156 | return hal_uart_any(uart); | ^ |
hal_uart_send CC out\flash\src\mtdnor.o CC out\epoll\src\device.o CC out\epoll\src\epoll.o E:\PROJECT\haas\h4\components\amp_adapter\platform\aos\peripheral\aos_hal_wdg.c: In function 'aos_hal_wdg_init': E:\PROJECT\haas\h4\components\amp_adapter\platform\aos\peripheral\aos_hal_wdg.c:19:5: warning: implicit declaration of function 'hal_wdg_init'; did you mean 'aos_hal_wdg_init'? [-Wimplicit-function-declaration] 19 | hal_wdg_init(wdg); | ^ |
aos_hal_wdg_init E:\PROJECT\haas\h4\components\amp_adapter\platform\aos\peripheral\aos_hal_wdg.c: In function 'aos_hal_wdg_reload': E:\PROJECT\haas\h4\components\amp_adapter\platform\aos\peripheral\aos_hal_wdg.c:63:5: warning: implicit declaration of function 'hal_wdg_reload'; did you mean 'aos_hal_wdg_reload'? [-Wimplicit-function-declaration] 63 | hal_wdg_reload(wdg); | ^ |
aos_hal_wdg_reload E:\PROJECT\haas\h4\components\amp_adapter\platform\aos\peripheral\aos_hal_wdg.c: In function 'aos_hal_wdg_finalize': E:\PROJECT\haas\h4\components\amp_adapter\platform\aos\peripheral\aos_hal_wdg.c:91:5: warning: implicit declaration of function 'hal_wdg_finalize'; did you mean 'aos_hal_wdg_finalize'? [-Wimplicit-function-declaration] 91 | hal_wdg_finalize(wdg); | ^ |
aos_hal_wdg_finalize AR aos_sdk\lib\libamp_adapter.a CC out\epoll\src\rbtree_wrapper.o AR aos_sdk\lib\libcsi.a RANLIB aos_sdk\lib\libcsi.a CC out\cplusplus\cpp_init.o RANLIB aos_sdk\lib\libamp_adapter.a CXX out\cplusplus\cpp_mem.o CXX out\cplusplus\thread.o CXX out\cplusplus\semaphore.o CXX out\cplusplus\mutex.o CXX out\cplusplus\queue.o CXX out\cplusplus\timer.o CXX out\cplusplus\workQueue.o CC out\haas100\startup\startup.o CC out\haas100\config\board.o CC out\haas100\config\partition_conf.o In file included from E:\PROJECT\haas\h4\hardware\board\haas100\startup\startup.c:3: E:\PROJECT\haas\h4\hardware\board\haas100\config/board.h:5: warning: "DEBUG_LASTWORD_RAM_ADDR" redefined 5 | #define DEBUG_LASTWORD_RAM_ADDR 0x20166000 |
---|
亲,请核实你创建的工程配置是否和下图一致?
This issue has not been updated for a while, so we close this issue. If you have further request, please reopen it or add it. We will response as soon as possible.
本issue因太久未更新而关闭,如果您还有进一步的问题,请reopen本issue,或者新开一个issue,我们会尽快回复您。
haas100,烧录轻应用固件: 1)我的环境:win11+vscode最新版+haas studio(v1.0.70) C语言+轻应用示例 ;编译一直出问题,无法继续; 2)为此在虚机里另安装了centos,win7 64系统,vscode 同样在编译出问题,无法通过。