- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
My board is cyclone,and now i have a niosII,I want to construct a web server whick have a cgi interface to translate a command through the internet to the board.
who can help me?링크가 복사됨
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
A good place to start would be the Nios II example design, which has a webserver on. What sort of command do you want the CGI to execute? If you just want to do normal CGI stuff this isn't far beyond what the example shows; you can have your script run any system command. If you want to program the hardware through a CGI then this is a little trickier but still only a small extension to the code.
You might like to also look at the example for Excalibur boards, which has a webserver into which you can upload a .sof file and have it reprogram the hardware. Have fun playing with your Nios II, and good luck!- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
Thank you for your reply.
But what is the Excalibur boards ? where can i find the examples for the Excalibur boards?- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
Excalibur is a line of development boards that Altera sells. The Excalibur chip contains an FPGA, SRAM, and an ARM9 processor. You can find out everything about them on Altera's website: if you go to "Devices" it is low down on the left bar, where it says "Embedded Processors". application note 285 (http://www.altera.com/literature/an/an285.pdf) gives you the details, and the design files for the example (http://www.altera.com/literature/an/an285.zip) are available.
It might be a significant amount of work to make this work for boards without a hard core, though, especially if you program the board with a design that doesn't include the webserver. One approach would be to keep the webserver code in Flash so you can get back to it with just a reset.