Hi,
I am able to run the client example on core 0. Not i want to run the same example in all cores at same time. means each core can configure its own EMAC channel.
I have adjusted the progem sections in different memory. My Latest configuration for memory in CFG file is:
Program.sectMap[".vecs"] = "LL2RAM";
Program.sectMap["emacComm"] = "SL2RAM";
Program.sectMap["systemHeap"] = "LL2RAM";
Program.sectMap[".switch"] = "SL2RAM";
Program.sectMap[".sysmem"] = "DDR2";
Program.sectMap[".args"] = "DDR2";
Program.sectMap[".cio"] = "LL2RAM";
Program.sectMap[".far"] = "LL2RAM";
Program.sectMap[".cinit"] = "SL2RAM";
Program.sectMap[".bss"] = "LL2RAM";
Program.sectMap[".const"] = "SL2RAM";
Program.sectMap[".text"] = "SL2RAM";
Program.sectMap[".code"] = "SL2RAM";
Program.sectMap[".data"] = "DDR2";
Program.sectMap[".taskStackSection"] = "LL2RAM";
Program.sectMap[".stack"] = "LL2RAM";
Program.sectMap[".far:IMAGEDATA"] = {loadSegment: "LL2RAM", loadAlign: 8};
Program.sectMap[".far:NDK_OBJMEM"] = {loadSegment: "LL2RAM", loadAlign: 8};
Program.sectMap[".far:NDK_PACKETMEM"] = {loadSegment: "LL2RAM", loadAlign: 128};
Initially i was facing a problem as i kept "emacComm" section in LL2RAM but in code i found this is the section that should be shared accross all the cores. Then i moved the code to SL2RAM.
After that i made build and loaded into all cores after DDR2 Configuration in Target using GEL file.
In Core 0 I am getting these set of logs:
TCP/IP Stack Example Client
emac_init: core 0, port 0, total number of channels/MAC addresses: 1/1
MAC addresses configured for channel 0:
08-00-28-39-24-AA
emac_open core 0 port 0 successfully
Registration of the EMAC Successful, waiting for link up ..
Network Added: If-1:35.66.118.10
Service Status: Telnet : Enabled : : 000
Service Status: HTTP : Enabled : : 000
But in core 1 i am getting logs like this:
TCP/IP Stack Example Client
emac_init: core 1, port 0, total number of channels/MAC addresses: 1/1
MAC addresses configured for channel 1:
08-00-28-39-24-AA
emac_open core 1 port 0 EMAC_coreDeInit returned error 00000004
emac_open core 1 port 0 EMAC_coreInit returned error 00000004
Error: Unable to register the EMAC
Service Status: Telnet : Enabled : : 000
Service Status: HTTP : Enabled : : 000
But in core 2 i am getting logs like this:
TCP/IP Stack Example Client
emac_init: core 2, port 0, total number of channels/MAC addresses: 1/1
MAC addresses configured for channel 1:
08-00-28-39-24-AA
emac_open core 2 port 0 EMAC_coreDeInit returned error 00000004
emac_open core 2 port 0 EMAC_coreInit returned error 00000004
Error: Unable to register the EMAC
Service Status: Telnet : Enabled : : 000
Service Status: HTTP : Enabled : : 000
First thing i want to know how to apply different mac addresses for different cores and reason of this problem?
Please help.
Arun
arunshukla.kiet@gmail.com