共2条
1/1 1 跳转至页
msp430f149,IAR 【求助】msp430f149+IAR,数组不能太大?


问
我的测试程序如下:
#include "MSP430x14x.h"
typedef struct _LCD
{
char sz[4][17];
}LCD;
LCD lcd[12];
void main(void)
{
lcd[0].sz[0][0] = '1';
}
编译时出错。提示:
Linking
xlink.exe D:\430\Debug\Obj\Untitled1.r43 -o D:\430\Debug\
Exe\kkkk.d43 -rt -IC:\Program Files\IAR Systems\Embedded Workbench 3.2\430\LIB\ -f C:\
Program Files\IAR Systems\Embedded Workbench 3.2\430\config\lnk430C111.xcl C:\Program
Files\IAR Systems\Embedded Workbench 3.2\430\lib\cl430f.r43 -e_small_write=_formatted_write
-e_medium_read=_formatted_read -f C:\Program Files\IAR Systems\Embedded Workbench 3.2\
430\config\compactmath.xcl
IAR Universal Linker V4.55D/386
Copyright 1987-2003 IAR Systems. All rights reserved.
Error[e16]: Segment DATA16_Z (size: 0x330 align: 0) is too long for segment definition. At least
0x2af more bytes needed. The problem occurred while processing the segment placement
command "-Z(DATA)DATA16_I,DATA16_Z,DATA16_N,HEAP+_HEAP_SIZE=0200-0280", where
at the moment of placement the available memory ranges were "CODE:200-280"
Total number of errors: 1
Total number of warnings: 0
怎么办?????????????????????????
#include "MSP430x14x.h"
typedef struct _LCD
{
char sz[4][17];
}LCD;
LCD lcd[12];
void main(void)
{
lcd[0].sz[0][0] = '1';
}
编译时出错。提示:
Linking
xlink.exe D:\430\Debug\Obj\Untitled1.r43 -o D:\430\Debug\
Exe\kkkk.d43 -rt -IC:\Program Files\IAR Systems\Embedded Workbench 3.2\430\LIB\ -f C:\
Program Files\IAR Systems\Embedded Workbench 3.2\430\config\lnk430C111.xcl C:\Program
Files\IAR Systems\Embedded Workbench 3.2\430\lib\cl430f.r43 -e_small_write=_formatted_write
-e_medium_read=_formatted_read -f C:\Program Files\IAR Systems\Embedded Workbench 3.2\
430\config\compactmath.xcl
IAR Universal Linker V4.55D/386
Copyright 1987-2003 IAR Systems. All rights reserved.
Error[e16]: Segment DATA16_Z (size: 0x330 align: 0) is too long for segment definition. At least
0x2af more bytes needed. The problem occurred while processing the segment placement
command "-Z(DATA)DATA16_I,DATA16_Z,DATA16_N,HEAP+_HEAP_SIZE=0200-0280", where
at the moment of placement the available memory ranges were "CODE:200-280"
Total number of errors: 1
Total number of warnings: 0
怎么办?????????????????????????
共2条
1/1 1 跳转至页
回复
打赏帖 | |
---|---|
C语言函数宏的三种封装方式被打赏50分 | |
【STM32F769】记一次由于开启D-Cache之后DMA数据传输出错的问题查找与解决被打赏35分 | |
嵌入式LinuxC语言程序调试和宏使用技巧被打赏50分 | |
让代码中包含最新的编译时间信息被打赏50分 | |
【分享开发笔记,赚取电动螺丝刀】STM32F769LVGL优化显示被打赏26分 | |
rtthread硬件加密--2crc加密分析被打赏10分 | |
【分享开发笔记,赚取电动螺丝刀】STM32F769驱动ST7789以及显示优化被打赏36分 | |
【分享开发笔记,赚取电动螺丝刀】S32K146 PAL模拟I2C驱动适配被打赏23分 | |
我想要一部加热台+电源硬件设计规范被打赏16分 | |
我想要一部加热台+LED背光驱动芯片RT9293知识被打赏18分 |