Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
公告
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

DHCP superloop mode

Altera_Forum
榮譽貢獻者 II
1,563 檢視

Hello! 

 

Well, I'm facing this issue. Internichestack in superlop mode works correctly, DHCP too. The problem is this: when turning on the module, without ethernet cable connected, the DHCP client fails(obviously). But when I plug teh cable, DHCP still not works. 

 

The only solution is to connect the cable before turning on the module. Any idea to improve this?
0 積分
3 回應
Altera_Forum
榮譽貢獻者 II
570 檢視

The behavior you are describing occurs both in superloop and RTOS mode. The stack simply only attempts DHCP discovery on initial startup. You'll have to dig into the code and use some ingenuity if you want to change this behavior. 

 

Jake
Altera_Forum
榮譽貢獻者 II
570 檢視

The application selector application, shipped with the NEEK and 3c120 dev kits, has a task which monitors the autonegotiation successful bit in the PHY. Something similar could be done in superloop mode. The concept would be to hold off stack initialization until successful PHY autonegotiation. 

 

- slacker
Altera_Forum
榮譽貢獻者 II
570 檢視

Well my NEEK can do that, and I can plug and unplug the cable and the IP is detected correctly. Well I didn't know that was done in another task, I will explore the Application Selector code a little more deeply. 

 

Thansk to both, bye bye!
回覆