ai-thinker-open / ai-thinker-wb2 Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
mqtt wss demo运行不起来, 自己写的demo不测试就发出来吗,还是商业版的产品。 果断放弃了 07s的使用
Hello,
I am trying to run the applications/protocols/http_server/simple_server code by following the instructions at (https://github.com/Ai-Thinker-Open/Ai-Thinker-WB2/tree/main/applications/protocols/http_server/simple_server) on a Ai-WB2-12F-Kit, and am getting the follow error when I run make -j8 in Ubuntu.
LD build_out/main.elf
/home/john/Ai-Thinker-WB2/toolchain/riscv/Linux/bin/../lib/gcc/riscv64-unknown-elf/10.2.0/../../../../riscv64-unknown-elf/bin/ld: /home/john/Ai-Thinker-WB2/components/network/wifi/lib/libwifi.a(hal_machw.o): in function hal_machw_init': /home/blxu/customer/aithinker/source_bliu_aithinker_iot_stable/components/network/wifi/ip/lmac/src/hal/hal_machw.c:351: undefined reference to
g_bl_ops_funcs'
/home/john/Ai-Thinker-WB2/toolchain/riscv/Linux/bin/../lib/gcc/riscv64-unknown-elf/10.2.0/../../../../riscv64-unknown-elf/bin/ld: /home/blxu/customer/aithinker/source_bliu_aithinker_iot_stable/components/network/wifi/ip/lmac/src/hal/hal_machw.c:351: undefined reference to g_bl_ops_funcs' /home/john/Ai-Thinker-WB2/toolchain/riscv/Linux/bin/../lib/gcc/riscv64-unknown-elf/10.2.0/../../../../riscv64-unknown-elf/bin/ld: /home/john/Ai-Thinker-WB2/components/network/wifi/lib/libwifi.a(mm.o): in function
element_notify_status_enabled':
/home/blxu/customer/aithinker/source_bliu_aithinker_iot_stable/components/network/wifi/ip/lmac/src/mm/mm.c:1818: undefined reference to g_bl_ops_funcs' /home/john/Ai-Thinker-WB2/toolchain/riscv/Linux/bin/../lib/gcc/riscv64-unknown-elf/10.2.0/../../../../riscv64-unknown-elf/bin/ld: /home/blxu/customer/aithinker/source_bliu_aithinker_iot_stable/components/network/wifi/ip/lmac/src/mm/mm.c:1818: undefined reference to
g_bl_ops_funcs'
/home/john/Ai-Thinker-WB2/toolchain/riscv/Linux/bin/../lib/gcc/riscv64-unknown-elf/10.2.0/../../../../riscv64-unknown-elf/bin/ld: /home/john/Ai-Thinker-WB2/components/network/wifi/lib/libwifi.a(mm.o): in function element_notify_time_last_received_set': /home/blxu/customer/aithinker/source_bliu_aithinker_iot_stable/components/network/wifi/ip/lmac/src/mm/mm.c:1825: undefined reference to
g_bl_ops_funcs'
/home/john/Ai-Thinker-WB2/toolchain/riscv/Linux/bin/../lib/gcc/riscv64-unknown-elf/10.2.0/../../../../riscv64-unknown-elf/bin/ld: /home/john/Ai-Thinker-WB2/components/network/wifi/lib/libwifi.a(mm.o):/home/blxu/customer/aithinker/source_bliu_aithinker_iot_stable/components/network/wifi/ip/lmac/src/mm/mm.c:1825: more undefined references to `g_bl_ops_funcs' follow
collect2: error: ld returned 1 exit status
make: *** [/home/john/Ai-Thinker-WB2/applications/protocols/http_server/simple_server/../../../../make_scripts_riscv/project.mk:483: /home/john/Ai-Thinker-WB2/applications/protocols/http_server/simple_server/build_out/main.elf] Error 1
Can anyone point me in the right direction?
Thank you!
John
头文件中,axk_event_handler_t实际是void*,使用axk_mqtt_client_register_event注册后,其如何接收参数?
#ifndef AXK_EVENT_DECLARE_BASE
// Define event loop types if macros not available
typedef void *axk_event_loop_handle_t;
typedef void *axk_event_handler_t;
#endif
收到串口消息后,通过TcpClient转发到服务器
有点慢
不如使用
git submodule update --init
根据官方环境搭建指导(https://aithinker.blog.csdn.net/article/details/125604649),编译碰到这个问题,试过一些方法,例如apt-get install gcc-g++,等,没有解决,请问谁能给些帮助?谢谢!
de@z:/data/repos/wifible/Ai-Thinker-WB2/applications/bluetooth/ble_master$ ./genromap
****** Please SET BL60X_SDK_PATH ******
****** Trying SDK PATH [/data/repos/wifible/Ai-Thinker-WB2/applications/bluetooth/ble_master/../../..]
Your configuration chipname is Ai-Thinker Ai-WB2 Wi-Fi&BLE Module
AS build_out/bl602/evb/src/boot/gcc/entry.o
AS build_out/bl602/evb/src/boot/gcc/start.o
CC build_out/bl_os_adapter/bl_os_adapter/bl_os_hal.o
CC build_out/bl602/evb/src/strntoumax.o
CC build_out/bl602/evb/src/debug.o
CC build_out/bl602/bfl_main.o
CC build_out/blcrypto_suite/src/blcrypto_suite_bignum.o
CC build_out/bl602_std/bl602_std/StdDriver/Src/bl602_uart.o
CC build_out/bl602_std/bl602_std/StdDriver/Src/bl602_adc.o
CC build_out/blcrypto_suite/src/blcrypto_suite_ecp.o
riscv64-unknown-elf-gcc: fatal error: cannot execute 'cc1': execvp: No such file or directory
riscv64-unknown-elf-gcc: fatal error: cannot execute 'cc1': execvp: No such file or directory
compilation terminated.
compilation terminated.
CC build_out/ble_master/ble_central_api.o
make[1]: *** [/data/repos/wifible/Ai-Thinker-WB2/make_scripts_riscv/component_wrapper.mk:313: evb/src/boot/gcc/entry.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [/data/repos/wifible/Ai-Thinker-WB2/make_scripts_riscv/component_wrapper.mk:313: evb/src/boot/gcc/start.o] Error 1
riscv64-unknown-elf-gcc: fatal error: cannot execute 'cc1': execvp: No such file or directory
compilation terminated.
make[1]: *** [/data/repos/wifible/Ai-Thinker-WB2/make_scripts_riscv/component_wrapper.mk:313: bl_os_adapter/bl_os_hal.o] Error 1
riscv64-unknown-elf-gcc: fatal error: cannot execute 'cc1': execvp: No such file or directory
compilation terminated.
make: *** [/data/repos/wifible/Ai-Thinker-WB2/applications/bluetooth/ble_master/../../../make_scripts_riscv/project.mk:577: component-bl_os_adapter-build] Error 2
make: *** Waiting for unfinished jobs....
make[1]: *** [/data/repos/wifible/Ai-Thinker-WB2/make_scripts_riscv/component_wrapper.mk:313: evb/src/debug.o] Error 1
问题简述,demo_ir项目的红外发射针脚 无输出或者说输出异常无法使用。
demo_ir项目默认的发射引脚是GPIO11,初始化模式是GPIO_FUN_ANALOG,
IO11 GPIO11/SPI_SCLK/IIC_SDA/ADC_CH10
将此IR_PIN_TX引脚换成16,5,都依旧没有输出,或者说电压极低。
我试了一个红外led以及一个接了3v电源的模块,将信号输入端接到电源3v,led在手机摄像头下可以看到微弱的光,确认红外led是完好的。
接收引脚功能正常。
git clone project && cd applications/get-started/helloworld
make -j8
Your configuration chipname is Ai-Thinker Ai-WB2 Wi-Fi&BLE Module
AS build_out/bl602/evb/src/boot/gcc/entry.o
AS build_out/bl602/evb/src/boot/gcc/start.o
CC build_out/bl602_std/bl602_std/StdDriver/Src/bl602_uart.o
CC build_out/blfdt/src/fdt.o
CC build_out/bl602/evb/src/debug.o
CC build_out/blmtd/bl_mtd.o
CC build_out/blog/blog.o
CC build_out/blog_testc/blog_testc.o
CC build_out/blog_testc/blog_testc1_diable.o
CC build_out/bl602_std/bl602_std/StdDriver/Src/bl602_adc.o
CC build_out/bloop/src/bloop_base.o
AR build_out/blmtd/libblmtd.a
CC build_out/blfdt/src/fdt_ro.o
AR build_out/blog/libblog.a
CC build_out/blog_testc/blog_testc2_full.o
CC CC build_out/bl602/evb/src/strntoumax.o
build_out/blfdt/src/fdt_wip.o
CC build_out/bltime/bl_sys_time.o
CC build_out/blog_testc/blog_testc3_nopri.o
CC build_out/bloop/src/bloop_handler_sys.o
CC build_out/bl602/bfl_main.o
CC build_out/bltime/bl_sys_time_cli.o
CC build_out/cli/cli/cli.o
AR build_out/bloop/libbloop.a
CC build_out/blog_testc/blog_testc4_onlypri.o
CC build_out/coredump/bl_coredump.o
CC build_out/blfdt/src/fdt_sw.o
CC build_out/bl602_std/bl602_std/StdDriver/Src/bl602_sec_eng.o
AR build_out/bltime/libbltime.a
CC build_out/blfdt/src/fdt_rw.o
AR build_out/blog_testc/libblog_testc.a
CC build_out/bl602_std/bl602_std/StdDriver/Src/bl602_dma.o
AR build_out/bl602/libbl602.a
CC build_out/blfdt/src/fdt_strerror.o
CC build_out/bl602_std/bl602_std/StdDriver/Src/bl602_common.o
AR build_out/coredump/libcoredump.a
CC build_out/blfdt/src/fdt_empty_tree.o
CC build_out/bl602_std/bl602_std/StdDriver/Src/bl602_glb.o
CC build_out/freertos_riscv_ram/event_groups.o
CC build_out/bl602_std/bl602_std/StdDriver/Src/bl602_hbn.o
CC build_out/freertos_riscv_ram/list.o
CC build_out/helloworld/main.o
CC build_out/blfdt/src/fdt_addresses.o
CC build_out/freertos_riscv_ram/queue.o
AR build_out/helloworld/libhelloworld.a
CC build_out/bl602_std/bl602_std/StdDriver/Src/bl602_timer.o
CC build_out/hosal/bl602_hal/bl_uart.o
CC build_out/blfdt/src/fdt_overlay.o
CC build_out/freertos_riscv_ram/stream_buffer.o
AR build_out/cli/libcli.a
CC build_out/hosal/bl602_hal/bl_chip.o
CC build_out/bl602_std/bl602_std/StdDriver/Src/bl602_aon.o
CC build_out/blfdt/test/tc_blfdt_dump.o
CC build_out/hosal/bl602_hal/bl_cks.o
CC build_out/looprt/src/looprt.o
CC build_out/freertos_riscv_ram/tasks.o
CC build_out/blfdt/test/tc_blfdt_wifi.o
CC build_out/looprt/src/looprt_test_cli.o
CC build_out/bl602_std/bl602_std/StdDriver/Src/bl602_pds.o
CC build_out/blfdt/test/blfdt_cli_test.o
CC build_out/loopset/src/loopset_led.o
AR build_out/looprt/liblooprt.a
CC build_out/bl602_std/bl602_std/StdDriver/Src/bl602_pwm.o
CC build_out/hosal/bl602_hal/bl_sys.o
CC build_out/freertos_riscv_ram/timers.o
CC build_out/bl602_std/bl602_std/StdDriver/Src/bl602_l1c.o
AR build_out/blfdt/libblfdt.a
CC build_out/hosal/bl602_hal/bl_sys_cli.o
CC build_out/loopset/src/loopset_led_cli.o
CC build_out/freertos_riscv_ram/misaligned/misaligned_ldst.o
CC build_out/loopset/src/loopset_ir.o
CC build_out/bl602_std/bl602_std/StdDriver/Src/bl602_ef_ctrl.o
CC build_out/lwip/lwip-port/FreeRTOS/ethernetif.o
CC build_out/mbedtls_lts/mbedtls/library/xtea.o
CC build_out/hosal/bl602_hal/bl_dma.o
CC build_out/hosal/bl602_hal/bl_irq.o
CC build_out/newlibc/syscalls.o
CC build_out/mbedtls_lts/mbedtls/library/aes.o
CC build_out/loopset/src/loopset_pwm.o
CC build_out/lwip/lwip-port/FreeRTOS/sys_arch.o
AR build_out/loopset/libloopset.a
CC build_out/bl602_std/bl602_std/StdDriver/Src/bl602_mfg_efuse.o
CC build_out/newlibc/assert.o
AR build_out/newlibc/libnewlibc.a
CC build_out/mbedtls_lts/mbedtls/library/aesni.o
CC build_out/lwip/src/api/api_lib.o
AS build_out/freertos_riscv_ram/misaligned/fp_asm.o
CC build_out/hosal/bl602_hal/bl_sec.o
CC build_out/bl602_std/bl602_std/StdDriver/Src/bl602_mfg_flash.o
CC build_out/romfs/src/bl_romfs.o
CC build_out/lwip/src/api/api_msg.o
CC build_out/freertos_riscv_ram/panic/panic_c.o
CC build_out/bl602_std/bl602_std/StdDriver/Src/bl602_mfg_media.o
CC build_out/hosal/bl602_hal/bl_ir.o
CC build_out/mbedtls_lts/mbedtls/library/arc4.o
CC build_out/mbedtls_lts/mbedtls/library/aria.o
CC build_out/utils/src/utils_hex.o
CC build_out/freertos_riscv_ram/portable/GCC/RISC-V/port.o
CC build_out/mbedtls_lts/mbedtls/library/asn1parse.o
AS build_out/freertos_riscv_ram/portable/GCC/RISC-V/portASM.o
CC build_out/utils/src/utils_crc.o
CC build_out/freertos_riscv_ram/portable/MemMang/heap_5.o
CC build_out/bl602_std/bl602_std/StdDriver/Src/bl602_dac.o
CC build_out/vfs/src/vfs.o
CC build_out/utils/src/utils_sha256.o
CC build_out/mbedtls_lts/mbedtls/library/asn1write.o
AR build_out/freertos_riscv_ram/libfreertos_riscv_ram.a
CC build_out/lwip/src/api/err.o
CC build_out/bl602_std/bl602_std/StdDriver/Src/bl602_ir.o
AR build_out/romfs/libromfs.a
CC build_out/utils/src/utils_fec.o
CC build_out/hosal/bl602_hal/bl_boot2.o
CC build_out/bl602_std/bl602_std/StdDriver/Src/bl602_spi.o
CC build_out/vfs/src/vfs_file.o
CC build_out/hosal/bl602_hal/bl_timer.o
CC build_out/mbedtls_lts/mbedtls/library/base64.o
CC build_out/lwip/src/api/if_api.o
CC build_out/yloop/src/yloop.o
CC build_out/vfs/src/vfs_inode.o
CC build_out/hosal/bl602_hal/bl_hbn.o
CC build_out/lwip/src/api/netbuf.o
CC build_out/mbedtls_lts/mbedtls/library/blowfish.o
CC build_out/utils/src/utils_log.o
CC build_out/mbedtls_lts/mbedtls/library/camellia.o
CC build_out/mbedtls_lts/mbedtls/library/ccm.o
CC build_out/vfs/src/vfs_register.o
CC build_out/yloop/src/select.o
CC build_out/hosal/bl602_hal/bl_efuse.o
CC build_out/mbedtls_lts/mbedtls/library/certs.o
CC build_out/lwip/src/api/netdb.o
CC build_out/bl602_std/bl602_std/StdDriver/Src/bl602_i2c.o
CC build_out/mbedtls_lts/mbedtls/library/chacha20.o
CC build_out/mbedtls_lts/mbedtls/library/chachapoly.o
CC build_out/vfs/device/vfs_uart.o
CC build_out/mbedtls_lts/mbedtls/library/cipher.o
CC build_out/hosal/bl602_hal/bl_flash.o
CC build_out/yloop/src/aos_freertos.o
CC build_out/lwip/src/api/netifapi.o
CC build_out/utils/src/utils_dns.o
CC build_out/vfs/device/vfs_adc.o
CC build_out/utils/src/utils_list.o
CC build_out/bl602_std/bl602_std/StdDriver/Src/bl602_sdu.o
CC build_out/lwip/src/api/sockets.o
CC build_out/mbedtls_lts/mbedtls/library/cipher_wrap.o
CC build_out/utils/src/utils_ringblk.o
CC build_out/hosal/bl602_hal/bl_gpio.o
CC build_out/vfs/device/vfs_spi.o
CC build_out/bl602_std/bl602_std/Common/soft_crc/softcrc.o
CC build_out/yloop/src/device.o
CC build_out/lwip/src/api/tcpip.o
CC build_out/mbedtls_lts/mbedtls/library/cmac.o
CC build_out/bl602_std/bl602_std/Common/xz/xz_crc32.o
CC build_out/vfs/device/vfs_gpio.o
CC build_out/mbedtls_lts/mbedtls/library/constant_time.o
CC build_out/hosal/bl602_hal/bl_gpio_cli.o
CC build_out/bl602_std/bl602_std/Common/xz/xz_dec_lzma2.o
CC build_out/yloop/src/local_event.o
CC build_out/vfs/device/vfs_pwm.o
CC build_out/utils/src/utils_rbtree.o
CC build_out/hosal/bl602_hal/hal_gpio.o
CC build_out/bl602_std/bl602_std/Common/xz/xz_dec_stream.o
AR build_out/yloop/libyloop.a
CC build_out/utils/src/utils_hexdump.o
AR build_out/vfs/libvfs.a
CC build_out/mbedtls_lts/mbedtls/library/ctr_drbg.o
CC build_out/lwip/src/apps/altcp_tls/altcp_tls_mbedtls.o
CC build_out/bl602_std/bl602_std/Common/xz/xz_decompress.o
CC build_out/hosal/bl602_hal/hal_button.o
CC build_out/utils/src/utils_time.o
CC build_out/mbedtls_lts/mbedtls/library/debug.o
CC CC build_out/hosal/bl602_hal/bl_pwm.o
build_out/lwip/src/apps/altcp_tls/altcp_tls_mbedtls_mem.o
CC build_out/utils/src/utils_notifier.o
CC build_out/bl602_std/bl602_std/Common/xz/xz_port.o
CC build_out/utils/src/utils_getopt.o
CC build_out/hosal/bl602_hal/bl_sec_aes.o
CC build_out/lwip/src/core/altcp.o
CC build_out/lwip/src/core/altcp_alloc.o
CC build_out/utils/src/utils_string.o
CC build_out/bl602_std/bl602_std/Common/cipher_suite/src/bflb_crypt.o
CC build_out/mbedtls_lts/mbedtls/library/des.o
CC build_out/mbedtls_lts/mbedtls/library/dhm.o
CC build_out/hosal/bl602_hal/bl_wifi.o
CC build_out/bl602_std/bl602_std/Common/cipher_suite/src/bflb_hash.o
CC build_out/bl602_std/bl602_std/Common/cipher_suite/src/bflb_dsa.o
CC build_out/utils/src/utils_hmac_sha1_fast.o
CC build_out/lwip/src/core/altcp_tcp.o
CC build_out/mbedtls_lts/mbedtls/library/ecdh.o
CC build_out/utils/src/utils_psk_fast.o
CC build_out/hosal/bl602_hal/bl_wdt.o
CC build_out/mbedtls_lts/mbedtls/library/ecdsa.o
CC build_out/lwip/src/core/def.o
CC build_out/hosal/bl602_hal/bl_wdt_cli.o
CC build_out/bl602_std/bl602_std/Common/cipher_suite/src/bflb_ecdsa.o
CC build_out/utils/src/utils_memp.o
CC build_out/lwip/src/core/dns.o
CC build_out/hosal/bl602_hal/bl_clocktree.o
CC build_out/bl602_std/bl602_std/Common/platform_print/platform_device.o
CC build_out/utils/src/utils_tlv_bl.o
CC build_out/lwip/src/core/inet_chksum.o
CC build_out/utils/src/utils_base64.o
CC build_out/mbedtls_lts/mbedtls/library/ecjpake.o
CC build_out/hosal/bl602_hal/hal_boot2.o
CC build_out/mbedtls_lts/mbedtls/library/ecp.o
CC build_out/bl602_std/bl602_std/Common/platform_print/platform_gpio.o
CC build_out/hosal/bl602_hal/hal_sys.o
CC build_out/utils/src/utils_bitmap_window.o
CC build_out/lwip/src/core/init.o
CC build_out/mbedtls_lts/mbedtls/library/ecp_curves.o
CC build_out/utils/src/test/test_utils_base64.o
CC build_out/hosal/bl602_hal/hal_board.o
CC build_out/lwip/src/core/ip.o
CC build_out/bl602_std/bl602_std/Common/ring_buffer/ring_buffer.o
/Volumes/data/workspace/github.com/ai-wb2/Ai-Thinker-WB2/components/platform/hosal/bl602_hal/hal_sys.c: In function 'hal_sys_romapi_get':
/Volumes/data/workspace/github.com/ai-wb2/Ai-Thinker-WB2/components/platform/hosal/bl602_hal/hal_sys.c:69:65: warning: array subscript 88 is outside array bounds of 'uint8_t[1]' {aka 'unsigned char[1]'} [-Warray-bounds]
69 | *(gp_data_start + 0) = (uint32_t)((uint8_t*)(gp_data_start) + 0x58);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
/Volumes/data/workspace/github.com/ai-wb2/Ai-Thinker-WB2/components/platform/hosal/bl602_hal/hal_sys.c:58:20: note: while referencing '__global_pointer_head$'
58 | extern uint8_t __global_pointer_head$;
| ^~~~~~~~~~~~~~~~~~~~~~
/Volumes/data/workspace/github.com/ai-wb2/Ai-Thinker-WB2/components/platform/hosal/bl602_hal/hal_sys.c:71:65: warning: array subscript 96 is outside array bounds of 'uint8_t[1]' {aka 'unsigned char[1]'} [-Warray-bounds]
71 | *(gp_data_start + 1) = (uint32_t)((uint8_t*)(gp_data_start) + 0x60);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
/Volumes/data/workspace/github.com/ai-wb2/Ai-Thinker-WB2/components/platform/hosal/bl602_hal/hal_sys.c:58:20: note: while referencing '__global_pointer_head$'
58 | extern uint8_t __global_pointer_head$;
| ^~~~~~~~~~~~~~~~~~~~~~
/Volumes/data/workspace/github.com/ai-wb2/Ai-Thinker-WB2/components/platform/hosal/bl602_hal/hal_sys.c:71:5: warning: array subscript 1 is outside array bounds of 'uint8_t[1]' {aka 'unsigned char[1]'} [-Warray-bounds]
71 | *(gp_data_start + 1) = (uint32_t)((uint8_t*)(gp_data_start) + 0x60);
| ^~~~~~~~~~~~~~~~~~~~
/Volumes/data/workspace/github.com/ai-wb2/Ai-Thinker-WB2/components/platform/hosal/bl602_hal/hal_sys.c:58:20: note: while referencing '__global_pointer_head$'
58 | extern uint8_t __global_pointer_head$;
| ^~~~~~~~~~~~~~~~~~~~~~
/Volumes/data/workspace/github.com/ai-wb2/Ai-Thinker-WB2/components/platform/hosal/bl602_hal/hal_sys.c:73:5: warning: array subscript 2 is outside array bounds of 'uint8_t[1]' {aka 'unsigned char[1]'} [-Warray-bounds]
73 | *(gp_data_start + 2) = 32 * 1000 / 1000;//Use 32K
| ^~~~~~~~~~~~~~~~~~~~
/Volumes/data/workspace/github.com/ai-wb2/Ai-Thinker-WB2/components/platform/hosal/bl602_hal/hal_sys.c:58:20: note: while referencing '__global_pointer_head$'
58 | extern uint8_t __global_pointer_head$;
| ^~~~~~~~~~~~~~~~~~~~~~
/Volumes/data/workspace/github.com/ai-wb2/Ai-Thinker-WB2/components/platform/hosal/bl602_hal/hal_sys.c:66:21: warning: array subscript 1116 is outside array bounds of 'uint8_t[1]' {aka 'unsigned char[1]'} [-Warray-bounds]
66 | romapi_freertos = (struct romapi_freertos_map*) (((uint8_t*)gp_data_start) + 0x45c);
| ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Volumes/data/workspace/github.com/ai-wb2/Ai-Thinker-WB2/components/platform/hosal/bl602_hal/hal_sys.c:58:20: note: while referencing '__global_pointer_head$'
58 | extern uint8_t __global_pointer_head$;
| ^~~~~~~~~~~~~~~~~~~~~~
CC build_out/utils/src/test/test_utils_ringblk.o
CC build_out/mbedtls_lts/mbedtls/library/entropy.o
CC build_out/utils/src/test/test_utils_bitmap_window.o
CC build_out/lwip/src/core/ipv4/autoip.o
CC build_out/bl602_std/bl602_std/RISCV/Device/Bouffalo/BL602/Startup/interrupt.o
CC build_out/hosal/bl602_hal/hal_ir.o
CC build_out/lwip/src/core/ipv4/dhcp.o
CC build_out/mbedtls_lts/mbedtls/library/entropy_poll.o
CC build_out/hosal/bl602_hal/bl_adc.o
CC build_out/bl602_std/bl602_std/StdDriver/Src/bl602_romapi.o
CC build_out/lwip/src/core/ipv4/etharp.o
CC build_out/hosal/bl602_hal/bl_dac_audio.o
AR build_out/utils/libutils.a
CC build_out/mbedtls_lts/mbedtls/library/error.o
CC build_out/lwip/src/core/ipv4/icmp.o
CC build_out/bl602_std/bl602_std/StdDriver/Src/bl602_sflash_ext.o
CC build_out/mbedtls_lts/mbedtls/library/gcm.o
CC build_out/hosal/bl602_hal/bl_i2c.o
CC build_out/bl602_std/bl602_std/StdDriver/Src/bl602_sf_cfg_ext.o
CC build_out/mbedtls_lts/mbedtls/library/havege.o
CC build_out/bl602_std/bl602_std/StdDriver/Src/bl602_xip_sflash_ext.o
CC build_out/hosal/bl602_hal/bl_pm.o
CC build_out/lwip/src/core/ipv4/igmp.o
CC build_out/hosal/bl602_hal/bl_pds.o
CC build_out/mbedtls_lts/mbedtls/library/hkdf.o
CC build_out/lwip/src/core/ipv4/ip4.o
CC build_out/mbedtls_lts/mbedtls/library/hmac_drbg.o
CC build_out/mbedtls_lts/mbedtls/library/md2.o
CC build_out/hosal/bl602_hal/hosal_pwm.o
CC build_out/mbedtls_lts/mbedtls/library/md4.o
CC build_out/hosal/bl602_hal/hal_pds.o
CC build_out/mbedtls_lts/mbedtls/library/md5.o
CC CC build_out/lwip/src/core/ipv4/ip4_addr.o
build_out/mbedtls_lts/mbedtls/library/md.o
CC build_out/hosal/bl602_hal/hosal_rng.o
CC build_out/mbedtls_lts/mbedtls/library/memory_buffer_alloc.o
AR build_out/bl602_std/libbl602_std.a
CC build_out/lwip/src/core/ipv4/ip4_frag.o
CC build_out/hosal/bl602_hal/bl_rtc.o
CC build_out/lwip/src/core/mem.o
CC build_out/hosal/bl602_hal/hal_hbn.o
CC build_out/mbedtls_lts/mbedtls/library/mps_reader.o
CC build_out/hosal/bl602_hal/hal_hbnram.o
CC build_out/mbedtls_lts/mbedtls/library/mps_trace.o
CC build_out/hosal/bl602_hal/hosal_rtc.o
CC build_out/hosal/bl602_hal/hosal_gpio.o
CC build_out/mbedtls_lts/mbedtls/library/nist_kw.o
CC build_out/lwip/src/core/memp.o
CC build_out/hosal/bl602_hal/hosal_adc.o
CC build_out/lwip/src/core/netif.o
CC build_out/hosal/bl602_hal/hosal_spi.o
CC build_out/mbedtls_lts/mbedtls/library/oid.o
CC build_out/lwip/src/core/pbuf.o
CC build_out/mbedtls_lts/mbedtls/library/padlock.o
CC build_out/hosal/bl602_hal/hal_hwtimer.o
CC build_out/lwip/src/core/raw.o
CC build_out/mbedtls_lts/mbedtls/library/pem.o
CC build_out/hosal/bl602_hal/hal_wifi.o
CC build_out/lwip/src/core/stats.o
CC build_out/mbedtls_lts/mbedtls/library/pk.o
CC build_out/lwip/src/core/sys.o
CC build_out/mbedtls_lts/mbedtls/library/pkcs11.o
CC build_out/lwip/src/core/tcp.o
CC build_out/hosal/bl602_hal/hosal_wdg.o
CC build_out/mbedtls_lts/mbedtls/library/pkcs12.o
CXX build_out/hosal/platform_hal/platform_hal_device.o
CC build_out/lwip/src/core/tcp_in.o
CC build_out/hosal/bl602_hal/hosal_uart.o
CC build_out/hosal/bl602_hal/hosal_dma.o
CC build_out/mbedtls_lts/mbedtls/library/pkcs5.o
CC build_out/hosal/bl602_hal/hosal_flash.o
CC build_out/mbedtls_lts/mbedtls/library/pk_wrap.o
CC build_out/hosal/bl602_hal/hosal_dac.o
CC build_out/mbedtls_lts/mbedtls/library/pkwrite.o
CC build_out/lwip/src/core/tcp_out.o
CC build_out/hosal/bl602_hal/hosal_i2c.o
CC build_out/mbedtls_lts/mbedtls/library/platform.o
CC build_out/lwip/src/core/timeouts.o
CC build_out/mbedtls_lts/mbedtls/library/platform_util.o
CC build_out/lwip/src/core/udp.o
CC build_out/mbedtls_lts/mbedtls/library/poly1305.o
CC build_out/mbedtls_lts/mbedtls/library/ripemd160.o
CC build_out/hosal/bl602_hal/hosal_ota.o
CC CC build_out/lwip/src/core/utils.o
build_out/mbedtls_lts/mbedtls/library/rsa.o
CC build_out/hosal/bl602_hal/hosal_timer.o
CC build_out/mbedtls_lts/mbedtls/library/rsa_internal.o
CC build_out/hosal/bl602_hal/hosal_efuse.o
CC build_out/mbedtls_lts/mbedtls/library/sha1.o
CC build_out/lwip/src/netif/bridgeif.o
CC build_out/mbedtls_lts/mbedtls/library/sha256.o
CC build_out/hosal/sec_common/bl_sec_sha.o
CC build_out/lwip/src/netif/bridgeif_fdb.o
CC build_out/lwip/src/netif/ethernet.o
CC build_out/mbedtls_lts/mbedtls/library/sha512.o
CC build_out/hosal/sec_common/bl_sec_pka.o
CC build_out/lwip/src/netif/lowpan6.o
CC build_out/mbedtls_lts/mbedtls/library/ssl_cache.o
CC build_out/lwip/src/netif/lowpan6_ble.o
CC build_out/hosal/sec_common/bl_sec_aes.o
CC build_out/mbedtls_lts/mbedtls/library/ssl_ciphersuites.o
CC build_out/lwip/src/netif/lowpan6_common.o
CC build_out/mbedtls_lts/mbedtls/library/ssl_cli.o
CC build_out/lwip/src/netif/slipif.o
CC build_out/mbedtls_lts/mbedtls/library/ssl_cookie.o
CC build_out/lwip/src/netif/zepif.o
AR build_out/hosal/libhosal.a
CC build_out/mbedtls_lts/mbedtls/library/ssl_msg.o
CC build_out/mbedtls_lts/mbedtls/library/ssl_srv.o
CC build_out/mbedtls_lts/mbedtls/library/ssl_ticket.o
CC build_out/mbedtls_lts/mbedtls/library/ssl_tls13_keys.o
CC build_out/mbedtls_lts/mbedtls/library/ssl_tls.o
CC build_out/mbedtls_lts/mbedtls/library/threading.o
CC build_out/mbedtls_lts/mbedtls/library/timing.o
CC build_out/mbedtls_lts/mbedtls/library/version.o
AR build_out/lwip/liblwip.a
CC build_out/mbedtls_lts/mbedtls/library/version_features.o
CC build_out/mbedtls_lts/mbedtls/library/x509.o
CC build_out/mbedtls_lts/mbedtls/library/x509_create.o
CC build_out/mbedtls_lts/mbedtls/library/x509_crl.o
CC build_out/mbedtls_lts/mbedtls/library/x509_crt.o
CC build_out/mbedtls_lts/mbedtls/library/x509_csr.o
CC build_out/mbedtls_lts/mbedtls/library/x509write_crt.o
CC build_out/mbedtls_lts/mbedtls/library/x509write_csr.o
CC build_out/mbedtls_lts/port/pkparse.o
CC build_out/mbedtls_lts/port/mbedtls_port_mem.o
CC build_out/mbedtls_lts/port/net_sockets.o
CC build_out/mbedtls_lts/port/hw_entropy_poll.o
CC build_out/mbedtls_lts/port/bignum_ext.o
CC build_out/mbedtls_lts/mbedtls/library/bignum.o
CC build_out/mbedtls_lts/port/test_case.o
AR build_out/mbedtls_lts/libmbedtls_lts.a
LD build_out/helloworld.elf
/Volumes/data/workspace/github.com/ai-wb2/Ai-Thinker-WB2/toolchain/riscv/Darwin/bin/../lib/gcc/riscv64-unknown-elf/10.2.0/../../../../riscv64-unknown-elf/bin/ld: /Volumes/data/workspace/github.com/ai-wb2/Ai-Thinker-WB2/toolchain/riscv/Darwin/bin/../lib/gcc/riscv64-unknown-elf/10.2.0/../../../../riscv64-unknown-elf/lib/rv64imafdc/lp64d/crt0.o: in function `.L0 ':
(.text+0x38): undefined reference to `main'
macos big sur 11.6
您好,我在使用示例文件applications/protocols/mqtt/tcp出现了报错
我用的mosquitto作为MQTT服务器
BL602开发板只能接受MQTT消息,无法发送消息。
如果使用MQTT发送消息,则会在mosquitto服务器出现“Client XX disconnected due to protocol error.”
不知道是否是MQTT版本问题?
在smart config示例中,code WLAN_FW_4WAY_HANDSHAKE_ERROR_PSK_TIMEOUT_FAILURE
( value=8
) 在switch语句中被定义为了连接超时,但是实际上我发现在密码错误的时候也会报这个错,而且在 bl60x_wifi_driver/bl_rx.c
文件的 sm_reason_list
字段定义中,code WLAN_FW_4WAY_HANDSHAKE_ERROR_PSK_TIMEOUT_FAILURE
的错误消息也是 Passwd error, 4-way handshake timeout
,这个是否是示例错误;
你好,我想把Ai-Thinker-WB2的blog日志的串口的端口号改了.不占用默认的.请问怎么改!
#define CONFIG_AXK_TLS_SKIP_SERVER_CERT_VERIFY 1 //允许跳过服务器证书校验
使能 CONFIG_AXK_TLS_SKIP_SERVER_CERT_VERIFY 后不配置证书,即:.cert_pem .client_cert_pem .client_key_pem都为默认(NULL),程序运行后提示:No server verification option set in axk_tls_cfg_t structure. Check axk_tls API reference。 请问如何处理?
开了没有反应
easyflash_init();
easyflash_cli_init();
交互不了,请问需要怎么配置
PS D:\Github> git clone https://github.com/Ai-Thinker-Open/Ai-Thinker-WB2.git
Cloning into 'Ai-Thinker-WB2'...
remote: Enumerating objects: 20820, done.
remote: Counting objects: 100% (886/886), done.
remote: Compressing objects: 100% (522/522), done.
remote: Total 20820 (delta 416), reused 664 (delta 356), pack-reused 19934
Receiving objects: 100% (20820/20820), 243.36 MiB | 11.79 MiB/s, done.
Resolving deltas: 100% (8535/8535), done.
error: unable to create file applications/peripherals/demo_spi/components/u8g2/u8g2/tools/font/streamline/icons/computers_devices_electronics/streamline-computers-devices-electronics-click-select-tablet--computers-devices-electronics.png: Filename too long
error: unable to create file applications/peripherals/demo_spi/components/u8g2/u8g2/tools/font/streamline/icons/computers_devices_electronics/streamline-computers-devices-electronics-graphic-tablet-draw--computers-devices-electronics.png: Filename too long
error: unable to create file applications/peripherals/demo_spi/components/u8g2/u8g2/tools/font/streamline/icons/entertainment_events_hobbies/streamline-entertainment-events-hobbies-game-machines-arcade-1--entertainment-events-hobbies.png: Filename too long
error: unable to create file applications/peripherals/demo_spi/components/u8g2/u8g2/tools/font/streamline/icons/entertainment_events_hobbies/streamline-entertainment-events-hobbies-game-machines-arcade-2--entertainment-events-hobbies.png: Filename too long
error: unable to create file applications/peripherals/demo_spi/components/u8g2/u8g2/tools/font/streamline/icons/entertainment_events_hobbies/streamline-entertainment-events-hobbies-game-pool-snooker-ball--entertainment-events-hobbies.png: Filename too long
Updating files: 100% (13326/13326), done.
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'
PS D:\Github> git clone https://github.com/Ai-Thinker-Open/Ai-Thinker-WB2.git
fatal: destination path 'Ai-Thinker-WB2' already exists and is not an empty directory.
PS D:\Github> git restore --source=HEAD :/
fatal: not a git repository (or any of the parent directories): .git
PS D:\Github> cd Ai-Thinker-WB2
PS D:\Github\Ai-Thinker-WB2> git restore --source=HEAD :/
error: unable to create file applications/peripherals/demo_spi/components/u8g2/u8g2/tools/font/streamline/icons/computers_devices_electronics/streamline-computers-devices-electronics-click-select-tablet--computers-devices-electronics.png: Filename too long
error: unable to create file applications/peripherals/demo_spi/components/u8g2/u8g2/tools/font/streamline/icons/computers_devices_electronics/streamline-computers-devices-electronics-graphic-tablet-draw--computers-devices-electronics.png: Filename too long
error: unable to create file applications/peripherals/demo_spi/components/u8g2/u8g2/tools/font/streamline/icons/entertainment_events_hobbies/streamline-entertainment-events-hobbies-game-machines-arcade-1--entertainment-events-hobbies.png: Filename too long
error: unable to create file applications/peripherals/demo_spi/components/u8g2/u8g2/tools/font/streamline/icons/entertainment_events_hobbies/streamline-entertainment-events-hobbies-game-machines-arcade-2--entertainment-events-hobbies.png: Filename too long
error: unable to create file applications/peripherals/demo_spi/components/u8g2/u8g2/tools/font/streamline/icons/entertainment_events_hobbies/streamline-entertainment-events-hobbies-game-pool-snooker-ball--entertainment-events-hobbies.png: Filename too long
Hello, I have encountered a problem when using the Bluetooth master project of SDK. Hopefully you can give me answers to my mistakes or provide me with the correct code.
A brief description of my problems,
It's about the file "ble_central_api.c" and the *bt_uuid_6/32/128
of"uuid.h"
MY_UUID1_USER_TXD
is char[16] for 128byte with the uint8_t uuid128[16];
which used at func
ble_reverse_byte(); and memcmp().
My bluetooth device is DX-BT04-E
"module. It's UUID identified as BT_UUID_TYPE_16
.
So I follow the code format of char MY_UUID1_USER_TXD[16]
const uint16_t MY_UUID_2_USER_TXD = 0x42001;
const char MY_UUID_2_USER_TXD[4] = { 0x42, 0x01, 0x9a, 0xac }; //42019AAC
const char MY_UUID_2_USER_RXD[2] = { 0x66, 0x16 };
uuid16 = (uint16_t) (((struct bt_uuid_16*) (attr->uuid))->val);
debug: sprintf(buf1, "attr->uuid = uuid16_ori = %X\r\n", attr->uuid);bleuart_printf(buf1);
output : 42019B40
debug: sprintf(buf1, "attr->uuid = uuid16_ori = %X\r\n", uuid16);bleuart_printf(buf1);
output : 2800
Found in this val
cannot be converted to uuid16
properly. Reading the source code for data type or casting type is also inavailable to find a solution.
I was wondering if the recognition is TYPE16, why is the value before the conversion 4-bit hexadecimal instead of 2-bit hexadecimal.
In the file gatt.h
, const struct bt_uuid *uuid;
how does the bt_uuid u8_t type
convert to the bt_uuid_128
struct bt_uuid {
u8_t type;
};
struct bt_uuid_16 {
struct bt_uuid uuid;
u16_t val;//
};
struct bt_uuid_128 {
struct bt_uuid uuid;
u8_t val[16];
};
The amount of data bytes is all different.It's not work when it come to the uuid16
and val
use assign
.
Finally I change if (memcmp((char*) uuid16, MY_UUID_2_USER_TXD, 2) == 0)
to if (uuid16 == MY_UUID_2_USER_TXD)
because its about u16_t and char,not the char[] and uint8.
What should I do to solve if (attr->uuid->type == BT_UUID_TYPE_16)?
I hope I will not disturb you. This is the first time I have raised an issue. Look forward to your reply. Thank you.
使用blufi例程、乐鑫的APP(安卓版本),配网报如下图错误
完整的日志见如下文件
[Com COM6] (2023-09-05_171103).log
问题: 在实际的ota使用中, ota完成后, 需要将成功/失败的状态上报到mqtt, 但是当前的ai_http_update_ota接口, ota成功直接重启(虽然可以在应用层设置外部调用的调用: ota_parame_t.rebooot_cb = set_ota_reboot; 然后在set_ota_reboot函数中上报成功的消息并且重启, 但是违背了接口的单一原则)
期望: 可以将成功失败的状态通过回调传出来
when using eclipse ide to build default blink project, it shows that error
[21:42:10.230] - ########################################################################
[21:42:10.230] - 'charmap' codec can't encode characters in position 17-28: character maps to
Traceback (most recent call last):
File "libs\bflb_img_loader.py", line 649, in img_load_process
File "libs\bflb_img_loader.py", line 391, in img_load_shake_hand
File "libs\bflb_img_loader.py", line 322, in issue_log_print
File "libs\bflb_utils.py", line 473, in printf
File "encodings\cp1252.py", line 19, in encode
UnicodeEncodeError: 'charmap' codec can't encode characters in position 17-28: character maps to
[21:42:10.231] - Load helper bin time cost(ms): 14150.92431640625
[21:42:10.231] - {"ErrorCode": "0003","ErrorMsg":"BFLB LOAD HELP BIN FAIL"}
[21:42:10.231] - Burn Retry
[21:42:10.231] - 0
[21:42:10.231] - Burn return with retry fail
21:42:10 Build Finished. 0 errors, 0 warnings. (took 27s.102ms)
Dear Tuan PM, I am trying to connect to HiveMQ on the Ai-WB2-32s BL602 esp device, but we are unable to resolve the SSL issue. The error message is "No server verification option set in axk_tls_cfg_t structure. Check axk_tls API reference." We are using a free HiveMQ account. Do you have a chance to provide a small example code?
Thank You,
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.