I using TMS320C6748 for Ethernet data send now.My NDK version is 2.00.I know NDK used the INT5 and INT6,but I have to use INT4 and INT5 for timer and spi interrupt.Now I cann't find how to modify the NDK's interrupt priority level in the source code.
I hope someone HELP me!
Thanks!
Hi Junhao Zhuge,
Which version of the 6748 Ethernet driver ("NSP product") are you using?
You should be able to modify the interrupt numbers in the file ethdriver.c. The code looks similar to the following:
#if defined(__TMS470__)...#else#define CORENUM 1#define RXINT 5#define TXINT 6#define EXTERNAL_MEMORY 1#define EXTMEM 0x80000000#endif
You would need to rebuild the driver for this change.
You can also refer to the following FAQ question. The question is about the 6747 but it's very similar to the 6748.
http://processors.wiki.ti.com/index.php/Network_Developers_Kit_FAQ#Q:_It_seems_that_the_NSP_for_OMAPL137_EVM_is_incompatible_with_the_EDMA3_LLD._How_can_I_fix_it.3F
Steve
Thanks,I find the ethdriver.c,but it did not exist my project,and the code of modify the interrupt show in the follow:
void Interrupt_init(void) { IntSetup hwi_intSetup; Uint32 retVal;
/* Setup the Rx Int using NDK's Interrupt Manager */ hwi_intSetup.intVectId = 5; hwi_intSetup.sysEvtCount = 1; hwi_intSetup.sysEvtId[0] = 31; hwi_intSetup.pCallbackFxn = &HwRxInt; hwi_intSetup.pCallbackArg = 0; hwi_intSetup.bEnable = 1;
retVal = Interrupt_add(&hwi_intSetup); if(retVal != 0) printf("Error setting up Rx Interrupts \n");
/* Setup the Tx Int using NDK's Interrupt Manager */ hwi_intSetup.intVectId = 6; hwi_intSetup.sysEvtCount = 1; hwi_intSetup.sysEvtId[0] = 32; hwi_intSetup.pCallbackFxn = &HwTxInt; hwi_intSetup.pCallbackArg = 0; hwi_intSetup.bEnable = 1;
retVal = Interrupt_add(&hwi_intSetup); if(retVal != 0) printf("Error setting up Tx Interrupts \n");
BCACHE_invL1pAll();
Enable_DSP_Interrupts(); }
Is it right whether I modify the value of "hwi_intSetup.intVectId"?And I have much similar files in my "C:\".The path of this file is "C:\CCStudio_v3.3\ndk_2_0_0_0\packages\ti\ndk\src\hal\evm6747\eth_c6747" .I can not sure if is this my used.
I hope to get some advise!