这个编译链与跟文件系统编译链不匹配唉,重新制定下Tina的编译链试试?
我还是贴出来把:看文档:https://d1.docs.aw-ol.com/study/study_6helloword/
BedRock 发布的帖子
-
回复: 新人D1-h hello-word 运行不起来求教
-
回复: 串口日志输出如何保存到文件?
@wanglang 一般用于debug的串口就是用来输出 系统日志,不建议做他用。
内核日志写入SD卡,可以在应用层使用开机自启 shell脚本 自己定期进行备份。
-
回复: T113-S3 Longan SDK怎么加驱动?
在Kernel目录中 make menuconfig
或者查看一下编译脚本,看看调用的是哪一个config文件:
文件路径在:linux-4.9/arch/arm64/configs
或者:linux-4.9/arch/arm/configs或者从 build.sh 按照脚本流程走一下
-
回复: 在Ubuntu中交叉编译Opencv 4.5.1 运行于Tina Linux中(整合帖)
@astonzorro 最简单的方法: 交叉编译链的 -l 链接动态库 -i 包含头文件路径 参数来设置
高级方法:包管理
工具方法:cmake(教程很多) -
回复: 测试 D1s的符合USB gadget设备
@memory
建议在repo sync 后加上
repo start tina-2.0 --all
为所有同步过来的仓库新建分支 -
回复: 【DIY教程】D1的双屏异显第一弹来啦!D1同时支持两个屏幕,一共做UI交互,一边个播放视频
@tigger 可能需要检查一下dts的声卡配置,直接配到HDMI输出就可以
-
回复: XR806 WIFI MAC地址
http://standards.ieee.org/develop/regauth/oui/oui.txt
从这个链接里看IEEE的MAC地址厂商,然后自己配置 -
回复: 【XR806开发板试用】下载代码时遇到如下错误 fatal: Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle
- repo 不要加sudo
- vim /你的目录/repo
修改 REPO_URL = 'https://mirrors.ustc.edu.cn/aosp/git-repo'
-
回复: 全志神工具:DragonFace——可以动态修改固件的dts、sys_config.fex和分区配置等信息
除了功能好用强大之外
就是感觉工程师的审美需要提高了,软件风格还是上个10年的风格 -
【XR806开发板试用】使用sntp获取时间
本着能水则水的心态,睡前搞了一个小的demo
如题,XR806既然可以联网,那使用SNTP获取个时间肯定不是问题。既然上面有人玩了MQTT,跟随大佬的脚步去 net 文件夹中看看都有什么库,果然不出我所料,有SNTP,那就好玩了。。。过程可能有点曲折,比如 sntp 获取不到时间。
再比如编译错误
这显然是 分区有问题 论坛有解决方法
效果:
main.c#include <stdio.h> #include "ohos_init.h" #include "kernel/os/os.h" #include "wifi_device.h" #include "sntp.h" static OS_Thread_t g_main_thread; static OS_Thread_t g_time_thread; #define WIFI_DEVICE_CONNECT_AP_SSID "*****************" #define WIFI_DEVICE_CONNECT_AP_PSK "************" //更改成自己的wifi static int wifi_device_connect() { const char ssid_want_connect[] = WIFI_DEVICE_CONNECT_AP_SSID; const char psk[] = WIFI_DEVICE_CONNECT_AP_PSK; if(WIFI_SUCCESS != EnableWifi()) { printf("Error: EnableWifi fail.\n"); return; } printf("EnableWifi Success.\n"); if (WIFI_STA_ACTIVE == IsWifiActive()) printf("Wifi is active.\n"); OS_Sleep(1); if (WIFI_SUCCESS != Scan()) { printf("Error: Scan fail.\n"); return; } printf("Wifi Scan Success.\n"); OS_Sleep(1); WifiScanInfo scan_results[30]; unsigned int scan_num = 30; if (WIFI_SUCCESS != GetScanInfoList(scan_results, &scan_num)) { printf("Error: GetScanInfoList fail.\n"); return; } WifiDeviceConfig config = { 0 }; int netId = 0; int i; for (i = 0; i < scan_num; i++) { if (0 == strcmp(scan_results[i].ssid, ssid_want_connect)) { memcpy(config.ssid, scan_results[i].ssid, WIFI_MAX_SSID_LEN); memcpy(config.bssid, scan_results[i].bssid, WIFI_MAC_LEN); strcpy(config.preSharedKey, psk); config.securityType = scan_results[i].securityType; config.wapiPskType = WIFI_PSK_TYPE_ASCII; config.freq = scan_results[i].frequency; break; } } if (i >= scan_num) { printf("Error: No found ssid in scan_results\n"); return; } printf("GetScanInfoList Success.\n"); if (WIFI_SUCCESS != AddDeviceConfig(&config, &netId)) { printf("Error: AddDeviceConfig Fail\n"); return; } printf("AddDeviceConfig Success.\n"); if (WIFI_SUCCESS != ConnectTo(netId)) { printf("Error: ConnectTo Fail\n"); return; } printf("ConnectTo Success\n"); } static int my_sntp_init(){ if(sntp_set_server(0,"0.cn.pool.ntp.org") == 0){ printf("set OK \r\n"); } } static void MainThread(void *arg) { sntp_time my_time,*time; time = &my_time; wifi_device_connect(); my_sntp_init(); while (1) { //printf("hello world!\r\n"); sntp_get_time(0,&my_time); // sntp_request("run"); //time = sntp_obtain_time(); printf("Now Time is %d:%d:%d\r\n",my_time.hour-161,my_time.min-139,my_time.sec); LOS_Msleep(1000); } } static void TimeThread(void *arg) { while (1) { sntp_request("run"); LOS_Msleep(1000); } } void SNTPTestMain(void) //(2) { printf("SNTP Test Start\n"); if (OS_ThreadCreate(&g_main_thread, "MainThread", MainThread, NULL, OS_THREAD_PRIO_APP, 4 * 1024) != OS_OK) { printf("[ERR] Create MainThread Failed\n"); } if (OS_ThreadCreate(&g_time_thread, "MainThread", TimeThread, NULL, OS_THREAD_PRIO_APP, 4 * 1024) != OS_OK) { printf("[ERR] Create MainThread Failed\n"); } } SYS_RUN(SNTPTestMain); //必须以app开头 否则不会调用
import("//device/xradio/xr806/liteos_m/config.gni") static_library("app_sntp_Test") { configs = [] sources = [ "src/main.c", ] cflags = board_cflags include_dirs = board_include_dirs include_dirs += [ ".", "//utils/native/lite/include", "//foundation/communication/wifi_lite/interfaces/wifiservice", "//device/xradio/xr806/xr_skylark/include/net/sntp", ] }
group("ohosdemo") { deps = [ "sntp_demo:app_sntp_Test", # "hello_demo:app_hello", #"iot_peripheral:app_peripheral", #"wlan_demo:app_WlanTest", # "LED:app_led", ] }
比较草率。。。
获取时间的方法中间有两种,一种是主动调用获取,一种是增加一条线程主动更新,然后随时获取,个人更推荐增加 一条线程主动更新的方法。
代码比较草率,希望dalao们盖楼指正
-
开局点灯出现问题,大佬们帮忙看看
完全参照 https://xr806.docs.aw-ol.com/study/soft_led/ 文档点灯教程。
hb build 出现问题:jie@jie-BEDROCK:~/workspace/xr806$ hb clean && hb build [OHOS INFO] [1/1] Regenerating ninja files [OHOS INFO] [1/254] STAMP obj/applications/sample/wifi-iot/app/startup/startup.stamp [OHOS INFO] [2/254] STAMP obj/applications/sample/wifi-iot/app/app.stamp [OHOS INFO] [3/254] gcc cross compiler obj/base/hiviewdfx/hiview_lite/libhiview_lite.hiview_config.o [OHOS INFO] [4/254] gcc cross compiler obj/base/hiviewdfx/hilog_lite/frameworks/mini/libhilog_lite.hiview_log_limit.o [OHOS INFO] [5/254] gcc cross compiler obj/base/hiviewdfx/hiview_lite/libhiview_lite.hiview_service.o [OHOS INFO] [6/254] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/auth_info/libhichainsdk.add_auth_info.o [OHOS INFO] [7/254] gcc cross compiler obj/base/hiviewdfx/hievent_lite/frameworks/libhievent_lite.hiview_event.o [OHOS INFO] [8/254] gcc cross compiler obj/base/hiviewdfx/hilog_lite/frameworks/mini/libhilog_lite.hiview_log.o [OHOS INFO] [9/254] gcc cross compiler obj/base/hiviewdfx/hiview_lite/libhiview_lite.hiview_cache.o [OHOS INFO] [10/254] STAMP obj/base/startup/syspara_lite/frameworks/token/token_notes.stamp [OHOS INFO] [11/254] STAMP obj/build/lite/ndk.stamp [OHOS INFO] [12/254] gcc cross compiler obj/base/hiviewdfx/hilog_lite/command/libhilog_lite_command.hilog_lite_command.o [OHOS INFO] [13/254] AR libs/libhilog_lite_command.a [OHOS INFO] [14/254] gcc cross compiler obj/base/startup/bootstrap_lite/services/source/libbootstrap.bootstrap_service.o [OHOS INFO] [15/254] gcc cross compiler obj/base/hiviewdfx/hilog_lite/frameworks/mini/libhilog_lite.hiview_output_log.o [OHOS INFO] [16/254] gcc cross compiler obj/base/hiviewdfx/hievent_lite/frameworks/libhievent_lite.hiview_output_event.o [OHOS INFO] [17/254] gcc cross compiler obj/base/startup/bootstrap_lite/services/source/libbootstrap.system_init.o [OHOS INFO] [18/254] gcc cross compiler obj/base/hiviewdfx/hiview_lite/libhiview_lite.hiview_util.o [OHOS INFO] [19/254] gcc cross compiler obj/base/hiviewdfx/hiview_lite/libhiview_lite.hiview_file.o [OHOS INFO] [20/254] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/auth_info/libhichainsdk.add_auth_info_client.o [OHOS INFO] [21/254] AR libs/libhiview_lite.a [OHOS INFO] [22/254] gcc cross compiler obj/base/startup/syspara_lite/frameworks/token/src/token_impl_hal/libtoken_static.token.o [OHOS INFO] [23/254] AR libs/libhilog_lite.a [OHOS INFO] [24/254] gcc cross compiler obj/base/startup/syspara_lite/frameworks/parameter/src/param_impl_hal/libsysparam.param_impl_hal.o [OHOS INFO] [25/254] AR libs/libhievent_lite.a [OHOS INFO] [26/254] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/auth_info/libhichainsdk.auth_info.o [OHOS INFO] [27/254] STAMP obj/base/hiviewdfx/hilog_lite/frameworks/mini/hilog_lite_ndk.stamp [OHOS INFO] [28/254] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/auth_info/libhichainsdk.remove_auth_info_client.o [OHOS INFO] [29/254] gcc cross compiler obj/base/startup/syspara_lite/frameworks/parameter/src/libsysparam.parameter_common.o [OHOS INFO] [30/254] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/auth_info/libhichainsdk.exchange_auth_info_client.o [OHOS INFO] [31/254] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/auth_info/libhichainsdk.exchange_auth_info.o [OHOS INFO] [32/254] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/key_agreement/libhichainsdk.key_agreement.o [OHOS INFO] [33/254] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/key_agreement/libhichainsdk.key_agreement_client.o [OHOS INFO] [34/254] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/json/libhichainsdk.commonutil.o [OHOS INFO] [35/254] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/json/libhichainsdk.jsonutil.o [OHOS INFO] [36/254] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/key_agreement/libhichainsdk.key_agreement_server.o [OHOS INFO] [37/254] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/key_agreement/libhichainsdk.sec_clone_server.o [OHOS INFO] [38/254] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/key_agreement/libhichainsdk.sts_client.o [OHOS INFO] [39/254] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/struct/libhichainsdk.add_auth_info_request.o [OHOS INFO] [40/254] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/log/libhichainsdk.log.o [OHOS INFO] [41/254] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/struct/libhichainsdk.add_auth_info_response.o [OHOS INFO] [42/254] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/key_agreement/libhichainsdk.pake_client.o [OHOS INFO] [43/254] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/key_agreement/libhichainsdk.pake_server.o [OHOS INFO] [44/254] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/libhichainsdk.hichain.o [OHOS INFO] [45/254] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/schedule/libhichainsdk.build_object.o [OHOS INFO] [46/254] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/struct/libhichainsdk.add_auth_info_data.o [OHOS INFO] [47/254] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/struct/libhichainsdk.auth_ack_request.o [OHOS INFO] [48/254] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/struct/libhichainsdk.auth_ack_response.o [OHOS INFO] [49/254] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/key_agreement/libhichainsdk.sts_server.o [OHOS INFO] [50/254] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/struct/libhichainsdk.exchange_request.o [OHOS INFO] [51/254] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/struct/libhichainsdk.auth_start_request.o [OHOS INFO] [52/254] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/struct/libhichainsdk.exchange_auth_data.o [OHOS INFO] [53/254] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/schedule/libhichainsdk.distribution.o [OHOS INFO] [54/254] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/struct/libhichainsdk.inform_message.o [OHOS INFO] [55/254] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/struct/libhichainsdk.auth_start_response.o [OHOS INFO] [56/254] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/struct/libhichainsdk.import_add_auth_data.o [OHOS INFO] [57/254] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/struct/libhichainsdk.exchange_response.o [OHOS INFO] [58/254] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/struct/libhichainsdk.key_agreement_version.o [OHOS INFO] [59/254] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/struct/libhichainsdk.pake_client_confirm.o [OHOS INFO] [60/254] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/huks_adapter/libhichainsdk.huks_adapter.o [OHOS INFO] [61/254] STAMP obj/base/security/huks/frameworks/huks_lite/huks_sdk.stamp [OHOS INFO] [62/254] STAMP obj/device/xradio/xr806/xr806.stamp [OHOS INFO] [63/254] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/struct/libhichainsdk.pake_request.o [OHOS INFO] [64/254] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/struct/libhichainsdk.parsedata.o [OHOS INFO] [65/254] AR libs/libbootstrap.a [OHOS INFO] [66/254] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/struct/libhichainsdk.rmv_auth_info_data.o [OHOS INFO] [67/254] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/struct/libhichainsdk.pake_server_confirm.o [OHOS INFO] [68/254] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/struct/libhichainsdk.rmv_auth_info_request.o [OHOS INFO] [69/254] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/struct/libhichainsdk.pake_response.o [OHOS INFO] [70/254] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/struct/libhichainsdk.rmv_auth_info_response.o [OHOS INFO] [71/254] gcc cross compiler obj/device/xradio/xr806/adapter/hals/iot_hardware/wifiiot_lite/libhal_iothardware.iot_watchdog.o [OHOS INFO] [72/254] gcc cross compiler obj/device/xradio/xr806/adapter/hals/iot_hardware/wifiiot_lite/libhal_iothardware.reset.o [OHOS INFO] [73/254] gcc cross compiler obj/base/security/deviceauth/frameworks/deviceauth_lite/source/struct/libhichainsdk.sec_clone_data.o [OHOS INFO] [74/254] gcc cross compiler obj/device/xradio/xr806/adapter/hals/iot_hardware/wifiiot_lite/libhal_iothardware.lowpower.o [OHOS INFO] [75/254] AR libs/libhichainsdk.a [OHOS INFO] [76/254] gcc cross compiler obj/device/xradio/xr806/adapter/hals/iot_hardware/wifiiot_lite/libhal_iothardware.iot_uart.o [OHOS INFO] [77/254] STAMP obj/base/security/deviceauth/frameworks/deviceauth_lite/hichainsdk.stamp [OHOS INFO] [78/254] gcc cross compiler obj/device/xradio/xr806/adapter/console/src/libapp_console.cmd_hm_iot_lowpower.o [OHOS INFO] [79/254] gcc cross compiler obj/device/xradio/xr806/adapter/console/src/libapp_console.cmd_hm_iot_reset.o [OHOS INFO] [80/254] gcc cross compiler obj/device/xradio/xr806/adapter/console/src/libapp_console.cmd_hm_iot_flash.o [OHOS INFO] [81/254] gcc cross compiler obj/device/xradio/xr806/adapter/console/src/libapp_console.cmd_hm_iot_pwm.o [OHOS INFO] [82/254] gcc cross compiler obj/device/xradio/xr806/adapter/console/src/libapp_console.cmd_hm_iot_watchdog.o [OHOS INFO] [83/254] gcc cross compiler obj/device/xradio/xr806/adapter/console/src/libapp_console.cmd_hm_iot_i2c.o [OHOS INFO] [84/254] gcc cross compiler obj/device/xradio/xr806/adapter/console/src/libapp_console.cmd_hm_iot_gpio.o [OHOS INFO] [85/254] gcc cross compiler obj/device/xradio/xr806/adapter/console/src/libapp_console.cmd_hm_iot_uart.o [OHOS INFO] [86/254] gcc cross compiler obj/device/xradio/xr806/adapter/console/src/libapp_console.cmd_hm_mem.o [OHOS INFO] [87/254] gcc cross compiler obj/device/xradio/xr806/adapter/console/src/libapp_console.main.o [OHOS INFO] [88/254] gcc cross compiler obj/device/xradio/xr806/adapter/console/src/libapp_console.cmd_hm.o [OHOS INFO] [89/254] gcc cross compiler obj/device/xradio/xr806/adapter/console/src/libapp_console.command.o [OHOS INFO] [90/254] gcc cross compiler obj/device/xradio/xr806/adapter/console/src/libapp_console.cmd_hm_net_ap.o [OHOS INFO] [91/254] gcc cross compiler obj/device/xradio/xr806/adapter/hals/iot_hardware/wifiiot_lite/libhal_iothardware.iot_flash.o [OHOS INFO] [92/254] gcc cross compiler obj/device/xradio/xr806/adapter/console/src/libapp_console.cmd_hm_net_sta.o [OHOS INFO] [93/254] gcc cross compiler obj/device/xradio/xr806/adapter/hals/communication/wifi_lite/wifiservice/source/libwifiservice.wifi_device_util.o [OHOS INFO] [94/254] AR libs/libapp_console.a [OHOS INFO] [95/254] gcc cross compiler obj/device/xradio/xr806/adapter/hals/communication/wifi_lite/wifiservice/source/libwifiservice.wifi_hotspot.o [OHOS INFO] [96/254] gcc cross compiler obj/device/xradio/xr806/adapter/hals/iot_hardware/wifiiot_lite/libhal_iothardware.iot_gpio.o [OHOS INFO] [97/254] gcc cross compiler obj/device/xradio/xr806/os/libliteos_glue.os_errno.o [OHOS INFO] [98/254] gcc cross compiler obj/device/xradio/xr806/adapter/hals/iot_hardware/wifiiot_lite/libhal_iothardware.iot_pwm.o [OHOS INFO] [99/254] gcc cross compiler obj/device/xradio/xr806/ohosdemo/LED/src/libapp_led.main.o [OHOS INFO] [100/254] gcc cross compiler obj/device/xradio/xr806/adapter/hals/iot_hardware/wifiiot_lite/libhal_iothardware.iot_i2c.o [OHOS INFO] [101/254] gcc cross compiler obj/device/xradio/xr806/os/libliteos_glue.os_queue.o [OHOS INFO] [102/254] gcc cross compiler obj/device/xradio/xr806/os/libliteos_glue.os_debug.o [OHOS INFO] [103/254] gcc cross compiler obj/device/xradio/xr806/os/libliteos_glue.os_mutex.o [OHOS INFO] [104/254] gcc cross compiler obj/device/xradio/xr806/adapter/hals/utils/file/src/libhal_file_static.hal_file.o [OHOS INFO] [105/254] gcc cross compiler obj/device/xradio/xr806/adapter/hals/communication/blue_lite/src/libohos_bt_gatt.ohos_bt_gatt.o [OHOS INFO] [106/254] gcc cross compiler obj/device/xradio/xr806/adapter/hals/communication/wifi_lite/wifiservice/source/libwifiservice.wifi_device.o [OHOS INFO] [107/254] gcc cross compiler obj/device/xradio/xr806/adapter/hals/communication/wifi_lite/xr_wifi/libxr_wifi_adapter.xr_wifi_adapter.o [OHOS INFO] [108/254] gcc cross compiler obj/device/xradio/xr806/adapter/hals/communication/blue_lite/src/libohos_bt_gatt.ohos_bt_gap.o [OHOS ERROR] [99/254] gcc cross compiler obj/device/xradio/xr806/ohosdemo/LED/src/libapp_led.main.o [OHOS ERROR] FAILED: obj/device/xradio/xr806/ohosdemo/LED/src/libapp_led.main.o [OHOS ERROR] ~/tools/gcc-arm-none-eabi-10-2020-q4-major/bin/arm-none-eabi-gcc -I../../../kernel/liteos_m/kernel/arch/arm/cortex-m33/gcc -I../../../kernel/liteos_m/kernel/include -I../../../kernel/liteos_m/kal -I../../../kernel/liteos_m/kal/cmsis -I../../../kernel/liteos_m/components/backtrace -I../../../kernel/liteos_m/components/bounds_checking_function/include -I../../../kernel/liteos_m/components/cppsupport -I../../../kernel/liteos_m/components/cpup -I../../../kernel/liteos_m/components/exchook -I../../../kernel/liteos_m/components/fs/fatfs -I../../../kernel/liteos_m/utils -I../../../base/hiviewdfx/hilog_lite/interfaces/native/kits/hilog_lite -I../../../utils/native/lite/include -I../../../base/security/deviceauth/frameworks/deviceauth_lite/source -I../../../device/xradio/xr806 -I../../../device/xradio/xr806/xr_skylark -I../../../device/xradio/xr806/xr_skylark/include -I../../../device/xradio/xr806/xr_skylark/include/net/lwip-2.1.2 -I../../../device/xradio/xr806/xr_skylark/project -I../../../device/xradio/xr806/xr_skylark/project/common/framework -I../../../device/xradio/xr806/xr_skylark/project/demo/wlan_ble_demo -I../../../device/xradio/xr806/xr_skylark/include/net/mbedtls-2.16.8 -I../../../base/iot_hardware/peripheral/interfaces/kits -mcpu=cortex-m33 -mtune=cortex-m33 -march=armv8-m.main+dsp -mfpu=fpv5-sp-d16 -mfloat-abi=softfp -mcmse -mthumb -c -g -fno-common -fmessage-length=0 -fno-exceptions -ffunction-sections -fdata-sections -fomit-frame-pointer -Wall -Wno-cpp -Wpointer-arith -Wno-error=unused-function -MMD -MP -Os -DNDEBUG -Wno-error=stringop-truncation -Wno-error=restrict -includexr_config.h -includecommon/prj_conf_opt.h -DCONFIG_CHIP_ARCH_VER=3 -DCONFIG_ARCH_APP_CORE -DCONFIG_CPU_CM33F -includelog/log.h -DVIRTUAL_HCI -DCONFIG_ARM -std=gnu99 -c ../../../device/xradio/xr806/ohosdemo/LED/src/main.c -o obj/device/xradio/xr806/ohosdemo/LED/src/libapp_led.main.o [OHOS ERROR] ../../../device/xradio/xr806/ohosdemo/LED/src/main.c: In function 'MainThread': [OHOS ERROR] ../../../device/xradio/xr806/ohosdemo/LED/src/main.c:17:1: error: unknown type name '\U0000200b' [OHOS ERROR] 17 | IoTGpioSetOutputVal(GPIO_ID_PA21, 1); //(5) [OHOS ERROR] | [OHOS ERROR] ../../../device/xradio/xr806/ohosdemo/LED/src/main.c:8:22: error: expected declaration specifiers or '...' before numeric constant [OHOS ERROR] 8 | #define GPIO_ID_PA21 21 [OHOS ERROR] | ^~ [OHOS ERROR] ../../../device/xradio/xr806/ohosdemo/LED/src/main.c:17:28: note: in expansion of macro 'GPIO_ID_PA21' [OHOS ERROR] 17 | IoTGpioSetOutputVal(GPIO_ID_PA21, 1); //(5) [OHOS ERROR] | ^~~~~~~~~~~~ [OHOS ERROR] ../../../device/xradio/xr806/ohosdemo/LED/src/main.c:17:42: error: expected declaration specifiers or '...' before numeric constant [OHOS ERROR] 17 | IoTGpioSetOutputVal(GPIO_ID_PA21, 1); //(5) [OHOS ERROR] | ^ [OHOS ERROR] ../../../device/xradio/xr806/ohosdemo/LED/src/main.c:18:1: error: unknown type name '\U0000200b' [OHOS ERROR] 18 | OS_MSleep(500); [OHOS ERROR] | [OHOS ERROR] ../../../device/xradio/xr806/ohosdemo/LED/src/main.c:18:18: error: expected declaration specifiers or '...' before numeric constant [OHOS ERROR] 18 | OS_MSleep(500); [OHOS ERROR] | ^~~ [OHOS ERROR] ../../../device/xradio/xr806/ohosdemo/LED/src/main.c:19:1: error: unknown type name '\U0000200b' [OHOS ERROR] 19 | IoTGpioSetOutputVal(GPIO_ID_PA21, 0); //(6) [OHOS ERROR] | [OHOS ERROR] ../../../device/xradio/xr806/ohosdemo/LED/src/main.c:8:22: error: expected declaration specifiers or '...' before numeric constant [OHOS ERROR] 8 | #define GPIO_ID_PA21 21 [OHOS ERROR] | ^~ [OHOS ERROR] ../../../device/xradio/xr806/ohosdemo/LED/src/main.c:19:28: note: in expansion of macro 'GPIO_ID_PA21' [OHOS ERROR] 19 | IoTGpioSetOutputVal(GPIO_ID_PA21, 0); //(6) [OHOS ERROR] | ^~~~~~~~~~~~ [OHOS ERROR] ../../../device/xradio/xr806/ohosdemo/LED/src/main.c:19:42: error: expected declaration specifiers or '...' before numeric constant [OHOS ERROR] 19 | IoTGpioSetOutputVal(GPIO_ID_PA21, 0); //(6) [OHOS ERROR] | ^ [OHOS ERROR] ../../../device/xradio/xr806/ohosdemo/LED/src/main.c:20:1: error: unknown type name '\U0000200b' [OHOS ERROR] 20 | OS_MSleep(500); [OHOS ERROR] | [OHOS ERROR] ../../../device/xradio/xr806/ohosdemo/LED/src/main.c:20:18: error: expected declaration specifiers or '...' before numeric constant [OHOS ERROR] 20 | OS_MSleep(500); [OHOS ERROR] | ^~~ [OHOS ERROR] ../../../device/xradio/xr806/ohosdemo/LED/src/main.c: In function 'LEDMain': [OHOS ERROR] ../../../device/xradio/xr806/ohosdemo/LED/src/main.c:28:1: error: '\U0000200b' undeclared (first use in this function) [OHOS ERROR] 28 | OS_THREAD_PRIO_APP, 4 * 1024) != OS_OK) { [OHOS ERROR] | [OHOS ERROR] ../../../device/xradio/xr806/ohosdemo/LED/src/main.c:28:1: note: each undeclared identifier is reported only once for each function it appears in [OHOS ERROR] ../../../device/xradio/xr806/ohosdemo/LED/src/main.c:28:4: error: expected ')' before 'OS_PRIORITY_NORMAL' [OHOS ERROR] 28 | OS_THREAD_PRIO_APP, 4 * 1024) != OS_OK) { [OHOS ERROR] | ^ [OHOS ERROR] | ) [OHOS ERROR] ../../../device/xradio/xr806/ohosdemo/LED/src/main.c:27:7: error: too few arguments to function 'OS_ThreadCreate' [OHOS ERROR] 27 | if (OS_ThreadCreate(&g_main_thread, "MainThread", MainThread, NULL, [OHOS ERROR] | ^~~~~~~~~~~~~~~ [OHOS ERROR] In file included from ../../../device/xradio/xr806/xr_skylark/include/kernel/os/os.h:34, [OHOS ERROR] from ../../../device/xradio/xr806/ohosdemo/LED/src/main.c:3: [OHOS ERROR] ../../../device/xradio/xr806/xr_skylark/include/kernel/os/os_thread.h:92:11: note: declared here [OHOS ERROR] 92 | OS_Status OS_ThreadCreate(OS_Thread_t *thread, const char *name, [OHOS ERROR] | ^~~~~~~~~~~~~~~ [OHOS ERROR] ../../../device/xradio/xr806/ohosdemo/LED/src/main.c:29:4: error: expected ';' before 'printf' [OHOS ERROR] 29 | printf("[ERR] Create MainThread Failed\n"); [OHOS ERROR] | ^ ~~~~~~ [OHOS ERROR] | ; [OHOS ERROR] you can check build log in /home/jie/workspace/xr806/out/xr806/wifi_skylark/build.log [OHOS ERROR] command: "/home/jie/workspace/xr806/prebuilts/build-tools/linux-x86/bin/ninja -w dupbuild=warn -C /home/jie/workspace/xr806/out/xr806/wifi_skylark" failed [OHOS ERROR] return code: 1 [OHOS ERROR] execution path: /home/jie/workspace/xr806
-
回复: 请问D1目前可以支持ffmpeg 4.0,以及google的webrtc或者支持编译webrtc么
ffmpeg 可以软编进去,要支持硬件的话,还得花点功夫。
OpenWRT勾选上的ffmpeg 直接编固件编不过
webrtc 软编应该也可以
-
回复: 基于R329开发板构建多房间音频组播系统1——测评
老哥,问一下你理想中的多房间音频组播系统是什么,类似于一个人在一个房间里说话,同时在多个房间中播放吗? 使用网络来进行传输?
-
回复: 关于ubuntu18.04下的编辑环境配置
vscode的跳转需要C/C++扩展开启 IntelliSense 功能,该功能会根据工程进行深度的函数及变量的搜索,将其存储为索引文件,存储在内存中。
!所以:Vscode的跳转要流畅需要占用比较大的运行内存空间。你可以尝试使用 资源管理器查看一下 进程的资源占用情况。它还带有代码提示功能。
内存不够的兄弟 可以转 隔壁 Source Insight 来实现对应功能。
关于其配置,你可以在网上找到大多例程,同时你可以参考:扩展中的参考配置来进行你工作空间的配置。
总的来说,适合自己的才是最好的,如果你愿意折腾,愿意自己调教自己的开发环境,愿意在这上面花时间,你还是会收获一个自己满意的开发环境的
-
想做一个视频网口发送的demo有什么方案可以参考
目前我的心里,mipi 采集 视频编码-网口发送,但是在网口发送这里,有没有什么好一点的方案,可以充分利用网口的速率,据说业界有利用单网口做到了4K 60fps
看看有没有什么方法