Error[e16]: Segment ISTACK (size: 0xc0 align: 0) is too long for segment definition.

  在使用IAR编译CC2541的 BLE工程时,官方的工程直接编译会出现错误:
Error[e16]: Segment ISTACK (size: 0xc0 align: 0) is too long for segment definition. At least 0xd more bytes needed. The problem occurred while processing the segment placement command
“-Z(IDATA)ISTACK+_IDATA_STACK_SIZE#08-_IDATA_END”, where at the moment of placement the available memory ranges were “IDATA:4d-ff”

在这里插入图片描述
  解决方法为:右键工程选择“options”,如图选择:
在这里插入图片描述
  将“Number of virtual”中默认的16改为8,再重新编译即可以解决。

猜你喜欢

转载自blog.csdn.net/xxxx123041/article/details/120651936