launchpad(mspG2553) + cc3000boost 編譯器報(bào)錯(cuò),提示cstack 不足
使用的官方例程 Basic WiFi Application
在IAR(Embedded Workbench 6.5)工程中不定義 CC3000_UNENCRYPTED_SMART_CONFIG ,即使用smartconfig過程使用AES加密
編譯器報(bào)如下錯(cuò)誤
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 CSTACK
Error while running Linker
意思是cstack不足,查了下,是不是可以修改編譯器設(shè)定的cstack大小?或者其他方法
請(qǐng)問如何解決? 謝謝!
此錯(cuò)誤是所定義的全局變量和數(shù)組緩沖區(qū)等所占的RAM超出硬件支持所致。只要減少不不要的全局變量和盡量縮小數(shù)組緩沖區(qū)就可以了!