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.

How to run NDK helloWorld example on AMC-2C6670

Other Parts Discussed in Thread: TMS320C6670

Hi there!

We are trying to run the NDK helloWorld UDP example on our AMC-26670. It runs OK on our TMDSEVM6670LE Rev 4.0 but we can’t get it to run on the CommAgility AMC-26670 (www.commagility.com/.../437-amc-2c6670). What changes are required?

What we've found so far...

The only output from the Ethernet port of the AMC-26670 (which is connected to the AMC port, unlike on the EVM board) collected using a packet sniffer seems to be “BOOTP requests” from each of the two DSPs which is presumably the ROM boot loader?

The helloWorld code seems to run OK on the CommAgility board, in the sense that it is giving the same output  in CCS as when it runs successfully on the EVM board:

 “QMSS successfully initialized

CPPI successfully initialized

PA successfully initialized

 TCP/IP Stack 'Hello World!' Application

 TCP/IP Stack 'Hello World!' Application

 PASS successfully initialized

Ethernet subsystem successfully initialized

Ethernet eventId : 48 and vectId (Interrupt) : 7

Registration of the EMAC Successful, waiting for link up ..

Network Added: If-1:192.168.2.100”

 

The only adjustment I had to make to get it to run this was to set:

"sFlags.phy  = 0; // Ethernet"  rather than "=1;"

in "EVM_init()" in "helloWorld.c", otherwise it would block during the call

"pform_status = platform_init(&sFlags, &sConfig);"

Do I need to do something to the GEL file? I saw at http://processors.wiki.ti.com/index.php/Running_NDK_examples_for_Keystone_devices

''Scripts -> DSP CLOCK Estimation -> setupPhy''

but I don't have that option (presumably GEL dependent). I have a complex file provided by CommAgility, but whether this is loaded or not makes no difference. It contains the line:

" GEL_MapAddStr( 0x02090000, 0, 0x00030000, "R|W|AS4", 0 );   // Ethernet Switch Subsystem Configuration"

I also looked at http://processors.wiki.ti.com/index.php/NDK,_PA_Resource_Wiki_for_Keystone_Devices 

Where and how to enable the EMAC0 on C6678 EVM's AMC connector?"

but that code is for the C6678, and not sure if it's what I should be changing either.

 

I am using the following:

NDK 2.21.2.43

MCSDK 1.1.2.6

MCSDK PDK TMS320C6670 1.1.2.6

SYS/BIOS 6.33.6.50

Many thanks for your help.


Regards,

David

p.s. 

I noticed in this thread, the user was using an AMC26670, and had it running on core 0 without any problem (using this thread we managed to run the code on any core on the EVM!)