最近在研究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
不知道高手们有没有遇到过啊?
刚刚改了下IAR的设置,这个编译错误已经解决了。
project->options->general options 下的data model 改为 large