目录

NIOS-ii工程移植路径问题

目录

NIOS ii工程移植路径问题

NIOS ii工程移植路径问题

1、[nios ii EDS中出现Type ‘xxxx_base’ could not be resolved的解决方法]

明明添加system.h文件也能链接进去,但是就是代码就是报错

'UART_MCU_BASE' could not be resolved

解决方法:

https://i-blog.csdnimg.cn/img_convert/6924d1b68110564b726f5d1f4a204080.png

2、迁移quartus ii和nios工程时,nios工程链接到原来工程路径下的问题解决方法,软件版本是17.1。

第一步:

工程目录下打开setting.bsp文件:xx:\xx\xx\software\vl53l1_software_bsp路径下修改setting.bsp文件

https://i-blog.csdnimg.cn/img_convert/3766cc3e079e933208e641904ccb69d1.png

第二步:打开quartus工程。然后再打开nios工程。

https://i-blog.csdnimg.cn/img_convert/f853040b0581944740529bcdff87129c.png

https://i-blog.csdnimg.cn/img_convert/823ebece2c735289d0d8f5ee4d38079a.png

路径选择大奥.metadata文件夹路径下,点击确定,再点击ok。即可答案开nios工程

https://i-blog.csdnimg.cn/img_convert/1f57251ffe476c7b57b6cf33996a489e.png

打开nios工程后检查nios链接的路径,发现还是原来旧工程的路径:

https://i-blog.csdnimg.cn/img_convert/2e2143b5ac4d0539dad14ba7474c7477.png

https://i-blog.csdnimg.cn/img_convert/8dc9ca0c56451a5fd0ac47d55b41160b.png

解决方法:

https://i-blog.csdnimg.cn/img_convert/8012de49d509a449fc91bf54f1bb65bc.png

https://i-blog.csdnimg.cn/img_convert/04e0a109e7fcbb493bb6f35cc390b9ec.png

https://i-blog.csdnimg.cn/img_convert/cf6a0e4819469dcaae911ddb83d673a6.png

https://i-blog.csdnimg.cn/img_convert/8368339ada919c81a57dd7d51b770424.png

重新导入新的工程,点击next

https://i-blog.csdnimg.cn/img_convert/889f3fcfc19b93bd71d27920b841fd4b.png

https://i-blog.csdnimg.cn/img_convert/b5e56169de56237a322f3024d4f13815.png

检查路径是否正确:

https://i-blog.csdnimg.cn/img_convert/03d000822c17f8104a55247e49dc2238.png

https://i-blog.csdnimg.cn/img_convert/9859db0265e33ecfa191e3dd2206b1be.png

最后重新编一下工程即可,到此工程移植结束。

https://i-blog.csdnimg.cn/img_convert/4c750d56081f949cd383e2eec79f4d77.png

---晓凡  20259月于南宁书