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.

Using Eventcombiner and NDK fails

Other Parts Discussed in Thread: SYSBIOS

Hi

I have encountered a problem with using the Eventcombiner together with the NDK.

My starting point is the client example provided by TI

In this example the Eventcombiner module is used, but configured like this

Ecm.eventGroupHwiNum[0] = -1;
Ecm.eventGroupHwiNum[1] = -1;
Ecm.eventGroupHwiNum[2] = -1;
Ecm.eventGroupHwiNum[3] = -1;

I guess this means that none of the events from the eventcombiner is used/enabled?

I have incorporated the client example with the original configuration (Ecm.eventGroupHwiNum[X] = -1;), and seen that ethernet communication is working, but unfortunately the rest of my application does not run because I do not get interrupts from a Timer that I use (CSL_TMR_3, event_id 69)

Before I added the NDK module to my application I had configured the Eventcombiner like this

Ecm.eventGroupHwiNum[0] = 7;
Ecm.eventGroupHwiNum[1] = 8;
Ecm.eventGroupHwiNum[2] = 9;
Ecm.eventGroupHwiNum[3] = 10;

I I thy to tun my application with this configuration and the NDK module enabled I get the following error 

[C66xx_0]
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:
00-18-31-FA-2E-94
SGMII reset successful........
SGMII config successful........
emac_open core 0 port 0 successfully
ti.sysbios.family.c64p.Hwi: line 159: E_alreadyDefined: Hwi already defined: intr# 9
ti.sysbios.family.c64p.Hwi: line 234: E_handleNotFound: Hwi handle not found: 0x800c63e0
xdc.runtime.Error.raise: terminating execution

I have tried different versions of NDK, SYSBIOS and XDC tools, but it does not seem to make any difference.

I have also tried disabling my own inscances in Hwi module, but that does not change anything.

If I set 

Ecm.eventGroupHwiNum[2] = -1;
Ecm.eventGroupHwiNum[3] = -1;

I get a different error, but the etehrnet and the rest of my application still does not work.

[C66xx_0]
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:
00-18-31-FA-2E-94
SGMII reset successful........
SGMII config successful........
emac_open core 0 port 0 successfully
Registration of the EMAC Successful, waiting for link up ..
emac_init: core 0, port 0, total number of channels/MAC addresses: 1/1
MAC addresses configured for channel 1:
00-18-31-FA-2E-94
SGMII reset successful........
SGMII config successful........
emac_open core 0 port 0 successfully
Registration of the EMAC Successful, waiting for link up ..
00000.000 ExecStart: Already Open
00000.000 mmFree: Double Free
00000.000 mmFree: Double Free
00000.000 mmFree: Double Free
00000.000 mmFree: Double Free
emac_close core 0 port 0

2:48 ( 3%) 1:96 ( 3%) 0:128 0:256
2:512 ( 33%) 0:1536 0:3072
(9216/49152 mmAlloc: 40/0/8, mmBulk: 0/0/0)

1 blocks alloced in 512 byte page
(0000)
2 blocks alloced in 48 byte page
(800A2074) (31180001)



WARNING: Boot thread has not completed!

00000.000 mmFree: Double Free
00000.000 mmFree: Double Free
00000.000 NodeTreeFree: Null endpoints
00000.000 mmFree: Double Free
00000.000 mmFree: Double Free

2:48 ( 3%) 1:96 ( 3%) 0:128 0:256
2:512 ( 33%) 0:1536 0:3072
(9216/0 mmAlloc: 40/0/10, mmBulk: 0/0/0)

Really hope someone can help me!

Thanks

Jens

  • Jens,

    Can you clarify which package/client program you are using? I checked the mcsdk_2_01_02_06\examples\ndk\client\evmc6678l\client.cfg, it has

    Ecm.eventGroupHwiNum[0] = 7;
    Ecm.eventGroupHwiNum[1] = 8;
    Ecm.eventGroupHwiNum[2] = 9;
    Ecm.eventGroupHwiNum[3] = 10;

    already, not "-1".

    Regards, Eric