This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

msp430f5438a 产生编译错误,请教各位(Error[e16]: Segment ISR_CODE (size: 0x1f8 align: 0x1) is too long for segment definition. )

Other Parts Discussed in Thread: MSP430F5438A

我使用msp430f5438a + iar 7.10

编译以及链接产生的错误如下:

由于我在程序中开辟了很大的数组,并且数组中使用了很多字符串字面值,同时使用const修饰这些数组,类似如下:

const TYPE_T typeArray[] = {
	{"aaa", 1},
	{"bbb", 2},
	{"ccc", 3}, //举例:使用NULL代替字符串字面值“ccc”,则可编译通过
	//...
};

可是当我使用NULL代替字符串字面值,则可编译通过,因此我判断是否编译器预分配的装载字符串字面值的字符串池空间偏小导致的。

请问各位,这个该如何解决?恳请指教~