This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Emac Init stuck in NC_NetStart

I am using NDK 2.24.00.11, SYS/Bios 6.31.04.27, and Emac driver for C6455 device.

During initialization, I noticed that the execution never returned from the NC_NetStart.

Inside NC_NetStart(), the code execution was able to call NIMUInit() successfully, but it never returned from the NetScheduler() function.

Inside the NetScheduler(), it stopped after the following code:

if (stkEvent.hSemEvent) {SemPend(stkEvent.hSemEvent, SEM_FOREVER); }

Any idea what could cause this problem?

Here is my initialization code:

I called enet_init() before BIOS_Start(), and the following is pseudo code of my enet_init() function:

- Call NC_SystemOpen (NC_PRIORITY_LOW and NC_OPMODE_INTERRUPT)

- Create a new configuration (CfgNew())

- Add entry to configuration to set CFGITEM_DHCP_HOSTNAME, and CFGITEM_OS_DBGPRINTLEVEL

- call NC_NetStart <-- it never returned from this function.

- call CfgFree(), then NC_SystemClose()

Thanks