1. 程式人生 > >Xilinx SDK編譯Microblaze時出錯

Xilinx SDK編譯Microblaze時出錯

develop 錯誤信息 鏈接 方法 -s 軟核 ado embed 網上

在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,問題解決。

Xilinx SDK編譯Microblaze時出錯