Tool/software: TI-RTOS
Hello,
We are using TIRTOS v2_16_01_14 and BIOS version 6_45_02_31. We are using the external SRAM over EPI interface. When we define a statically allocated Task in external SRAM and when trying to communicate with peripheral over SPI interface, sometime the SPI transfer get struck and does not complete.
When we move the same task to internal memory, it works fine with SPI peripheral. We are using the SPI baud rate 10 MHz.
The external SRAM has a speed of 20MHz and the system clock is 120 MHz. The SPI is using uDMA to transfer data.
Can you suggest what could be problem when the task is in external memory and that task has SPI communication functionality with peripheral and it get struck on SPI transfer. This issue occur randomly but it is easily reproducible.
Here is the SPI settings.
SPI_Params_init(¶ms);
params.transferMode = SPI_MODE_BLOCKING; //SPI_MODE_CALLBACK; //SPI_MODE_BLOCKING;
params.frameFormat = SPI_POL1_PHA1;
params.bitRate = 10000000;
handle = SPI_open(Board_Dataflash_SPI, ¶ms);
Thanks.