問題:SOPC Builder 在generate時出現的問題,如圖:
版本:QII11.0 + niosii 11.0
以前沒有出現過這種問題,寒假在家收拾了一下,新建了一個如下圖的sopc核
然后點擊generate就是不行,希望大家能給些建議!
//總結貼
今天為了設置Nios ii 中的兼容性問題,將*\altera\11.0\quartus\bin\cygwin\bin 下的好幾個exe文件的兼容性設置成以兼容模式運行這個程序,權限設置成以管理員的身份運行,結果重新生成SOPC的時候,就出現 fail to refresh ptf file的錯誤,在網上找了好久沒有找到滿意的答案,自己懷疑是不是因為設置兼容性的問題而導致的,結果又重新修改兼容性設置,將其還原為原來狀態。在一次generate,結果順利完成了。
讓人納悶的是:
然而作出這項改動的原因是:在建好的sopc基礎上用niosII IDE建立的helloworld程序編譯的時候出現下面的錯誤:
4 [main] ? (5092) d:\altera\quartus\bin\cygwin\bin\sh.exe: *** fatal error - couldn't allocate heap, Win32 error 487, base 0x680000, top 0x690000, reserve_size 61440, allocsize 65536, page_const 4096
3 [main] sh 4308 fork: child -1 - died waiting for longjmp before initialization, retry 0, exit code 0x100, errno 11
/bin/sh: fork: Resource temporarily unavailable
Creating generated_app.mk...
Creating generated_all.mk...
3 [main] ? (5504) d:\altera\quartus\bin\cygwin\bin\sh.exe: *** fatal error - couldn't allocate heap, Win32 error 487, base 0x680000, top 0x690000, reserve_size 61440, allocsize 65536, page_const 4096
2 [main] sh 7408 fork: child -1 - died waiting for longjmp before initialization, retry 0, exit code 0x100, errno 11
/bin/sh: fork: Resource temporarily unavailable
make[1]: *** No rule to make target `/bin/gtf/generated_all.mk.gtf', needed by `system_description/../obj/generated_all.mk-t'. Stop.
make: *** [system_project] Error 2
Build completed in 133.321 seconds
在黑金動力社區以及Altera Forum上都推薦這種解決方式:
Under your Quartus II folder, go to bin->cygwin->bin folder, select the following files in the list below and then right-click and choose Properties.
Under the Compatibility tab, check“Run this program in compatibility mode for:” and choose “Windows XP (Service Pack 2)”.
Check “Run this program as an administrator”, as well.
Here is the list of files that you can select to change their compatibility mode under the Quartus II->bin->cygwin->bin folder:
1. Make.exe
2. Sh.exe
3. Echo.exe
4. Cygstart.exe
5. MakeInfo.exe
6. Perl.exe
7. Collect2.exe(under nios2eds\bin\nios2-gnutools\ H-i686-pc-cygwin\libexec\gcc\nios2-elf\3.4.6)
8. Nios2-elf-g++.exe(under nios2eds\bin\nios2-gnutools\ H-i686-pc-cygwin\bin)
在修改上述的屬性之后,反而出現sopc builder 不能generate的現象。
唉,Quartus ii 11.0 還是不能完全兼容win7 旗艦版,鑒定完畢!