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.

issue in Emac_open while doing NC_NetStart()

Other Parts Discussed in Thread: SYSBIOS

hi,

i am using BIOS 6.34.2.18, ndk 2.21.01.38 , xdc 3.24.5.48 on dm8148 evm.

i am running an application to establish ethernet connection between PC and board.

th application on a8 core consists of a code to receive image frames from PC.

the binary builds successfully but the application gets stuck in while loop in file csl_emac.c,

when i debug through the application i found out that the line is this

/* Soft reset CPDMA */    

CSL_FINS(CPSW3G_REGS->SOFT_RESET, CPSW3G_SOFT_RESET_SOFT_RESET, CSL_CPSW3G_SOFT_RESET_SOFT_RESET_RESET);   

 while(CSL_FEXT(CPSW3G_REGS->SOFT_RESET, CPSW3G_SOFT_RESET_SOFT_RESET) !=       CSL_CPSW3G_SOFT_RESET_SOFT_RESET_NORESET)

when i do a CPU reset (SW) from CCS using Ctrl+shift+R and resume the applicaion again it throws a run time error, some thing like this:

Exception occurred in ThreadType_Main.
Main handle: 0x0.
Main stack base: 0x81b68000.
Main stack size: 0x2800.
R0 = 0x4a10011c  R8  = 0xffffffff
R1 = 0x81b63fdc  R9  = 0x81b51ac4
R2 = 0x00000000  R10 = 0x00000000
 R3 = 0x810454a8  R11 = 0x8100b084
R4 = 0x81b53f24  R12 = 0x80000000
R5 = 0x81b53f34  SP(R13) = 0x816022f8
 R6 = 0x8100b014  LR(R14) = 0x81047a3c
 R7 = 0x8100afd4  PC(R15) = 0x00000000
 PSR = 0x8000019f
 ti.sysbios.family.arm.exc.Exception: line 172: E_prefetchAbort: pc = 0x00000000, lr = 0x81047a3c. xdc.runtime.Error.raise: terminating execution
 
Also before that i get the console output as:
 
Using MAC address: 00-01-02-03-04-05
 
it is not the MAC address of the board that i use, seems like something is wrong.
 
Kindly provide help.