CC2530 + Zstack3.0 协议栈,想用串口透穿512字节的数据。
缓冲区长度设置成512时,程序跑非;
缓冲区长度设置成256时,传输240个字节没有问题。
请问这是为什么?有没有什么建议?
Viki Shi:
请参考Optimizing CC2530 Z-Stack 3.0.2 Flash and RAM: www.ti.com/…/swra635.pdf
user4711142:
回复 Viki Shi:
我已经按照如下的方法裁剪了,仍然不能透传512个字节数据。请问有没有其他办法?
user4711142:
回复 user4711142:
编译通过,但是运行起来后程序跑非
user4711142:
回复 Viki Shi:
这个文档里有这个描述:
By default, the UART
driver uses 256-byte TX and RX buffers which takes up a combined 1 kB of RAM. Using UART with
smaller buffer sizes is possible by modifying the compile flag HAL_UART_DMA_RX_MAX=128. Adding
this to the Defined symbols will change the size of both the RX and the TX buffers from 256 to 128 bytes,
and result in a RAM savings of ~500 bytes.
请问为什么收、发缓冲区为256B时,占用1KB?我想用512 那就是占用2KB?
YiKai Chen:
回复 user4711142:
3.0恊議棧跑在CC2530已經佔用大部分的系統資源256bytes的UART buffer其實已經很緊張了、建議不要再加大了
Viki Shi:
回复 user4711142:
是的,如YIKAI所述,CC2530跑zigbee3.0本身不具备优势,建议保持256吧
user4711142:
回复 Viki Shi:
请问跑zigbee3.0协议栈最便宜的芯片是哪个?
Viki Shi:
回复 user4711142:
我们推荐的是CC2652/CC1352系列
YiKai Chen:
回复 user4711142:
CC2652R
user4711142:
回复 YiKai Chen:
在f8wConfig.cfg文件中定义了
/* Set the MAC MAX Frame Size (802.15.4 default is 102) */
-DMAC_MAX_FRAME_SIZE=116
请问MAC_MAX_FRAME_SIZE可以最大设置成多少?
TI中文支持网