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++
Announcements
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
Honored Contributor II
1,524 Views

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 Kudos
3 Replies
Altera_Forum
Honored Contributor II
531 Views

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
0 Kudos
Altera_Forum
Honored Contributor II
531 Views

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
0 Kudos
Altera_Forum
Honored Contributor II
531 Views

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!
0 Kudos
Reply