Xilinx SDK编译Microblaze时出错

时间:2021-01-04 07:22:35

reference:http://www.eeboard.com/evaluation/digilent-cmod-a7-fpga/9/

在vivado 2015.4中创建microblaze软核,local memory为8KB,export到SDK后,hello_world模板中加入“xil_printf("hello world\n")”后报错,错误如下:
'.stack' will not fit in region 'microblaze_0_local_memory_ilmb_bram_if_cntlr_microblaxe_0_local_memory_dlmb_bram_if_cntlr'
region 'microblaze_0_local_memory_ilmb_bram_if_cntlr_microblaxe_0_local_memory_dlmb_bram_if_cntlr' overflowed by 640 bytes
网上查找错误信息,xilinx社区的解决方案如下:
https://forums.xilinx.com/t5/Embedded-Development-Tools/MicroBlaze-s-Sta...

根据该链接中提供的方法,把local memory增大为64KB,问题解决。