xradiotech / xradio-skylark-sdk Goto Github PK
View Code? Open in Web Editor NEWXradio wireless MCU rtos SDK,supporting XR872 and XR808
Xradio wireless MCU rtos SDK,supporting XR872 and XR808
mkimage_mac64当前版本还是旧的,如下:
mkimage version: 1.9e
Copyright (C): XRadio Technology
mac版本未同步更新,请及时更新。目前无法使用,报以下错误:
4766 segmentation fault
难道mac版本是不打算维护了吗?
XR872 speech example, met the compiler error in default config:
cc1.exe: warning: is shorter than expected
../../../../project/common/framework/platform_init.o: In function platform_init_level1': C:\cygwin64\home\Lenovo\xradiotech\xradio-skylark-sdk\project\example\speech\gcc/../../../../project/common/framework/platform_init.c:636: undefined reference to
psram_free'
C:\cygwin64\home\Lenovo\xradiotech\xradio-skylark-sdk\project\example\speech\gcc/../../../../project/common/framework/platform_init.c:636: undefined reference to psram_realloc' C:\cygwin64\home\Lenovo\xradiotech\xradio-skylark-sdk\project\example\speech\gcc/../../../../project/common/framework/platform_init.c:636: undefined reference to
psram_malloc'
../../../../project/common/apps/cedarx/cdx_memory.o: In function cdx_malloc': C:\cygwin64\home\Lenovo\xradiotech\xradio-skylark-sdk\project\example\speech\gcc/../../../../project/common/apps/cedarx/cdx_memory.c:42: undefined reference to
psram_malloc'
../../../../project/common/apps/cedarx/cdx_memory.o: In function cdx_realloc': C:\cygwin64\home\Lenovo\xradiotech\xradio-skylark-sdk\project\example\speech\gcc/../../../../project/common/apps/cedarx/cdx_memory.c:47: undefined reference to
psram_realloc'
../../../../project/common/apps/cedarx/cdx_memory.o: In function cdx_calloc': C:\cygwin64\home\Lenovo\xradiotech\xradio-skylark-sdk\project\example\speech\gcc/../../../../project/common/apps/cedarx/cdx_memory.c:52: undefined reference to
psram_calloc'
../../../../project/common/apps/cedarx/cdx_memory.o: In function cdx_strdup': C:\cygwin64\home\Lenovo\xradiotech\xradio-skylark-sdk\project\example\speech\gcc/../../../../project/common/apps/cedarx/cdx_memory.c:62: undefined reference to
psram_malloc'
../../../../project/common/apps/cedarx/cdx_memory.o: In function cdx_free': C:\cygwin64\home\Lenovo\xradiotech\xradio-skylark-sdk\project\example\speech\gcc/../../../../project/common/apps/cedarx/cdx_memory.c:70: undefined reference to
psram_free'
../../../../project/example/speech/main.o: In function main': C:\cygwin64\home\Lenovo\xradiotech\xradio-skylark-sdk\project\example\speech\gcc/../../../../project/example/speech/main.c:43: undefined reference to
HAL_PsramCtrl_Set_RD_BuffSize'
../../../../project/example/speech/AecAsr.o: In function audio_record_start': C:\cygwin64\home\Lenovo\xradiotech\xradio-skylark-sdk\project\example\speech\gcc/../../../../project/example/speech/AecAsr.c:285: undefined reference to
psram_malloc'
C:\cygwin64\home\Lenovo\xradiotech\xradio-skylark-sdk\project\example\speech\gcc/../../../../project/example/speech/AecAsr.c:290: undefined reference to psram_malloc' C:\cygwin64\home\Lenovo\xradiotech\xradio-skylark-sdk\project\example\speech\gcc/../../../../project/example/speech/AecAsr.c:295: undefined reference to
psram_malloc'
C:\cygwin64\home\Lenovo\xradiotech\xradio-skylark-sdk\project\example\speech\gcc/../../../../project/example/speech/AecAsr.c:300: undefined reference to psram_malloc' ../../../../project/example/speech/AecAsr.o: In function
record_task_start':
C:\cygwin64\home\Lenovo\xradiotech\xradio-skylark-sdk\project\example\speech\gcc/../../../../project/example/speech/AecAsr.c:169: undefined reference to psram_malloc' C:\cygwin64\home\Lenovo\xradiotech\xradio-skylark-sdk\project\example\speech\gcc/../../../../project/example/speech/AecAsr.c:199: undefined reference to
psram_free'
../../../../project/example/speech/AecAsr.o: In function audio_record_start': C:\cygwin64\home\Lenovo\xradiotech\xradio-skylark-sdk\project\example\speech\gcc/../../../../project/example/speech/AecAsr.c:315: undefined reference to
psram_free'
C:\cygwin64\home\Lenovo\xradiotech\xradio-skylark-sdk\project\example\speech\gcc/../../../../project/example/speech/AecAsr.c:316: undefined reference to psram_free' C:\cygwin64\home\Lenovo\xradiotech\xradio-skylark-sdk\project\example\speech\gcc/../../../../project/example/speech/AecAsr.c:317: undefined reference to
psram_free'
C:\cygwin64\home\Lenovo\xradiotech\xradio-skylark-sdk\project\example\speech\gcc/../../../../project/example/speech/AecAsr.c:318: undefined reference to psram_free' ../../../../project/example/speech/AecAsr.o:C:\cygwin64\home\Lenovo\xradiotech\xradio-skylark-sdk\project\example\speech\gcc/../../../../project/example/speech/AecAsr.c:237: more undefined references t o
psram_free' follow
../../../../project/example/speech/kfifo.o: In function __kfifo_alloc': C:\cygwin64\home\Lenovo\xradiotech\xradio-skylark-sdk\project\example\speech\gcc/../../../../project/example/speech/kfifo.c:71: undefined reference to
psram_malloc'
../../../../project/example/speech/kfifo.o: In function __kfifo_free': C:\cygwin64\home\Lenovo\xradiotech\xradio-skylark-sdk\project\example\speech\gcc/../../../../project/example/speech/kfifo.c:88: undefined reference to
psram_free'
../../../../project/common/framework/psram.o: In function platform_psram_init': C:\cygwin64\home\Lenovo\xradiotech\xradio-skylark-sdk\project\example\speech\gcc/../../../../project/common/framework/psram.c:316: undefined reference to
HAL_PsramCtrl_Create'
C:\cygwin64\home\Lenovo\xradiotech\xradio-skylark-sdk\project\example\speech\gcc/../../../../project/common/framework/psram.c:322: undefined reference to HAL_PsramCtrl_Init' C:\cygwin64\home\Lenovo\xradiotech\xradio-skylark-sdk\project\example\speech\gcc/../../../../project/common/framework/psram.c:327: undefined reference to
HAL_PsramCtrl_Open'
C:\cygwin64\home\Lenovo\xradiotech\xradio-skylark-sdk\project\example\speech\gcc/../../../../project/common/framework/psram.c:335: undefined reference to psram_init' C:\cygwin64\home\Lenovo\xradiotech\xradio-skylark-sdk\project\example\speech\gcc/../../../../project/common/framework/psram.c:339: undefined reference to
HAL_PsramCtrl_DQS_Delay_Cal_Policy'
C:\cygwin64\home\Lenovo\xradiotech\xradio-skylark-sdk\project\example\speech\gcc/../../../../project/common/framework/psram.c:350: undefined reference to psram_deinit' C:\cygwin64\home\Lenovo\xradiotech\xradio-skylark-sdk\project\example\speech\gcc/../../../../project/common/framework/psram.c:352: undefined reference to
HAL_PsramCtrl_Close'
C:\cygwin64\home\Lenovo\xradiotech\xradio-skylark-sdk\project\example\speech\gcc/../../../../project/common/framework/psram.c:354: undefined reference to HAL_PsramCtrl_Deinit' C:\cygwin64\home\Lenovo\xradiotech\xradio-skylark-sdk\project\example\speech\gcc/../../../../project/common/framework/psram.c:356: undefined reference to
HAL_PsramCtrl_Destory'
collect2.exe: error: ld returned 1 exit status
make: *** [../../../../project/project.mk:293:speech.axf] 错误 1
SDK版本:1.1.0
使用AT+SYSGPIOWRITE指令设置GPIO的输出电平状态,发现只能控制PA19的电平状态,其它引脚都不收控;
使用AT+CWAUTOCONN指令设置上电时自动连接AP,设置后发现并不会自动连接。
上述两个指令问题可以修复?期待你的回复
这个demo功耗还是很高,达到1.2mA左右,应该不是板子问题,把模块拆出来量了也是这么大
如下信息
$ ./phoenixMC
--------------SETTING--------------
COM:/dev/ttyUSB0
Baud:115200
Log path:./log.txt
Log level:0
Image path:/home/aban/devel/xradio-skylark-sdk/project/demo/hello_demo/image/xr872/xr_system.img
ETF image path:
Read and check:NO
Update change only:NO
Program ETF image:NO
Use flash compat:NO
*************************************************
firmware information
*************************************************
*******************************************************************************************************************
bin version: 4
bin count: 6
No. ID sram_offs data_size next_section attribute private
1 0xA5FF5A00 0x00268000 0x000026D8 0x00008000 0x00000001 0xFF00100000001000FC03FFFF
2 0xA5FE5A01 0x00201000 0x00005000 0x00012C00 0x00000001 0xFFFFFFFFFFFFFFFFFFFFFFFF
3 0xA5FD5A02 0xFFFFFFFF 0x0006F7D4 0x000F5000 0x00000002 0xFFFFFFFFFFFFFFFFFFFFFFFF
4 0xA5FA5A05 0xFFFFFFFF 0x000008F0 0x000F6400 0x00000001 0xFFFFFFFFFFFFFFFFFFFFFFFF
5 0xA5F95A06 0xFFFFFFFF 0x00006F90 0x000FE400 0x00000001 0xFFFFFFFFFFFFFFFFFFFFFFFF
6 0xA5F85A07 0xFFFFFFFF 0x00000318 0xFFFFFFFF 0x00000001 0xFFFFFFFFFFFFFFFFFFFFFFFF
*******************************************************************************************************************
not Combined image!!
3%: Opening com...
10%: Erasing the 1 block,total 15 block(s)...
11%: Writing the 1 block,total 15 block(s)...
15%: Erasing the 2 block,total 15 block(s)...
16%: Writing the 2 block,total 15 block(s)...
20%: Erasing the 3 block,total 15 block(s)...
22%: Writing the 3 block,total 15 block(s)...
26%: Erasing the 4 block,total 15 block(s)...
27%: Writing the 4 block,total 15 block(s)...
31%: Erasing the 5 block,total 15 block(s)...
32%: Writing the 5 block,total 15 block(s)...
36%: Erasing the 6 block,total 15 block(s)...
38%: Writing the 6 block,total 15 block(s)...
42%: Erasing the 7 block,total 15 block(s)...
43%: Writing the 7 block,total 15 block(s)...
47%: Erasing the 8 block,total 15 block(s)...
48%: Writing the 8 block,total 15 block(s)...
52%: Erasing the 9 block,total 15 block(s)...
54%: Writing the 9 block,total 15 block(s)...
58%: Erasing the 10 block,total 15 block(s)...
59%: Writing the 10 block,total 15 block(s)...
63%: Erasing the 11 block,total 15 block(s)...
64%: Writing the 11 block,total 15 block(s)...
68%: Erasing the 12 block,total 15 block(s)...
70%: Writing the 12 block,total 15 block(s)...
74%: Erasing the 13 block,total 15 block(s)...
75%: Writing the 13 block,total 15 block(s)...
79%: Erasing the 14 block,total 15 block(s)...
80%: Writing the 14 block,total 15 block(s)...
84%: Erasing the 15 block,total 15 block(s)...
86%: Writing the 15 block,total 15 block(s)...
91%: Erasing rest data of 64k...
92%: Writing rest data of 64k...
95%: Read old data1...
Read old data1 error!
95%: Read old data1...
Read old data1 error!
95%: Read old data1...
Read old data1 error!
95%: Read old data1...
Read old data1 error!
95%: Read old data1...
Read old data1 error!
请技术能给予支持,感谢
如题
win10虚拟机,安装mingw32,提示无法执行的mkimage~
听小飞在线配网时发出的声音,跟tools目录下SoundConfig.apk的声音不同。能不能支持小飞在线里的声波配网?
链接错误,缺少符号。
/home1/test/workspace/xradio-skylark-sdk/src/sys/dma_heap/dma_heap.c:55: undefined reference to __DMAHEAP_PSRAM_BASE' /home1/test/workspace/xradio-skylark-sdk/src/sys/dma_heap/dma_heap.c:55: undefined reference to
__DMAHEAP_PSRAM_END'
/home1/test/workspace/xradio-skylark-sdk/src/sys/dma_heap/dma_heap.c:55: undefined reference to __DMAHEAP_PSRAM_LENGTH' ../../../../project/demo/audio_demo/command.o:(.rodata.g_main_cmds+0x64): undefined reference to
cmd_cedarx_exec'
../../../../project/demo/audio_demo/audio_player.o: In function audio_player_init': /home1/test/workspace/xradio-skylark-sdk/project/demo/audio_demo/gcc/../../../../project/demo/audio_demo/audio_player.c:101: undefined reference to
player_create'
../../../../project/demo/audio_demo/audio_player.o: In function audio_player_deinit': /home1/test/workspace/xradio-skylark-sdk/project/demo/audio_demo/gcc/../../../../project/demo/audio_demo/audio_player.c:114: undefined reference to
player_destroy'
../../../../lib/libchip.a(hal_dcache.o): In function HAL_Dcache_IsCacheable': /home1/test/workspace/xradio-skylark-sdk/src/driver/chip/hal_dcache.c:58: undefined reference to
__PSRAM_BASE'
/home1/test/workspace/xradio-skylark-sdk/src/driver/chip/hal_dcache.c:58: undefined reference to __PSRAM_END' ../../../../lib/libchip.a(hal_dcache.o): In function
HAL_Dcache_Enable_WriteThrough':
/home1/test/workspace/xradio-skylark-sdk/src/driver/chip/hal_dcache.c:94: undefined reference to __PSRAM_BASE' /home1/test/workspace/xradio-skylark-sdk/src/driver/chip/hal_dcache.c:94: undefined reference to
__PSRAM_END'
../../../../lib/libchip.a(hal_dcache.o): In function arch_irq_restore': /home1/test/workspace/xradio-skylark-sdk/src/driver/chip/../../../include/sys/interrupt.h:114: undefined reference to
__PSRAM_BASE'
/home1/test/workspace/xradio-skylark-sdk/src/driver/chip/../../../include/sys/interrupt.h:114: undefined reference to __PSRAM_END' ../../../../lib/libchip.a(hal_dcache.o): In function
HAL_Dcache_CleanAll':
/home1/test/workspace/xradio-skylark-sdk/src/driver/chip/hal_dcache.c:178: undefined reference to __PSRAM_BASE' /home1/test/workspace/xradio-skylark-sdk/src/driver/chip/hal_dcache.c:178: undefined reference to
__PSRAM_LENGTH'
../../../../lib/libchip.a(psram_heap_4.o): In function psram_heap_init': /home1/test/workspace/xradio-skylark-sdk/src/driver/chip/psram/psram_heap_4.c:379: undefined reference to
psram_end'
/home1/test/workspace/xradio-skylark-sdk/src/driver/chip/psram/psram_heap_4.c:379: undefined reference to __DMAHEAP_PSRAM_LENGTH' /home1/test/workspace/xradio-skylark-sdk/src/driver/chip/psram/psram_heap_4.c:379: undefined reference to
__PSRAM_END'
../../../../lib/librom.a(rom_core.o):(.ram_table+0x140): undefined reference to __PSRAM_BASE' ../../../../lib/librom.a(rom_core.o):(.ram_table+0x144): undefined reference to
__PSRAM_END'
SDK更新1.1.1版本后相比1.0.2版本WLAN的带宽吞吐率确实改善很多,用jperf测试很容易超过8MBits,更新以前基本上不会超过5MBits, 但是测试发现在长时间播放在线音乐的过程中容易出现音乐中断的情况或者中途现网络掉线重联的情况。 调试发现基本上可以排除路由器和外网的问题, 直接用电脑PING 872的机器IP 在音乐卡的过程中PING也是超时的(PING不通)。
另外出现掉网自动重连时串口输出了下面的LOG:
WAR [CQM] BSS lost.
ERR [CQM] Reporting connection loss.
[net INF] msg
[net INF] no need to switch wlan mode 0
en1: CTRL-EVENT-DISCONNECTED bssid=94:d9:b3:a6:3c:97 reason=0WAR Issue unjoin command(TX) by self.
Issue unjoin.
[26196829][E][I_CODEC]Rx : overrun and stop dma rx...[3 2 3]249588 249576
[net INF] msg
[net INF] netif is link down
xplayer thread dealing with msg.messageId: 0x108
ERROR : awplayer CdxSockAsynRecv:542: <CdxSockAsynRecv,542>force stop
xplayer thread dealing with msg.messageId: 0x101
xplayer thread dealing with msg.messageId: 0x104
prepare finish
parser create success
parser create success
mp3 parser init success
[Cedarx OS porting INFO] pthread_create line 549, thread: 0x222f58 create success!
[Cedarx OS porting INFO] pthread_create line 549, thread: 0x2245d0 create success!
[net INF] msg
[net INF] no need to switch wlan mode 0
xplayer thread dealing with msg.messageId: 0x105
xplayer thread dealing with msg.messageId: 0x108
[net INF] no need to switch wlan mode 0
[26202597][E][I_CODEC]Rx : overrun and stop dma rx...[3 2 3]249631 249618
[26203038][E][I_CODEC]Rx : overrun and stop dma rx...[3 2 3]249634 249620
[net INF] msg
[net INF] no need to switch wlan mode 0
[net INF] no need to switch wlan mode 0
en1: Trying to associate with 94:d9:b3:a6:3c:97 (SSID='futureangel_1' freq=2462 MHz)
[net INF] msg
[net INF] no need to switch wlan mode 0
en1: Associated with 94:d9:b3:a6:3c:97
en1: WPA: Key negotiation completed with 94:d9:b3:a6:3c:97 [PTK=CCMP GTK=CCMP]
en1: CTRL-EVENT-CONNECTED - Connection to 94:d9:b3:a6:3c:97 completed [id=0 id_str=]
[net INF] msg
[net INF] netif is down
WAR drop=1099, fctl=0x00d0.
[net INF] netif is link up
[net INF] DHCP is already started
[net INF] msg
[net INF] no need to switch wlan mode 0
[net INF] netif is up
[net INF] address: 192.168.8.117
[net INF] gateway: 192.168.8.1
[net INF] netmask: 255.255.255.0
[net INF] msg
由于这些打印的问题者是原厂打包到wlan的库里面的,麻烦原厂或者其它高手帮忙看看怎么解决! 感谢!!
编译lib时提示config-xr-mini-cliserv.h: No such file or directory
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.