在vivado中的SDK中写完代码出现button.elf section .text' will not fit in region
microblaze_0_local_memory_ilmb_bram_if_cntlr_Mem_microblaze_0_local_memory_dlmb_bram_if_cntlr_Mem' button
#include"stdio.h"
#include"xil_io.h"
int main(){
unsigned char col,row;
unsigned char code;
Xil_Out8(0x40030004,0xf);
Xil_Out8(0x4003000c,0x0);
while(1)
{
Xil_Out8(0x40030008,0x0);//输出全行0
while((Xil_In8(0x40030000)&0xf)==0xf);//检测是否有按键按下
row=0xef;
do
{
row=row>>1;
Xil_Out8(0x40030008,row);//逐行输出低电平
col=Xil_In8(0x40030000)&0xf;//读取列值
}
while(col==0xf);//该行没有按下继续扫描下一行
code=(col<<4)+(row&0xf);//合成8位按键扫描码
Xil_Out8(0x40030008,0x0);
while((Xil_In8(0x40030000)&0xf)!=0xf);//等待按键释放
printf("The pushed matrix_key's code is0x%2x\n",code);
}
}
Description Resource Path Location Type
button.elf section .text' will not fit in region
microblaze_0_local_memory_ilmb_bram_if_cntlr_Mem_microblaze_0_local_memory_dlmb_bram_if_cntlr_Mem' button C/C++ Problem