使用的官方例程 Basic WiFi Application
在IAR(Embedded Workbench 6.5)工程中不定义 CC3000_UNENCRYPTED_SMART_CONFIG ,即使用smartconfig过程使用AES加密
编译器报如下错误
Error[e16]: Segment CSTACK (size: 0xc8 align: 0x1) is too long for segment definition. At least 0x36 more bytes needed. The problem occurred while processing the segment placement command"-Z(DATA)CSTACK+_STACK_SIZE#", where at the moment of placement the available memory ranges were "CODE:36e-3ff" Reserved ranges relevant to this placement: 200-223 DATA16_I 224-2cf DATA16_Z 2d0-36d DATA16_N 36e-3ff CSTACKError while running Linker
意思是cstack不足,查了下,是不是可以修改编译器设定的cstack大小?或者其他方法
请问如何解决? 谢谢!!
Susan Yang:
此错误是所定义的全局变量和数组缓冲区等所占的RAM超出硬件支持所致。只要减少不不要的全局变量和尽量缩小数组缓冲区就可以了!