问题:准备用红牛开发板的 TFT屏显示图像的,申请了一个大数组,结果编译的时候提示如下:
linking...
.\Obj\STM3210E-EVAL.axf: Error: L6406W: No space in execution regions with .ANY selector matching Section .bss(main.o).
.\Obj\STM3210E-EVAL.axf: Error: L6407W: Sections of aggregate size 0x14400 bytes could not fit into .ANY selector(s).
附上程序:
static vu32 TimingDelay = 0;
GPIO_InitTypeDef GPIO_InitStructure;
ErrorStatus HSEStartUpStatus;
extern unsigned char Image_Table[];
unsigned char Gray_Table[82944];
/* Private function prototypes -----------------------------------------------*/
void RCC_Configuration(void);
void InterruptConfig(void);
void NVIC_Configuration(void);
void Delay(vu32 nCount);
void Decrement_TimingDelay(void);
void SysTick_Config(void);
/* Private functions ---------------------------------------------------------*/
/*******************************************************************************
* Function Name : main
* Description : Main program.
* Input : None
* Output : None
* Return : None
*******************************************************************************/
int main(void)
{
u32 i;
#ifdef DEBUG
debug();
#endif
/* System Clocks Configuration */
RCC_Configuration();
/* Interrupt Configuration */
InterruptConfig();
/* Configure the systick */
SysTick_Config();
/* Initialize the LCD */
STM3210E_LCD_Init();
/* Clear the LCD */
LCD_Clear(Black);
LCD_SetDisplayWindow(00, 00, 239, 319);
LCD_WriteBMP(48, 64, 144, 192, Image_Table);
for(i=0;i<100000;i++);
BMPtoGray(Image_Table,Gray_Table);
LCD_Clear(Black);
LCD_SetDisplayWindow(00, 00, 239, 319);
LCD_WriteBMP(48, 64, 144, 192, Gray_Table);
}
我的芯片是STM32F103ZET6,SRAM是64k的吧,请各位大侠指点~~~~~~~~~ |