alibaba / AliOS-Things

面向IoT领域的、高可伸缩的物联网操作系统,可去官网了解更多信息https://www.aliyun.com/product/aliosthings
Apache License 2.0
4.59k stars 1.15k forks source link

haas100轻应用固件编译无法通过 #1406

Closed xyjand closed 2 years ago

xyjand commented 2 years ago

haas100,烧录轻应用固件: 1)我的环境:win11+vscode最新版+haas studio(v1.0.70) C语言+轻应用示例 ;编译一直出问题,无法继续; 2)为此在虚机里另安装了centos,win7 64系统,vscode 同样在编译出问题,无法通过。

skylarCai commented 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分钟内回复您。
qisheng-seu commented 2 years ago

亲,amp_demo@haas100的编译问题我们10分钟前已经修复。请基于haas stduio重新下载个源码工程编译。谢谢。

xyjand commented 2 years ago

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); ^~~~~ CC out\amp_adapter\platform\aos\peripheral\aos_hal_flash.o CC out\amp_adapter\platform\aos\peripheral\aos_hal_gpio.o AR aos_sdk\lib\libkv.a CC out\amp_adapter\platform\aos\peripheral\aos_hal_i2c.o RANLIB aos_sdk\lib\libkv.a E:\PROJECT\haas\h4\components\amp_adapter\platform\aos\network\aos_tcp.c: In function 'aos_tcp_establish': E:\PROJECT\haas\h4\components\amp_adapter\platform\aos\network\aos_tcp.c:83:9: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] 83 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(&timestart, NULL); ^~~~ CC out\amp_adapter\platform\aos\peripheral\aos_hal_pwm.o E:\PROJECT\haas\h4\components\amp_adapter\platform\aos\network\aos_udp.c: In function 'aos_udp_socket_bind': E:\PROJECT\haas\h4\components\amp_adapter\platform\aos\network\aos_udp.c:56:9: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] 56 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); ~~~^ E:\PROJECT\haas\h4\components\amp_adapter\platform\aos\peripheral\aos_hal_lcd.c: In function 'aos_hal_lcd_uninit': E:\PROJECT\haas\h4\components\amp_adapter\platform\aos\peripheral\aos_hal_lcd.c:25:12: warning: implicit declaration of function 'udisplay_uninit'; did you mean 'udisplay_init'? [-Wimplicit-function-declaration] 25 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
: note: this is the location of the previous definition AR aos_sdk\lib\libepoll.a AR aos_sdk\lib\libflash.a CC out\haas100\config\partition_conf_legacy.o RANLIB aos_sdk\lib\libepoll.a RANLIB aos_sdk\lib\libflash.a CC out\haas100\config\k_config.o E:\PROJECT\haas\h4\hardware\board\haas100\startup\startup.c: In function 'haas_board_init': E:\PROJECT\haas\h4\hardware\board\haas100\startup\startup.c:86:5: warning: implicit declaration of function 'platform_init_step0' [-Wimplicit-function-declaration] 86 | platform_init_step0(release_version); | ^~~~~~~~~~~~~~~~~~~ E:\PROJECT\haas\h4\hardware\board\haas100\startup\startup.c:92:5: warning: implicit declaration of function 'platform_init_step1' [-Wimplicit-function-declaration] 92 | platform_init_step1(init); | ^~~~~~~~~~~~~~~~~~~ E:\PROJECT\haas\h4\hardware\board\haas100\startup\startup.c: In function 'a7_dsp_init': E:\PROJECT\haas\h4\hardware\board\haas100\startup\startup.c:114:10: warning: implicit declaration of function 'app_enter_factory_wifi_test' [-Wimplicit-function-declaration] 114 | if (!app_enter_factory_wifi_test()) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ E:\PROJECT\haas\h4\hardware\board\haas100\startup\startup.c:116:9: warning: implicit declaration of function 'a7_dsp_boot'; did you mean 'a7_dsp_init'? [-Wimplicit-function-declaratio ] 116 | a7_dsp_boot(); | ^~~~~~~~~~~ | a7_dsp_init CC out\haas100\drivers\led.o E:\PROJECT\haas\h4\hardware\board\haas100\startup\startup.c: In function 'factory_rf_test': E:\PROJECT\haas\h4\hardware\board\haas100\startup\startup.c:126:5: warning: implicit declaration of function 'board_stduart_init' [-Wimplicit-function-declaration] 126 | board_stduart_init(); | ^~~~~~~~~~~~~~~~~~ E:\PROJECT\haas\h4\hardware\board\haas100\startup\startup.c: In function 'aos_main_task_entry': E:\PROJECT\haas\h4\hardware\board\haas100\startup\startup.c:153:5: warning: implicit declaration of function 'ch395_device_dereset' [-Wimplicit-function-declaration] 153 | ch395_device_dereset(); | ^~~~~~~~~~~~~~~~~~~~ E:\PROJECT\haas\h4\hardware\board\haas100\startup\startup.c:155:5: warning: implicit declaration of function 'cpp_init' [-Wimplicit-function-declaration] 155 | cpp_init(); | ^~~~~~~~ E:\PROJECT\haas\h4\hardware\board\haas100\startup\startup.c:172:11: warning: implicit declaration of function 'bwifi_init' [-Wimplicit-function-declaration] 172 | ret = bwifi_init(); | ^~~~~~~~~~ E:\PROJECT\haas\h4\hardware\board\haas100\startup\startup.c:177:11: warning: implicit declaration of function 'eth_lwip_tcpip_init' [-Wimplicit-function-declaration] 177 | ret = eth_lwip_tcpip_init(); | ^~~~~~~~~~~~~~~~~~~ CC out\haas100\drivers\watchdog.o E:\PROJECT\haas\h4\hardware\board\haas100\startup\startup.c:188:9: warning: implicit declaration of function 'aos_maintask' [-Wimplicit-function-declaration] 188 | aos_maintask(); | ^~~~~~~~~~~~ CC out\haas100\drivers\key.o In file included from E:\PROJECT\haas\h4\hardware\chip\haas1000\drivers\platform\cmsis\inc/cmsis.h:15, from E:\PROJECT\haas\h4\hardware\board\haas100\config\board.c:2: E:\PROJECT\haas\h4\hardware\chip\haas1000\drivers\platform\cmsis\inc/haas1000.h:174: warning: "__FPU_PRESENT" redefined 174 | #define __FPU_PRESENT 1U /* FPU present */ | : note: this is the location of the previous definition CC out\haas100\drivers\ch395_spi.o E:\PROJECT\haas\h4\hardware\board\haas100\drivers\led.c: In function 'led_switch': CC out\haas100\drivers\ch395_cmd.o E:\PROJECT\haas\h4\hardware\board\haas100\drivers\led.c:31:9: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration] 31 | In file included from printf("hal_gpio_init %d failed, ret=%d\n", id, ret); | E:\PROJECT\haas\h4\hardware\board\haas100\config\k_config.c:11^~~~~~: E:\PROJECT\haas\h4\hardware\board\haas100\config\board.h:5:E:\PROJECT\haas\h4\hardware\board\haas100\drivers\led.c:31:9: warning: warning: "DEBUG_LASTWORD_RAM_ADDR" redefined 5 | #define DEBUG_LASTWORD_RAM_ADDR 0x20166000 | incompatible implicit declaration of built-in function ':printf ' note: E:\PROJECT\haas\h4\hardware\board\haas100\drivers\led.c:4:1:this is the location of the previous definition E:\PROJECT\haas\h4\hardware\board\haas100\config\k_config.c: In function ' ': ' or provide a declaration of 'E:\PROJECT\haas\h4\hardware\board\haas100\config\k_config.c:83:5:printf ' 3 | #include "led.h" +++ |+warning: #include implicit declaration of function ' 4 | abort' [E:\PROJECT\haas\h4\hardware\board\haas100\drivers\led.c:41:9:-Wimplicit-function-declaration ] 83 | warning: abortincompatible implicit declaration of built-in function '(); | printf^~~~~' 41 | printfE:\PROJECT\haas\h4\hardware\board\haas100\config\k_config.c:83:5:("hal_gpio_output %d failed, ret=%d\n", id, ret); | ^~~~~~warning: incompatible implicit declaration of built-in function ' ' note: E:\PROJECT\haas\h4\hardware\board\haas100\config\k_config.c:13:1: note: ' CC out\haas100\drivers\ch395_lwip.o ' or provide a declaration of 'abort' 12 | #include "watchdog.h" +++ |+#include 13 | E:\PROJECT\haas\h4\hardware\board\haas100\config\k_config.c: In function 'krhino_task_del_hook': E:\PROJECT\haas\h4\hardware\board\haas100\config\k_config.c:109:13: warning: implicit declaration of function 'aos_free' [-Wimplicit-function-declaration] 109 | aos_free(task_sem); | ^~~~~~~~ E:\PROJECT\haas\h4\hardware\board\haas100\drivers\key.c: In function 'key_falling_edge_handle': E:\PROJECT\haas\h4\hardware\board\haas100\drivers\key.c:17:22: warning: implicit declaration of function 'aos_now_ms' [-Wimplicit-function-declaration] 17 | key_falling_ms = aos_now_ms(); | ^~~~~~~~~~ E:\PROJECT\haas\h4\hardware\board\haas100\drivers\key.c: In function 'key_init': E:\PROJECT\haas\h4\hardware\board\haas100\drivers\key.c:58:5: warning: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration] 58 | memcpy(&key_cfg, cfg, sizeof(key_cfg_t)); | ^~~~~~ E:\PROJECT\haas\h4\hardware\board\haas100\drivers\key.c:58:5: warning: incompatible implicit declaration of built-in function 'memcpy' E:\PROJECT\haas\h4\hardware\board\haas100\drivers\key.c:6:1: note: include '' or provide a declaration of 'memcpy' 5 | #include "key.h" +++ |+#include 6 | CC out\libc_stub\newlib_stub.o CC out\haas1000\hal\wdg.o CC out\haas1000\hal\spi.o In file included from E:\PROJECT\haas\h4\hardware\chip\haas1000\drivers\platform\cmsis\inc/cmsis.h:15, from E:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_spi.c:15: E:\PROJECT\haas\h4\hardware\chip\haas1000\drivers\platform\cmsis\inc/haas1000.h:174: warning: "__FPU_PRESENT" redefined 174 | #define __FPU_PRESENT 1U /* FPU present */ | : note: this is the location of the previous definition E:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_spi.c: In function 'ch395_device_dereset': E:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_spi.c:74:5: warning: implicit declaration of function 'aos_msleep' [-Wimplicit-function-declaration] 74 | aos_msleep(1000); | ^~~~~~~~~~ E:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_spi.c: In function 'hal_spi_send_ch395': E:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_spi.c:217:17: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 217 | uint8_t *buf = data; | ^~~~ E:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_spi.c:243:68: warning: passing argument 3 of 'spi_ctx[(int)spi->port].spi_dma_send' from incompatible pointer type [-Wincompatible-pointer-types] 243 | ret = spi_ctx[spi->port].spi_dma_send(data, 1, spi_ctx[spi->port].spi_dma_irq); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ | | | void (*)(uint32_t) {aka void (*)(unsigned int)} E:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_spi.c:243:68: note: expected 'HAL_SPI_DMA_HANDLER_T' {aka 'void (*)(int)'} but argument is of type 'void (*)(uint32_t)' {aka 'void (*)(unsigned int)'} E:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_spi.c:266:80: warning: passing argument 3 of 'spi_ctx[(int)spi->port].spi_dma_send' from incompatible pointer type [-Wincompatible-pointer-types] 266 | ret = spi_ctx[spi->port].spi_dma_send(data + 1, size - 1, spi_ctx[spi->port].spi_dma_irq); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ | | | void (*)(uint32_t) {aka void (*)(unsigned int)} E:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_spi.c:266:80: note: expected 'HAL_SPI_DMA_HANDLER_T' {aka 'void (*)(int)'} but argument is of type 'void (*)(uint32_t)' {aka 'void (*)(unsigned int)'} E:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_spi.c: In function 'hal_spi_send_ch395_sockdata': E:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_spi.c:312:17: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 312 | uint8_t *buf = data; | ^~~~ E:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_spi.c:338:68: warning: passing argument 3 of 'spi_ctx[(int)spi->port].spi_dma_send' from incompatible pointer type [-Wincompatible-pointer-types] 338 | ret = spi_ctx[spi->port].spi_dma_send(data, 1, spi_ctx[spi->port].spi_dma_irq); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ | | | void (*)(uint32_t) {aka void (*)(unsigned int)} E:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_spi.c:338:68: note: expected 'HAL_SPI_DMA_HANDLER_T' {aka 'void (*)(int)'} but argument is of type 'void (*)(uint32_t)' {aka 'void (*)(unsigned int)'} E:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_spi.c:359:72: warning: passing argument 3 of 'spi_ctx[(int)spi->port].spi_dma_send' from incompatible pointer type [-Wincompatible-pointer-types] 359 | ret = spi_ctx[spi->port].spi_dma_send(data + 1, 3, spi_ctx[spi->port].spi_dma_irq); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ | | | void (*)(uint32_t) {aka void (*)(unsigned int)} E:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_spi.c:359:72: note: expected 'HAL_SPI_DMA_HANDLER_T' {aka 'void (*)(int)'} but argument is of type 'void (*)(uint32_t)' {aka 'void (*)(unsigned int)'} E:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_spi.c:380:79: warning: passing argument 3 of 'spi_ctx[(int)spi->port].spi_dma_send' from incompatible pointer type [-Wincompatible-pointer-types] 380 | ret = spi_ctx[spi->port].spi_dma_send(data + 4, size - 4, spi_ctx[spi->port].spi_dma_irq); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ | | | void (*)(uint32_t) {aka void (*)(unsigned int)} E:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_spi.c:380:79: note: expected 'HAL_SPI_DMA_HANDLER_T' {aka 'void (*)(int)'} but argument is of type 'void (*)(uint32_t)' {aka 'void (*)(unsigned int)'} E:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_spi.c: In function 'hal_spi_send_and_recv_ch395_normal': E:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_spi.c:424:19: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] 424 | cmd = (uint8_t *)malloc(len); | ^~~~~~ E:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_spi.c:424:19: warning: incompatible implicit declaration of built-in function 'malloc' E:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_spi.c:16:1: note: include '' or provide a declaration of 'malloc' 15 | #include "cmsis.h" +++ |+#include 16 | E:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_spi.c:437:3: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] 437 | free(cmd); | ^~~~ E:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_spi.c:437:3: warning: incompatible implicit declaration of built-in function 'free' E:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_spi.c:437:3: note: include '' or provide a declaration of 'free' E:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_spi.c:451:71: warning: passing argument 3 of 'spi_ctx[(int)spi->port].spi_dma_send' from incompatible pointer type [-Wincompatible-pointer-types] 451 | ret = spi_ctx[spi->port].spi_dma_send(tx_data, 1, spi_ctx[spi->port].spi_dma_irq); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ | | | void (*)(uint32_t) {aka void (*)(unsigned int)} E:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_spi.c:451:71: note: expected 'HAL_SPI_DMA_HANDLER_T' {aka 'void (*)(int)'} but argument is of type 'void (*)(uint32_t)' {aka 'void (*)(unsigned int)'} E:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_cmd.c: In function 'ch395_socket_data_send': E:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_spi.c:473:86: warning: passing argument 3 of 'spi_ctx[(int)spi->port].spi_dma_sendE:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_cmd.c:896:11:' from incompatible pointer type [ -Wincompatible-pointer-typeswarning: ] 473 | ret = spi_ctx[spi->port].spi_dma_send(tx_data + 1, tx_size - 1, spi_ctx[spi->port].spi_dma_irqhal_spi_send_ch395_sockdata); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~hal_spi_send_ch395 | |-Wimplicit-function-declaration | ] 896 | ret = void (*)(uint32_t) {aka void (*)(unsigned int)}hal_spi_send_ch395_sockdata (&g_st_spi_info, psend_data, sendlen, SPI_TIME_OUT); | E:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_spi.c:473:86:^~~~~~~~~~~~~~~~~~~~~~~~~~~ | note: hal_spi_send_ch395expected ' HAL_SPI_DMA_HANDLER_T' {aka 'void (*)(int)'} but argument is of type 'E:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_cmd.c:void (*)(uint32_t) In function '' {aka 'ch395_socket_recv_data_lenvoid (*)(unsigned int)': '} E:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_cmd.c:920:65: warning: passing argument 3 of 'E:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_spi.c:500:85:ch395_spi_send_and_recv ' from incompatible pointer type [warning: -Wincompatible-pointer-typespassing argument 4 of '] 920 | ret = ch395_spi_send_and_recv(send_data, sizeof(send_data), spi_ctx[(int)spi->port].spi_dma_recvpdatalen' from incompatible pointer type [, sizeof(uint16_t)); | -Wincompatible-pointer-types^~~~~~~~] 500 | ret = spi_ctx[spi->port].spi_dma_recv(cmd, rx_data, remainder, | spi_ctx[spi->port].spi_dma_irq|); | | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~uint16_t * {aka short unsigned int *} | | | E:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_cmd.c:125:82: void (*)(uint32_t) {aka void (*)(unsigned int)}note: expected 'E:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_spi.c:500:85:uint8_t * ' {aka 'note: unsigned char *expected ''} but argument is of type 'HAL_SPI_DMA_HANDLER_Tuint16_t *' {aka '' {aka 'void (*)(int)short unsigned int *'} but argument is of type ''} 125 | static int32_t ch395_spi_send_and_recv(uint8_t *txdata, uint32_t txlen, void (*)(uint32_t)uint8_t *rxdata' {aka ', uint32_t rxlen) | void (*)(unsigned int)~~~~~~~~~^~~~~~'} E:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_spi.c:529:2: warning: incompatible implicit declaration of built-in function 'free' 529 | free(cmd); | ^~~~ E:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_cmd.c: In function 'E:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_spi.c:529:2:ch395_get_ip_interface ': note: include 'E:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_cmd.c:1049:54: ' or provide a declaration of 'warning: freepassing argument 3 of '' ch395_spi_send_and_recv' from incompatible pointer type [-Wincompatible-pointer-types] 1049 | ret = ch395_spi_send_and_recv(&cmd, sizeof(cmd), pst_infE:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_spi.c:, sizeof(ch395_int_t)); | In function '^~~~~~~ | ': | | ch395_int_t *E:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_spi.c:563:75: expected ' ] 563 | ret = spi_ctx[spi->port].spi_dma ' {aka ' ); | '} but argument is of type ' | ' 125 | static int32_t ch395_spi_send_and_recv(uint8_t *txdata, uint32_t txlen, |uint8_t *rxdata | , uint32_t rxlen) | void (*)(uint32_t) {aka void (*)(unsigned int)}~~~~~~~~~^~~~~~ E:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_spi.c:563:75: note: expected 'HAL_SPI_DMA_HANDLER_T' {aka 'void (*)(int)'} but argument is of type 'void (*)(uint32_t)' {aka 'void (*)(unsigned int)'} E:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_spi.c:585:84: warning: passing argument 4 of 'spi_ctx[(int)spi->port].spi_dma_recv' from incompatible pointer type [-Wincompatible-pointer-types] 585 | ret = spi_ctx[spi->port].spi_dma_recv(&tx_data[1], rx_data, 1, CC out\haas1000\hal\uart.o spi_ctx[spi->port].spi_dma_irq); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ | | | void (*)(uint32_t) {aka void (*)(unsigned int)} E:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_spi.c:585:84: note: expected 'HAL_SPI_DMA_HANDLER_T' {aka 'void (*)(int)'} but argument is of type 'void (*)(uint32_t)' {aka 'void (*)(unsigned int)'} E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\wdg.c: In function 'hal_wdg_reload': E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\wdg.c:27:5: warning: implicit declaration of function 'watchdog_feeddog_user'; did you mean 'watchdog_feeddog'? [-Wimplicit-function-declaration] 27 | watchdog_feeddog_user(); | ^~~~~~~~~~~~~~~~~~~~~ | watchdog_feeddog E:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_lwip.c: In function 'low_level_output': E:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_lwip.c:98:11: warning: implicit declaration of function 'ch395_socket_data_send' [-Wimplicit-function-declaration] 98 | ret = ch395_socket_data_send(0, datalen, data); | ^~~~~~~~~~~~~~~~~~~~~~ E:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_lwip.c: In function 'ethernetif_input': E:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_lwip.c:180:15: warning: implicit declaration of function 'ch395_socket_recv_data_len' [-Wimplicit-function-declaration] 180 | ret = CC out\haas1000\hal\timer.o ch395_socket_recv_data_len(sock, &recv_len); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ E:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_lwip.c:193:15: warning: implicit declaration of function 'ch395_socket_recv_data' [-Wimplicit-function-declaration] 193 | ret = ch395_socket_recv_data(sock, recv_len, precv_data); | ^~~~~~~~~~~~~~~~~~~~~~ E:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_lwip.c: In function 'low_level_init': E:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_lwip.c:216:11: warning: implicit declaration of function 'ch395_get_mac_addr' [-Wimplicit-function-declaration] 216 | ret = ch395_get_mac_addr(macaddress); | ^~~~~~~~~~~~~~~~~~ E:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_lwip.c:246:28: warning: passing argument 3 of 'aos_task_new_ext' from incompatible pointer type [-Wincompatible-pointer-types] 246 | ethernetif_input, netif, CH395_TASK_SIZE, CH395_TASK_PRIO); | ^~~~~~~~~~~~~~~~ | | | void (*)(const void *) In file included from E:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_lwip.c:7: E:\PROJECT\haas\h4\components\osal_aos\include/aos/kernel.h:1113:74: note: expected 'void (*)(void *)' but argument is of type 'void (*)(const void *)' 1113 | aos_status_t aos_task_new_ext(aos_task_t *task, const char *name, void (*fn)(void *), | ~~~~~~~^~~~~~~~~~~ E:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_lwip.c:254:28: warning: passing argument 3 of 'aos_task_new_ext' from incompatible pointer type [-Wincompatible-pointer-types] 254 | ch395_lwip_inter_proc, NULL, CH395_TASK_SIZE, CH395_TASK_PRIO - 4); | ^~~~~~~~~~~~~~~~~~~~~ | | | void (*)(void) In file included from E:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_lwip.c:7: E:\PROJECT\haas\h4\components\osal_aos\include/aos/kernel.h:1113:74: note: expected 'void (*)(void *)' but argument is of type 'void (*)(void)' 1113 | aos_status_t aos_task_new_ext(aos_task_t *task, const char *name, void (*fn)(void *), | ~~~~~~~^~~~~~~~~~~ E:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_lwip.c: In function 'tcpip_dhcpc_cb': E:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_lwip.c:342:19: warning: implicit declaration of function 'ch395_set_ip_addr' [-Wimplicit-function-declaration] 342 | ret = ch395_set_ip_addr(ip_addr); | ^~~~~~~~~~~~~~~~~ E:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_lwip.c:346:19: warning: implicit declaration of function 'ch395_set_gw_ip_addr' [-Wimplicit-function-declaration] 346 | ret = ch395_set_gw_ip_addr(gw_addr); | ^~~~~~~~~~~~~~~~~~~~ E:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_lwip.c:350:13: warning: implicit declaration of function 'ch395_set_ip_mask_addr' [-Wimplicit-function-declaration] 350 | ch395_set_ip_mask_addr(mask_addr); | ^~~~~~~~~~~~~~~~~~~~~~ E:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_lwip.c: In function 'tcpip_dhcpc_start': E:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_lwip.c:371:13: warning: implicit declaration of function 'dhcp_start' [-Wimplicit-function-declaration] 371 | if (dhcp_start(pstnetif) != ERR_OK) { | ^~~~~~~~~~ E:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_lwip.c: In function 'ch395_eth_sock_macraw': E:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_lwip.c:400:11: warning: implicit declaration of function 'ch395_set_sock_proto_type' [-Wimplicit-function-declaration] 400 | ret = ch395_set_sock_proto_type(0, PROTO_TYPE_MAC_RAW); | ^~~~~~~~~~~~~~~~~~~~~~~~~ E:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_lwip.c:406:11: warning: implicit declaration of function 'ch395_socket_open' [-Wimplicit-function-declaration] 406 | ret = ch395_socket_open(0); | ^~~~~~~~~~~~~~~~~ E:\PROJECT\haas\h4\components\libc_stub\newlib_stub.c: In function '__getreent': E:\PROJECT\haas\h4\components\libc_stub\newlib_stub.c:468:9: warning: implicit declaration of function '__sinit'; did you mean '_fini'? [-Wimplicit-function-declarationE:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_lwip.c:] 468 | In function '__sinitch395_lwip_sock_interrupt_proc(_impure_ptr); | ': ^~~~~~~ | warning: implicit declaration of function 'ch395_get_sock_int_status' [-Wimplicit-function-declaration] 423 | ret = ch395_get_sock_int_status(sockindex, &sock_int_socket); | ^~~~~~~~~~~~~~~~~~~~~~~~~ CC out\haas1000\hal\wifi_port.o E:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_lwip.c: In function 'ch395_lwip_inter_proc': E:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_lwip.c:475:15: warning: implicit declaration of function 'ch395_get_global_all_int_status' [-Wimplicit-function-declaration] 475 | ret = ch395_get_global_all_int_status(&ch395_int_status); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ E:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_lwip.c:488:19: warning: implicit declaration of function 'ch395_get_phy_status' [-Wimplicit-function-declaration] 488 | ret = ch395_get_phy_status(&phy_status); | ^~~~~~~~~~~~~~~~~~~~ E:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_lwip.c:506:19: warning: implicit declaration of function 'ch395_dhcp_get_status' [-Wimplicit-function-declaration] 506 | ret = ch395_dhcp_get_status(&dhcp_status); | In file included from , from E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\uart.c:6: E:\PROJECT\haas\h4\hardware\chip\haas1000\drivers\platform\cmsis\inc/haas1000.h:174: warning: "__FPU_PRESENT" redefined 174 | #define __FPU_PRESENT 1U /* FPU present */ | : note: this is the location of the previous definition E:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_lwip.c:516:27: warning: implicit declaration of function 'ch395_get_ip_interface' [-Wimplicit-function-declaration] 516 | ret = ch395_get_ip_interface(&gst_lwipch395info.ip_info); | ^~~~~~~~~~~~~~~~~~~~~~ E:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_lwip.c: In function 'eth_lwip_tcpip_init': E:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_lwip.c:567:11: warning: implicit declaration of function 'ch395_module_init' [-Wimplicit-function-declaration] 567 | ret = ch395_module_init(ð_spi_dev); | ^~~~~~~~~~~~~~~~~ CC out\haas1000\hal\adc.o E:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_lwip.c:575:11: warning: implicit declaration of function 'ch395_get_version' [-Wimplicit-function-declaration] 575 | ret = ch395_get_version(&chip_ver, &soft_ver); | ^~~~~~~~~~~~~~~~~ In file included from E:\PROJECT\haas\h4\hardware\chip\haas1000\drivers\platform\cmsis\inc/cmsis.h:15, from E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\spi.c:13: E:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_lwip.c:581:11:E:\PROJECT\haas\h4\hardware\chip\haas1000\drivers\platform\cmsis\inc/haas1000.h:174: warning: warning: implicit declaration of function '"__FPU_PRESENT" redefined 174 | #define __FPU_PRESENT 1U /* FPU present */ | ch395_set_func_param:' [ -Wimplicit-function-declarationnote: ] 581 | ret = this is the location of the previous definition ch395_set_func_param(SOCK_CTRL_FLAG_SOCKET_CLOSE); | ^~~~~~~~~~~~~~~~~~~~ E:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_lwip.c:587:11: warning: implicit declaration of function 'ch395_dev_init' [-Wimplicit-function-declaration] 587 | ret = ch395_dev_init(); | ^~~~~~~~~~~~~~ E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\spi.c: In function 'hal_spi_send': E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\spi.c:246:17: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 246 | uint8_t *buf = data; | ^~~~ E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\spi.c:271:69: warning: passing argument 3 of 'spi_ctx[(int)spi->port].spi_dma_send' from incompatible pointer type [-Wincompatible-pointer-types] 271 | ret = spi_ctx[spi->port].spi_dma_send(buf, len, spi_ctx[spi->port].spi_dma_irqE:\PROJECT\haas\h4\hardware\board\haas100\drivers\ch395_lwip.c:599:11:); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~warning: | implicit declaration of function '|ch395_ping_enable | ' [void (*)(uint32_t) {aka void (*)(unsigned int)}-Wimplicit-function-declaration ] 599 | ret = ch395_ping_enableE:\PROJECT\haas\h4\hardware\chip\haas1000\hal\spi.c:271:69:(1); | ^~~~~~~~~~~~~~~~~note: expected 'HAL_SPI_DMA_HANDLER_T' {aka 'void (*)(int)'} but argument is of type 'void (*)(uint32_t)' {aka 'void (*)(unsigned int)'} E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\spi.c: In function 'hal_spi_recv': E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\spi.c:327:19: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] 327 | cmd = (uint8_t *)malloc(len); | ^~~~~~ E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\spi.c:327:19: warning: CC out\haas1000\hal\pwm.o incompatible implicit declaration of built-in function 'malloc' E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\spi.c:14:1: note: include '' or provide a declaration of 'malloc' 13 | #include "cmsis.h" +++ |+#include 14 | E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\spi.c:339:3: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] 339 | free(cmd); | ^~~~ E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\spi.c:339:3: warning: incompatible implicit declaration of built-in function 'free' E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\spi.c:339:3: note: include '' or provide a declaration of 'free' E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\spi.c:355:82: warning: passing argument 4 of 'spi_ctx[(int)spi->port].spi_dma_recv' from incompatible pointer type [-Wincompatible-pointer-types] 355 | ret = spi_ctx[spi->port].spi_dma_recv(cmd, data, remainder, spi_ctx[spi->port].spi_dma_irq); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ | | | void (*)(uint32_t) {aka void (*)(unsigned int)} E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\spi.c:355:82: note: expected 'HAL_SPI_DMA_HANDLER_T' {aka 'void (*)(int)'} but argument is of type 'void (*)(uint32_t)' {aka 'void (*)(unsigned int)'} E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\spi.c:381:2: warning: incompatible implicit declaration of built-in function 'free' 381 | free(cmd); | ^~~~ E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\spi.c:381:2: note: include '' or provide a declaration of 'free' E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\spi.c: In function 'hal_spi_send_and_recv': E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\spi.c:403:19: warning: incompatible implicit declaration of built-in function 'malloc' 403 | cmd = (uint8_t *)malloc(max_len); | ^~~~~~ E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\spi.c:403:19: note: include '' or provide a declaration of 'malloc' E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\spi.c:416:3: warning: incompatible implicit declaration of built-in function 'free' 416 | free(cmd); | ^~~~ E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\spi.c:416:3: note: include '' or provide a declaration of 'free' E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\spi.c:431:85: warning: passing argument 4 of 'spi_ctx[(int)spi->port].spi_dma_recv' from incompatible pointer type [-Wincompatible-pointer-types] 431 | ret = spi_ctx[spi->port].spi_dma_recv(cmd, rx_data, remainder, spi_ctx[spi->port].spi_dma_irq); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ | | | void (*)(uint32_t) {aka void (*)(unsigned int)} E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\spi.c:431:85: note: expected 'HAL_SPI_DMA_HANDLER_T' {aka 'void (*)(int)'} but argument is of type 'CC out\haas1000\hal\i2c.o void (*)(uint32_t)' {aka 'void (*)(unsigned int)'} E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\spi.c:457:2: warning: incompatible implicit declaration of built-in function 'free' 457 | free(cmd); | ^~~~ E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\spi.c:457:2: note: include '' or provide a declaration of 'free' E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\spi.c: In function 'hal_spi_send_recv': E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\spi.c:483:19: warning: incompatible implicit declaration of built-in function 'malloc' 483 | cmd = (uint8_t *)malloc(rx_size); | ^~~~~~ E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\spi.c:483:19: note: include '' or provide a declaration of 'malloc' E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\spi.c:497:3: warning: incompatible implicit declaration of built-in function 'free' 497 | free(cmd); | ^~~~ E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\spi.c:497:3: note: include '' or provide a declaration of 'free' E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\spi.c:507:71: warning: passing argument 3 of 'spi_ctx[(int)spi->port].spi_dma_send' from incompatible pointer type [-Wincompatible-pointer-types] 507 | ret = spi_ctx[spi->port].spi_dma_send(tx_data, 1, spi_ctx[spi->port].spi_dma_irq); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ | | | void (*)(uint32_t) {aka void (*)(unsigned int)} E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\spi.c:507:71: note: expected 'HAL_SPI_DMA_HANDLER_T' {aka 'void (*)(int)'} but argument is of type 'void (*)(uint32_t)' {aka 'void (*)(unsigned int)'} E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\spi.c:524:85: warning: passing argument 4 of 'spi_ctx[(int)spi->port].spi_dma_recv' from incompatible pointer type [-Wincompatible-pointer-types] 524 | ret = spi_ctx[spi->port].spi_dma_recv(cmd, rx_data, remainder, spi_ctx[spi->port].spi_dma_irq); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ | | | void (*)(uint32_t) {aka void (*)(unsigned int)} E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\spi.c:524:85: note: expected 'HAL_SPI_DMA_HANDLER_T' {aka 'void (*)(int)'} but argument is of type 'void (*)(uint32_t)' {aka 'void (*)(unsigned int)'} E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\spi.c:549:2: warning: incompatible implicit declaration of built-in function 'free' 549 | free(cmd); | ^~~~ E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\spi.c:549:2: note: include '' or provide a declaration of 'free' CC out\haas1000\hal\sd.o CC out\haas1000\hal\flash.o E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\timer.c: In function '_hal_timer_test': E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\timer.c:140:73: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 140 | timer_dev_t tim = {0, {1000, TIMER_RELOAD_MANU, _hal_timer_test_cb, 100}, NULL}; | ^~~ E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\timer.c:140:73: note: (near initialization for 'tim.config.arg') E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\uart.c: In function 'hal_set_uart_iomux': E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\uart.c:63:9: warning: E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\timer.c:144:5:implicit declaration of function ' hal_iomux_set_uart0warning: ' [ -Wimplicit-function-declarationkrhino_task_sleep] 63 | hal_iomux_set_uart0-Wimplicit-function-declaration(); | ] 144 | ^~~~~~~~~~~~~~~~~~~krhino_task_sleep (3000); | ^~~~~~~~~~~~~~~~~ E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\uart.c:65:9: warning: implicit declaration of function 'hal_iomux_set_uart1' [-Wimplicit-function-declaration] 65 | hal_iomux_set_uart1(); | ^~~~~~~~~~~~~~~~~~~ E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\uart.c:67:9: warning: implicit declaration of function 'hal_iomux_set_uart2' [-Wimplicit-function-declaration] 67 | hal_iomux_set_uart2(); | ^~~~~~~~~~~~~~~~~~~E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\adc.c: In function 'hal_adc_value_get': AR aos_sdk\lib\libcplusplus.a E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\adc.c:51:5:E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\uart.c: In function ' implicit declaration of function '': osDelayE:\PROJECT\haas\h4\hardware\chip\haas1000\hal\uart.c:274:34:' [ -Wimplicit-function-declarationwarning: ] 51 | osDelayhal_trace_get_id(1); | ^~~~~~~hal_trace_output '? [-Wimplicit-function-declarationCC out\haas1000\hal\gpio.o ] 274 | enum HAL_UART_ID_T uart_id = hal_trace_get_id(); | RANLIB aos_sdk\lib\libcplusplus.a ^~~~~~~~~~~~~~~~E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\pwm.c: In function 'hal_pwm_init': warning: implicit declaration of function 'malloc' [ | -Wimplicit-function-declarationhal_trace_output] 56 | _HAL_PWM_PRIV_T *_cfg = mallocCC out\haas1000\csi\uart.o (sizeof(_HAL_PWM_PRIV_T)); | ^~~~~~ E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\pwm.c:56:26: warning: incompatible implicit declaration of built-in function 'malloc' E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\pwm.c:12:1: note: include '' or provide a declaration of 'malloc' 11 | #include "pmu.h" +++ |+#include 12 | E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\pwm.c: In function 'hal_pwm_para_chg': E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\pwm.c:133:2: warning: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration] 133 | memcpy(&pwm->config, ¶, sizeof(pwm_config_t)); | ^~~~~~ E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\pwm.c:133:2: warning: incompatible implicit declaration of built-in function 'memcpy' E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\pwm.c:12:1: note: include '' or provide a declaration of 'memcpy' 11 | #include "pmu.h" +++ |+#include 12 | E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\pwm.c: In function 'hal_pwm_finalize': E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\pwm.c:156:3: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] 156 | free(_cfg); | ^~~~ E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\pwm.c:156:3: warning: incompatible implicit declaration of built-in function 'free' E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\pwm.c:156:3: note: include '' or provide a declaration of 'free' AR aos_sdk\lib\libc_stub.a RANLIB aos_sdk\lib\libc_stub.a In file included from E:\PROJECT\haas\h4\hardware\chip\haas1000\drivers\platform\cmsis\inc/cmsis.h:15, from E:\PROJECT\haas\h4\hardware\chip\haas1000\drivers\net/net_defs.h:21, from E:\PROJECT\haas\h4\hardware\chip\haas1000\drivers\net/net_debug.h:19, from E:\PROJECT\haas\h4\hardware\chip\haas1000\drivers\net/bwifi_interface.h:25, from E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\wifi_port.c:19: E:\PROJECT\haas\h4\hardware\chip\haas1000\drivers\platform\cmsis\inc/haas1000.h:174: warning: "__FPU_PRESENT" redefined 174 | #define __FPU_PRESENT 1U /* FPU present */ | : note: this is the location of the previous definition E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\i2c.c: In function 'hal_i2c_slave_send': E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\i2c.c:180:36: warning: passing argument 2 of 'hal_i2c_slv_write' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 180 | ret = hal_i2c_slv_write(i2c_port, data, size, &act_write); | ^~~~ In file included from E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\i2c.c:6: E:\PROJECT\haas\h4\hardware\chip\haas1000\drivers\platform\hal/hal_i2c.h:190:59: note: expected 'uint8_t *' {aka 'unsigned char *'} but argument is of type 'const uint8_t *' {aka 'const unsigned char *'} 190 | uint32_t hal_i2c_slv_write(enum HAL_I2C_ID_T id, uint8_t *buf, uint32_t buf_len, uint32_t *act_len); | ~~~~~~~~~^~~ E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\wifi_port.c: In function 'start_ap': E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\wifi_port.c:326:33: CC out\haas1000\csi\gpio.o warning: passing argument 1 of 'bwifi_set_softap_config' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 326 | if (bwifi_set_softap_config(ssid, 0, hide, sec, passwd)) { | ^~~~ In file included from E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\wifi_port.c:19: E:\PROJECT\haas\h4\hardware\chip\haas1000\drivers\net/bwifi_interface.h:413:35: note: expected 'char *' but argument is of type 'const char *' 413 | int bwifi_set_softap_config(char *ssid, u8 channel, u8 hidden, BWIFI_SEC_TYPE_T security, char *passwd); | ~~~~~~^~~~ E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\wifi_port.c:326:53: warning: passing argument 5 of 'bwifi_set_softap_config' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 326 | if (bwifi_set_softap_config(ssid, 0, hide, sec, passwd)) { | ^~~~~~ In file included from E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\wifi_port.c:19: E:\PROJECT\haas\h4\hardware\chip\haas1000\drivers\net/bwifi_interface.h:413:97: note: expected 'char *' but argument is of type 'const char *' 413 | int bwifi_set_softap_config(char *ssid, u8 channel, u8 hidden, BWIFI_SEC_TYPE_T security, char *passwd); | ~~~~~~^~~~~~ E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\wifi_port.c: At top level: E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\wifi_port.c:758:35: warning: initialization of 'int (*)(netdev_t *, void (*)(wifi_promiscuous_pkt_t *, wifi_promiscuous_pkt_type_t))' from incompatible pointer type 'int (*)(netdev_t *)' [-Wincompatible-pointer-types] 758 | .start_monitor = haas1000_wifi_start_monitor, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\wifi_port.c:758:35: note: (near initialization for 'haas1000_wifi_driver.start_monitor') E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\wifi_port.c:760:35: warning: initialization of 'int (*)(netdev_t *, void *, uint16_t)' {aka 'int (*)(netdev_t *, void *, short unsigned int)'} from incompatible pointer type 'int (*)(netdev_t *, uint8_t *, int)' {aka 'int (*)(netdev_t *, unsigned char *, int)'} [-Wincompatible-pointer-types] 760 | .send_80211_raw_frame = haas1000_wifi_send_80211_raw_frame, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\wifi_port.c:760:35: note: (near initialization for 'haas1000_wifi_driver.send_80211_raw_frame') E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\wifi_port.c:763:35: warning: initialization of 'int (*)(netdev_t *, void (*)(uint8_t *, int, wifi_link_info_t *))' {aka 'int (*)(netdev_t *, void (*)(unsigned char *, int, wifi_link_info_t *))'} from incompatible pointer type 'void (*)(netdev_t *, void (*)(uint8_t *, int, wifi_link_info_t *))' {aka 'void (*)(netdev_t *, void (*)(unsigned char *, int, wifi_link_info_t *))'} [-Wincompatible-pointer-types] 763 | .register_monitor_cb = haas1000_wifi_register_monitor_cb, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\wifi_port.c:763:35: note: (near initialization for 'haas1000_wifi_driver.register_monitor_cb') E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\wifi_port.c:766:35: warning: initialization of 'int (*)(netdev_t *, void (*)(uint8_t *, int, wifi_link_info_t *))' {aka 'int (*)(netdev_t *, void (*)(unsigned char *, int, wifi_link_info_t *))'} from incompatible pointer type 'void (*)(netdev_t *, void (*)(uint8_t *, int, wifi_link_info_t *))' {aka 'void (*)(netdev_t *, void (*)(unsigned char *, int, wifi_link_info_t *))'} [-Wincompatible-pointer-types] 766 | .register_mgnt_monitor_cb = haas1000_wifi_register_mgnt_monitor_cb, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\wifi_port.c:766:35: note: (near initialization for 'haas1000_wifi_driver.register_mgnt_monitor_cb') CC out\haas1000\csi\iic.o In file included from E:\PROJECT\haas\h4\hardware\chip\haas1000\drivers\platform\cmsis\inc/cmsis.h:15, from E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\flash.c:8: E:\PROJECT\haas\h4\hardware\chip\haas1000\drivers\platform\cmsis\inc/haas1000.h:174: warning: "__FPU_PRESENT" redefined 174 | #define __FPU_PRESENT 1U /* FPU present */ | : note: this is the location of the previous definition CC out\haas1000\csi\wdt.o CC out\haas1000\csi\flash.o E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\flash.c: In function 'bes_hal_flash_read': E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\flash.c:77:5: warning: implicit declaration of function 'watchdog_feeddog' [-Wimplicit-function-declaration] 77 | watchdog_feeddog(); | ^~~~~~~~~~~~~~~~ E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\flash.c: In function 'bes_hal_flash_write': E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\flash.c:266:5: warning: implicit declaration of function 'pmu_flash_write_config' [-Wimplicit-function-declaration] 266 | pmu_flash_write_config(); | ^~~~~~~~~~~~~~~~~~~~~~ E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\flash.c:277:5: warning: implicit declaration of function 'pmu_flash_read_config' [-Wimplicit-function-declaration] 277 | pmu_flash_read_config(); | ^~~~~~~~~~~~~~~~~~~~~ AR aos_sdk\lib\libhaas100.a CC out\haas1000\aos_driver\pwm\pwm.o RANLIB aos_sdk\lib\libhaas100.a CC out\haas1000\aos\hook_impl.o CC out\haas1000\aos\soc_init.o CC out\haas1000\aos\ota_port.o CC out\haas1000\aos\aos.o CC out\haas1000\drivers\utils\build_info\build_info.o In file included from E:\PROJECT\haas\h4\hardware\chip\haas1000\drivers\platform\cmsis\inc/cmsis.h:15, from E:\PROJECT\haas\h4\hardware\chip\haas1000\csi\flash.c:15: E:\PROJECT\haas\h4\hardware\chip\haas1000\drivers\platform\cmsis\inc/haas1000.h:174: warning: "__FPU_PRESENT" redefined 174 | #define __FPU_PRESENT 1U /* FPU present */ | : note: this is the location of the previous definition E:\PROJECT\haas\h4\hardware\chip\haas1000\csi\flash.c: In function 'csi_spiflash_spi_uninit': E:\PROJECT\haas\h4\hardware\chip\haas1000\csi\flash.c:68:16: warning: 'return' with a value, in function returning void 68 | return CSI_ERROR; | ^~~~~~~~~ E:\PROJECT\haas\h4\hardware\chip\haas1000\csi\flash.c:65:6: note: declared here 65 | void csi_spiflash_spi_uninit(csi_spiflash_t *spiflash) | ^~~~~~~~~~~~~~~~~~~~~~~ E:\PROJECT\haas\h4\hardware\chip\haas1000\csi\flash.c: In function 'csi_spiflash_read': E:\PROJECT\haas\h4\hardware\chip\haas1000\csi\flash.c:104:5: warning: implicit declaration of function 'watchdog_feeddog' [-Wimplicit-function-declaration] 104 | watchdog_feeddog(); | ^~~~~~~~~~~~~~~~ E:\PROJECT\haas\h4\hardware\chip\haas1000\csi\flash.c: In function 'csi_spiflash_program': E:\PROJECT\haas\h4\hardware\chip\haas1000\csi\flash.c:130:5: warning: implicit declaration of function 'pmu_flash_write_config' [-Wimplicit-function-declaration] 130 | pmu_flash_write_config(); | ^~~~~~~~~~~~~~~~~~~~~~ CC out\haas1000\drivers\utils\boot_struct\boot_struct.o E:\PROJECT\haas\h4\hardware\chip\haas1000\csi\flash.c:135:5: warning: implicit declaration of function 'pmu_flash_read_config' [-Wimplicit-function-declaration] 135 | pmu_flash_read_config(); | ^~~~~~~~~~~~~~~~~~~~~ E:\PROJECT\haas\h4\hardware\chip\haas1000\csi\flash.c: In function 'get_mtd_part': E:\PROJECT\haas\h4\hardware\chip\haas1000\csi\flash.c:189:11: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 189 | p = &mtd_partitions[i]; | ^ E:\PROJECT\haas\h4\hardware\chip\haas1000\csi\flash.c: In function 'csi_flash_init': E:\PROJECT\haas\h4\hardware\chip\haas1000\csi\flash.c:214:11: warning: implicit declaration of function 'aos_mtd_nor_init'; did you mean 'aos_mtd_oob_write'? [-Wimplicit-function-declaration] 214 | ret = aos_mtd_nor_init(&g_mtd_nor_dev, blk_size, page_size); | ^~~~~~~~~~~~~~~~ | aos_mtd_oob_writeAS out\haas1000\aos\dsp\dsp.o In file included from E:\PROJECT\haas\h4\hardware\chip\haas1000\drivers\platform\cmsis\inc/cmsis.h:15, from E:\PROJECT\haas\h4\hardware\chip\haas1000\aos\aos.c:5: E:\PROJECT\haas\h4\hardware\chip\haas1000\drivers\platform\cmsis\inc/haas1000.h:174: warning: "__FPU_PRESENT" redefined 174 | #define __FPU_PRESENT 1U /* FPU present */ | : note: this is the location of the previous definition CC out\haas1000\hal\audio.o CC out\armv8m\common\port_c.o CC out\armv8m\common\panic_c.o CC out\armv8m\common\backtrace.o In file included from E:\PROJECT\haas\h4\hardware\chip\haas1000\drivers\platform\cmsis\inc/cmsis.h:15, from E:\PROJECT\haas\h4\hardware\chip\haas1000\aos\ota_port.c:6: E:\PROJECT\haas\h4\hardware\chip\haas1000\drivers\platform\cmsis\inc/haas1000.h:174: warning: "__FPU_PRESENT" redefined 174 | #define __FPU_PRESENT 1U /* FPU present */ | : note: this is the location of the previous definition AS out\armv8m\common\panic_gcc.o E:\PROJECT\haas\h4\hardware\chip\haas1000\aos\ota_port.c: In function 'ota_set_bootinfo_crc32value': E:\PROJECT\haas\h4\hardware\chip\haas1000\aos\ota_port.c:73:19: warning: implicit declaration of function 'crc32' [-Wimplicit-function-declaration] 73 | crc32_value = crc32(crc32_value, (uint8_t *)(flash_pointer + OTA_BOOT_INFO_HEAD_LEN), info->info_len); | ^~~~~ E:\PROJECT\haas\h4\hardware\chip\haas1000\aos\aos.c: In function '__wrap_printf': E:\PROJECT\haas\h4\hardware\chip\haas1000\aos\aos.c:135:11: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 135 | p = fmt; | ^ E:\PROJECT\haas\h4\hardware\chip\haas1000\aos\aos.c: In function 'alios_cli_panic_hook': E:\PROJECT\haas\h4\hardware\chip\haas1000\aos\aos.c:174:5: warning: implicit declaration of function 'hal_panic_uart_open'; did you mean 'hal_uart_open'? [-Wimplicit-function-declaration] 174 | hal_panic_uart_open(); | ^~~~~~~~~~~~~~~~~~~ | hal_uart_open E:\PROJECT\haas\h4\hardware\chip\haas1000\aos\aos.c: In function 'mcu_first_handshake': E:\PROJECT\haas\h4\hardware\chip\haas1000\aos\aos.c:241:5: warning: implicit declaration of function 'transq_msg_onoff' [-Wimplicit-function-declaration] 241 | transq_msg_onoff(1); | ^~~~~~~~~~~~~~~~ E:\PROJECT\haas\h4\hardware\chip\haas1000\aos\aos.c:244:18: warning: implicit declaration of function 'tg_ota_get_odm_type'; did you mean 'ota_adapt_get_odm_type'? [-Wimplicit-function-declaration] 244 | a7_cmd.p1 = (tg_ota_get_odm_type()==ALI_C5A01)?48000:16000; | ^~~~~~~~~~~~~~~~~~~ | ota_adapt_get_odm_type E:\PROJECT\haas\h4\hardware\chip\haas1000\aos\aos.c: In function 'aos_printf_hook': E:\PROJECT\haas\h4\hardware\chip\haas1000\aos\aos.c:272:15: warning: implicit declaration of function 'check_pass_pop_out' [-Wimplicit-function-declaration] 272 | ret = check_pass_pop_out(ulog_session_std, LOG_ERR) ? 1 : -1; | ^~~~~~~~~~~~~~~~~~ E:\PROJECT\haas\h4\hardware\chip\haas1000\aos\aos.c: In function 'hal_reset_cpu': E:\PROJECT\haas\h4\hardware\chip\haas1000\aos\aos.c:292:5: warning: implicit declaration of function 'hal_reboot'; did you mean 'aos_reboot'? [-Wimplicit-function-declaration] 292 | AS out\armv8m\gcc\m33\port_s.o hal_reboot(); | ^~~~~~~~~~ | aos_reboot E:\PROJECT\haas\h4\hardware\chip\haas1000\aos\aos.c: In function 'soc_peripheral_init': E:\PROJECT\haas\h4\hardware\chip\haas1000\aos\aos.c:300:37: warning: implicit declaration of function 'hal_sys_timer_calc_cpu_freq' [-Wimplicit-function-declaration] 300 | printf("sys freq calc : %u \n", hal_sys_timer_calc_cpu_freq(5, 0)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ E:\PROJECT\haas\h4\hardware\chip\haas1000\aos\aos.c: In function 'aos_init_done_hook': E:\PROJECT\haas\h4\hardware\chip\haas1000\aos\aos.c:409:5: warning: implicit declaration of function 'hal_iomux_set_jtag' [-Wimplicit-function-declaration] 409 | hal_iomux_set_jtag(); | ^~~~~~~~~~~~~~~~~~ E:\PROJECT\haas\h4\hardware\chip\haas1000\aos\aos.c:410:5: warning: implicit declaration of function 'krhino_idle_hook_onoff'; did you mean 'krhino_idle_hook'? [-Wimplicit-function-declaration] 410 | krhino_idle_hook_onoff(0); | ^~~~~~~~~~~~~~~~~~~~~~ | krhino_idle_hook E:\PROJECT\haas\h4\hardware\chip\haas1000\aos\aos.c:415:5: warning: implicit declaration of function 'bes_kv_init' [-Wimplicit-function-declaration] 415 | bes_kv_init(); | ^~~~~~~~~~~ CC out\i2c\src\i2c_dev.o E:\PROJECT\haas\h4\hardware\chip\haas1000\aos\aos.c: In function 'sys_thread_exit': E:\PROJECT\haas\h4\hardware\chip\haas1000\aos\aos.c:447:5: warning: implicit declaration of function 'osThreadExitPub' [-Wimplicit-function-declaration] 447 | osThreadExitPub(); | ^~~~~~~~~~~~~~~ E:\PROJECT\haas\h4\hardware\chip\haas1000\aos\aos.c: In function 'a7_dsp_reboot': E:\PROJECT\haas\h4\hardware\chip\haas1000\aos\aos.c:457:5: warning: implicit declaration of function 'transq_msg_flush' [-Wimplicit-function-declaration] 457 | transq_msg_flush(); | ^~~~~~~~~~~~~~~~ E:\PROJECT\haas\h4\hardware\chip\haas1000\aos\aos.c:459:5: warning: implicit declaration of function 'af_stream_stop' [-Wimplicit-function-declaration] 459 | af_stream_stop(AUD_STREAM_ID_0, AUD_STREAM_CAPTURE); | ^~~~~~~~~~~~~~ E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\audio.c: In function 'codec_pcm_stream_open': E:\PROJECT\haas\h4\hardware\chip\haas1000\aos\aos.c:460:5: E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\audio.c:215:30:warning: implicit declaration of function 'E:\PROJECT\haas\h4\hardware\arch\armv8m\common\panic_c.c: In function 'af_stream_close panicShowRegs data_dump_open': -Wimplicit-function-declaration' [] 460 | -Wimplicit-function-declarationaf_stream_closeE:\PROJECT\haas\h4\hardware\arch\armv8m\common\panic_c.c:108:9:] 215 | capture_stream_hdl = (AUD_STREAM_ID_0, AUD_STREAM_CAPTURE); | data_dump_open ^~~~~~~~~~~~~~~(aud_record_subscribe, _kfifo_len / 1024, sampleRate, 0); | warning: ^~~~~~~~~~~~~~implicit declaration of function ' memcpy' [E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\audio.c:215:28:-Wimplicit-function-declaration ] 108 | warning: memcpyassignment to 'CC out\i2c\src\i2c_core.o (&s_panic_regs[0], &s_panic_ctx[x * REG_NAME_WIDTH], pcm_stream_handler_t^~~~~~' {aka ' void *'} from 'E:\PROJECT\haas\h4\hardware\arch\armv8m\common\panic_c.c:108:9: int' makes pointer from integer without a cast [warning: incompatible implicit declaration of built-in function '-Wint-conversionmemcpy] 215 | capture_stream_hdl ' = data_dump_open(aud_record_subscribe, _kfifo_len / 1024, sampleRate, 0); | E:\PROJECT\haas\h4\hardware\arch\armv8m\common\panic_c.c:6:1:^ note: include '' or provide a declaration of 'memcpy' 5 | #include +++ |+#include 6 | E:\PROJECT\haas\h4\hardware\arch\armv8m\common\panic_c.c:111:9: warning: implicit declaration of function 'E:\PROJECT\haas\h4\hardware\chip\haas1000\aos\aos.c:464:5:k_int2str ' [warning: E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\audio.c: In function '] 111 | codec_pcm_stream_start ': (regs[x], &s_panic_regs[REG_NAME_WIDTH + 3]); | E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\audio.c:236:9:] 464 | transq_msg_reinitwarning: (); | ^~~~~~~~~~~~~~~~~data_dump_start warning: ] 236 | incompatible implicit declaration of built-in function ' memcpy(hdl); | ' 125 | ^~~~~~~~~~~~~~~memcpy (&s_panic_regs[0], &s_panic_reg[x * REG_NAME_WIDTH], | ^~~~~~ E:\PROJECT\haas\h4\hardware\arch\armv8m\common\panic_c.c:125:9: note: include '' or provide a declaration of 'memcpy' E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\audio.c: In function 'codec_pcm_stream_read': E:\PROJECT\haas\h4\hardware\chip\haas1000\aos\aos.c:465:5:E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\audio.c:275:19: warning: warning: implicit declaration of function 'implicit declaration of function 'heartbeat_initdata_dump_read' [ -Wimplicit-function-declaration-Wimplicit-function-declaration] 465 | ] 275 | heartbeat_initdata_dump_read(); | (hdl, tempBuf, len * channel_num); | ^~~~~~~~~~~~~~ E:\PROJECT\haas\h4\hardware\chip\haas1000\aos\aos.c:467:5: warning: implicit declaration of function 'a7_dsp_boot'; did you mean 'a7_dsp_reboot'? [E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\audio.c: ] 467 | ': (); | ^~~~~~~~~~~E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\audio.c:343:9: | warning: a7_dsp_reboot implicit declaration of function 'data_dump_stop' [-Wimplicit-function-declaration] 343 | data_dump_stop(hdl); | ^~~~~~~~~~~~~~ E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\audio.c: In function 'codec_pcm_stream_close': E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\audio.c:360:9: warning: implicit declaration of function 'data_dump_close' [-Wimplicit-function-declaration] 360 | data_dump_close(hdl, aud_record_unsubscribe); | ^~~~~~~~~~~~~~~ E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\audio.c: At top level: E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\audio.c:387:13: warning: initialization of 'void * (*)(int, int, int, int, void **)' from incompatible pointer type 'void * (*)(int, int, int, pcm_stream_format_t, void **)' [-Wincompatible-pointer-types] 387 | .open = codec_pcm_stream_open, | ^~~~~~~~~~~~~~~~~~~~~ E:\PROJECT\haas\h4\hardware\chip\haas1000\hal\audio.c:387:13: note: (near initialization for 'codec_pcm_ops.open') CC out\i2c\src\i2c.o CC out\i2c\example\i2c_example.o CC out\spi\src\spi_dev.o CC out\spi\src\spi.o CC out\gpio\src\gpio_dev.o AR aos_sdk\lib\libhaas1000.a CC out\gpio\src\gpioc.o E:\PROJECT\haas\h4\components\drivers\peripheral\i2c\example\i2c_example.c: In function 'vfs_i2c_test': E:\PROJECT\haas\h4\components\drivers\peripheral\i2c\example\i2c_example.c:21:10: warning: implicit declaration of function 'open'; did you mean 'popen'? [-Wimplicit-function-declaration] 21 | fd = open(name, 0); | ^~~~ | popen E:\PROJECT\haas\h4\components\drivers\peripheral\i2c\example\i2c_example.c:31:11: warning: implicit declaration of function 'ioctl' [RANLIB aos_sdk\lib\libhaas1000.a -Wimplicit-function-declaration] 31 | ret = ioctl(fd, IOC_I2C_SET_CONFIG, (unsigned long)&c); | CC out\gpio\src\gpioc_csi.o ^~~~~ E:\PROJECT\haas\h4\components\drivers\peripheral\i2c\example\i2c_example.c:34:9: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] 34 | close(fd); | ^~~~~ | pclose CC out\uart\src\uart_dev.o CC out\uart\src\tty.o E:\PROJECT\haas\h4\components\drivers\peripheral\spi\src\spi_dev.c: In function 'spi_device_poll': E:\PROJECT\haas\h4\components\drivers\peripheral\spi\src\spi_dev.c:442:34: warning: passing argument 2 of 'hal_spi_recv_cb_reg' from incompatible pointer type [-Wincompatible-pointer-types] 442 | hal_spi_recv_cb_reg(spi, spi_rx_notify); | ^~~~~~~~~~~~~ | | | int (*)(spi_dev_t *) E:\PROJECT\haas\h4\components\drivers\peripheral\spi\src\spi_dev.c:33:58: note: expected 'spi_rx_cb' {aka 'int (*)(void *)'} but argument is of type 'int (*)(spi_dev_t *)' 33 | __weak int hal_spi_recv_cb_reg(spi_dev_t *spi, spi_rx_cb cb) { | ~~~~~~~~~~^~ CC out\pwm\src\pwm_dev.o CC out\pwm\src\pwm.o AR aos_sdk\lib\libarmv8m.a CC out\pwm\src\pwm_csi.o RANLIB aos_sdk\lib\libarmv8m.a CC out\adc\src\adc_dev.o CC out\timer\src\timer_dev.o CC out\watchdog\src\wdg_dev.o CC out\watchdog\src\wdg_core.o AR aos_sdk\lib\libi2c.a RANLIB aos_sdk\lib\libi2c.a CC out\init\aos_init.o CC out\test_demo\maintask.o E:\PROJECT\haas\h4\components\drivers\peripheral\watchdog\src\wdg_dev.c:155:16: warning: initialization of 'int (*)(struct u_platform_device *, int)' from incompatible pointer type 'int (*)(struct u_platform_device *, u_pm_ops_t)' {aka 'int (*)(struct u_platform_device *, struct u_pm_ops)'} [-Wincompatible-pointer-types] 155 | .suspend = wdg_device_suspend, | ^~~~~~~~~~~~~~~~~~ E:\PROJECT\haas\h4\components\drivers\peripheral\watchdog\src\wdg_dev.c:155:16: note: (near initialization for 'wdg_device_drv.suspend') AR aos_sdk\lib\libpwm.a AR aos_sdk\lib\libgpio.a AR aos_sdk\lib\libspi.a C:\Users\XuYJ\.aliot\arm-ali-aoseabi\main\bin\arm-ali-aoseabi-ar.exe: could not create temporary file whilst writing archive: no more archived files C:\Users\XuYJ\.aliot\arm-ali-aoseabi\main\bin\arm-ali-aoseabi-ar.exe: unable to rename 'aos_sdk\lib\libgpio.a'; reason: No such file or directory RANLIB aos_sdk\lib\libpwm.a CC out\test_demo\amp_entry.o CC out\select\poll\poll.o CC out\select\select\select.o E:\PROJECT\haas\h4\components\init\aos_init.c: In function 'aos_components_init': E:\PROJECT\haas\h4\components\init\aos_init.c:256:5: warning: implicit declaration of function 'uagent_init' [-Wimplicit-function-declaration] 256 | uagent_init(); | ^~~~~~~~~~~ CC out\ota\hal\ota_hal_fs_plat.o In file included from maintask.c:9: E:\PROJECT\haas\h4\hardware\board\haas100\config/board.h:5: warning: "DEBUG_LASTWORD_RAM_ADDR" redefined 5 | #define DEBUG_LASTWORD_RAM_ADDR 0x20166000 | : note: this is the location of the previous definition In file included from amp_entry.c:6: E:\PROJECT\haas\h4\hardware\board\haas100\config/board.h:5: warning: "DEBUG_LASTWORD_RAM_ADDR" redefined 5 | #define DEBUG_LASTWORD_RAM_ADDR 0x20166000 | : note: this is the location of the previous definition CC out\ota\hal\ota_hal_vfs_param.o scons: *** [aos_sdk\lib\libgpio.a] Error 1 scons: *** [aos_sdk\lib\libspi.a] Error 1 amp_entry.c: In function 'application_start': amp_entry.c:19:5: warning: implicit declaration of function 'event_service_init' [-Wimplicit-function-declaration] 19 | event_service_init(NULL); | ^~~~~~~~~~~~~~~~~~ amp_entry.c:21:45: warning: passing argument 3 of 'aos_task_new_ext' from incompatible pointer type [-Wincompatible-pointer-types] 21 | aos_task_new_ext(&_task, "amp_task", amp_main, NULL, 8192, AOS_DEFAULT_APP_PRI - 2); | ^~~~~~~~ | | | int (*)(void) In file included from amp_entry.c:8: E:\PROJECT\haas\h4\components\osal_aos\include/aos/kernel.h:1113:74: note: expected 'void (*)(void *)' but argument is of type 'int (*)(void)' 1113 | aos_status_t aos_task_new_ext(aos_task_t *task, const char *name, void (*fn)(void *), | ~~~~~~~^~~~~~~~~~~ scons: building terminated because of errors. make: *** [all] Error 2 Build takes 1 Minutes 1 Seconds. 终端将被任务重用,按任意键关闭。
qisheng-seu commented 2 years ago

亲,请核实你创建的工程配置是否和下图一致? image image

skylarCai commented 2 years ago

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,我们会尽快回复您。