[求助] Z-Stack Mesh 1.0.0协议栈中的CC2530DB编译出错的问题

chanson   2015-1-14 09:06 楼主
最近在研究CC2530、 CC2538,  在最新的协议栈Z-Stack Mesh 1.0.0中,尝试编译CC2530DB部分,   但出现了很多编译错误,如下:

Error[Pe095]: array is too large C:\Texas Instruments\Z-Stack Mesh 1.0.0\Components\hal\target\CC2530EB\_hal_uart_dma.c 294
Error[Pe095]: array is too large C:\Texas Instruments\Z-Stack Mesh 1.0.0\Components\hal\target\CC2530EB\_hal_uart_dma.c 396
Error[Pe095]: array is too large C:\Texas Instruments\Z-Stack Mesh 1.0.0\Components\hal\target\CC2530EB\_hal_uart_dma.c 396
Error[Pe095]: array is too large C:\Texas Instruments\Z-Stack Mesh 1.0.0\Components\hal\target\CC2530EB\_hal_uart_dma.c 479
Error[Pe095]: array is too large C:\Texas Instruments\Z-Stack Mesh 1.0.0\Components\hal\target\CC2530EB\_hal_uart_dma.c 482
Error[Pe095]: array is too large C:\Texas Instruments\Z-Stack Mesh 1.0.0\Components\hal\target\CC2530EB\_hal_uart_dma.c 507
Error[Pe095]: array is too large C:\Texas Instruments\Z-Stack Mesh 1.0.0\Components\hal\target\CC2530EB\_hal_uart_dma.c 511
Error[Pe095]: array is too large C:\Texas Instruments\Z-Stack Mesh 1.0.0\Components\hal\target\CC2530EB\_hal_uart_dma.c 512
Error[Pe095]: array is too large C:\Texas Instruments\Z-Stack Mesh 1.0.0\Components\hal\target\CC2530EB\_hal_uart_dma.c 557
Error[Pe095]: array is too large C:\Texas Instruments\Z-Stack Mesh 1.0.0\Components\hal\target\CC2530EB\_hal_uart_dma.c 569
Error[Pe095]: array is too large C:\Texas Instruments\Z-Stack Mesh 1.0.0\Components\hal\target\CC2530EB\_hal_uart_dma.c 599
Error[Pe095]: array is too large C:\Texas Instruments\Z-Stack Mesh 1.0.0\Components\hal\target\CC2530EB\_hal_uart_dma.c 680
Error[Pe095]: array is too large C:\Texas Instruments\Z-Stack Mesh 1.0.0\Components\hal\target\CC2530EB\_hal_uart_dma.c 680
Error[Pe095]: array is too large C:\Texas Instruments\Z-Stack Mesh 1.0.0\Components\hal\target\CC2530EB\_hal_uart_dma.c 729
Error[Pe095]: array is too large C:\Texas Instruments\Z-Stack Mesh 1.0.0\Components\hal\target\CC2530EB\_hal_uart_dma.c 735
Error while running C/C++ Compiler
mac_autopend.c  
Error[Pe167]: argument of type "unsigned char *" is incompatible with parameter of type  C:\Texas Instruments\Z-Stack Mesh 1.0.0\Components\mac\low_level\srf04\mac_autopend.c 464
"unsigned char volatile __xdata *"
Error[Pe167]: argument of type "unsigned char *" is incompatible with parameter of type  C:\Texas Instruments\Z-Stack Mesh 1.0.0\Components\mac\low_level\srf04\mac_autopend.c 472
"unsigned char volatile __xdata *"
Error[Pe167]: argument of type "unsigned char *" is incompatible with parameter of type  C:\Texas Instruments\Z-Stack Mesh 1.0.0\Components\mac\low_level\srf04\mac_autopend.c 561
"unsigned char volatile __xdata *"
Error[Pe167]: argument of type "unsigned char *" is incompatible with parameter of type  C:\Texas Instruments\Z-Stack Mesh 1.0.0\Components\mac\low_level\srf04\mac_autopend.c 580
"unsigned char volatile __xdata *"
Error[Pe167]: argument of type "unsigned char *" is incompatible with parameter of type  C:\Texas Instruments\Z-Stack Mesh 1.0.0\Components\mac\low_level\srf04\mac_autopend.c 598
"unsigned char volatile __xdata *"
Error[Pe167]: argument of type "unsigned char *" is incompatible with parameter of type  C:\Texas Instruments\Z-Stack Mesh 1.0.0\Components\mac\low_level\srf04\mac_autopend.c 616
"unsigned char volatile __xdata *"
Error while running C/C++ Compiler

不知道高手们有没有遇到过啊?

回复评论 (2)

刚刚改了下IAR的设置,这个编译错误已经解决了。
project->options->general options 下的data model 改为 large
点赞  2015-1-14 09:17
点赞  2015-8-28 15:37
电子工程世界版权所有 京B2-20211791 京ICP备10001474号-1 京公网安备 11010802033920号
    写回复