本文用于记录vivado2020.2下的microblaze调试,不定期更新。
问题和解决方案
问题描述:使用Vitis IDE时,创建并build自带freeRTOS模板例程失败
详细描述:在block design中创建了microblaze、mig、timer、uart、ledgpio,使用中断。在vitis中尝试standalone的helloworld和memorytest模板成功。创建freeRTOS的helloworld模板例程后,build工程失败。
开发环境:vivado2020.2
报错内容:
Description Resource Path Location Type ‘XPAR_INTC_0_TMRCTR_0_VEC_ID’ undeclared (first use in this function) BD_RGMII_wrapper line 176 C/C++ Problem
问题分析:从’XPAR_INTC_0_TMRCTR_0_VEC_ID’这段名字来看,大概是timer模块的中断id。那么这段话就是说,我的BD_RGMII_wrapper硬件描述文件没有定义这个中断id。在nios中需要对外设中断分配interrupt id,但在block design中我仅仅对中断进行了连接,并没有涉及到中断分配的操作,猜想应该是工具自动分配了。再回来看diagram,这里axi_intc的interrupt连接到xlconcat,xlconcat的输入端在之前被我配置成了5个,但我只连接了timer和uart两个。
解决方案:修改xlconcat输入端口,不要保留没有连接的端口。
问题描述:使用Vitis IDE运行freeRTOS模板例程无现象
详细描述:在block design中创建了microblaze、mig、timer、uart、ledgpio,使用中断。在vitis中创建freeRTOS的helloworld例程。launch到开发板上无串口数据打印。
开发环境:vivado20
655




被折叠的 条评论
为什么被折叠?



