Hi all,
I am trying to add SPI with DMA to the "ethernetip_adapter_generic_device_mii_demo_am243x-lp_r5fss0-0_freertos_ti-arm-clang" example.
I add SPI in the syscfg and copy "mcspi_loopback_dma.c" form the SPI example:
I'd like to use DMA mode and callback mode. However, when DMA is included, the program is trapped in
when initializing. The functions called before entering this handler are:
CMN_OS_init ();
System_init();
Udma_init();
retVal = Udma_eventRegister
Udma_eventConfig()
HwiP_construct(&eventHandle->hwiObject, &hwiPrms); (udma_event.c line:1075)
Actually, including DMA (packet) alone would cause the problem, even without SPI.
Checking "Skip global event registration" in UDMA setting would make is problem happen later in the main task:
EI_APP_TASK_main()
CUST_DRIVERS_init(&pAppInstance->config.customDrivers);
Drivers_open();
Drivers_i2cOpen();
I2C_open(instCnt, &gI2cParams[instCnt]);
AddrTranslateP_getLocalAddr(hwAttrs->baseAddr);
DebugP_assertNoLog(gAddrTranslateConfig.numRegions<AddrTranslateP_MAX_REGIONS);
Any idea what's the cause of this problem?
Thanks,
Hang.