共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 跳转至页
回复
有奖活动 | |
---|---|
【有奖活动】分享技术经验,兑换京东卡 | |
话不多说,快进群! | |
请大声喊出:我要开发板! | |
【有奖活动】EEPW网站征稿正在进行时,欢迎踊跃投稿啦 | |
奖!发布技术笔记,技术评测贴换取您心仪的礼品 | |
打赏了!打赏了!打赏了! |
打赏帖 | |
---|---|
【笔记】生成报错synthdesignERROR被打赏50分 | |
【STM32H7S78-DK评测】LTDC+DMA2D驱动RGBLCD屏幕被打赏50分 | |
【STM32H7S78-DK评测】Coremark基准测试被打赏50分 | |
【STM32H7S78-DK评测】浮点数计算性能测试被打赏50分 | |
【STM32H7S78-DK评测】Execute in place(XIP)模式学习笔记被打赏50分 | |
每周了解几个硬件知识+buckboost电路(五)被打赏10分 | |
【换取逻辑分析仪】RA8 PMU 模块功能寄存器功能说明被打赏20分 | |
野火启明6M5适配SPI被打赏20分 | |
NUCLEO-U083RC学习历程2-串口输出测试被打赏20分 | |
【笔记】STM32CUBEIDE的Noruletomaketarget编译问题被打赏50分 |