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.

RTOS/TDA2HV: Need the help for SPI

Part Number: TDA2HV


Tool/software: TI-RTOS

Hi Prasad,

We have used utility fuction as per your suggession,but Utils_dmaInit() is failing with error "UTILS: DMA: Utils_dmaInit() for instance 0 ... FAILED (-128)".

We find out  the reson for the failure and it is happening due to we have commented out below two function.

/*retVal += BspUtils_memInit();

   if (BSP_SOK != retVal)

   {

       GT_0trace(BspAppTrace, GT_ERR, "Error: App MEM Utils Init failed!!\r\n");

   }

   retVal += BspUtils_prfInit();

   if (BSP_SOK != retVal)

   {

       GT_0trace(BspAppTrace, GT_ERR, "Error: App PRF Utils Init failed!!\r\n");

   }*/

If we tried to uncommented this fuction then during code compilation we are getting below error

 program will not fit into available memory.  run placement with alignment

  fails for section "GROUP_1" size 0xf816696 .  Available memory ranges:

  IPU1_0_DATA_MEM   size: 0xb00000     unused: 0x70ceaa     max hole: 0x70cea8

So, please suggest us the possible solution to resolve this compilation error.

We have attached the source code and debug log and comiplation error snapshot for your referance.

Thanks,

Parth Modi

4885.mcspiSample_io.c