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.

Problem with Blk_Read of blkmedia driver

Other Parts Discussed in Thread: TMS320C6748

Hi ,

i am using TMS320C6748 processor with PSP driver version pspdrivers_01_30_01 and DSP/BIOS version bios_5_41_02_14. I am facing strange problem while using Blk_Read call that frequently it stalls my code and in disassembly window it stops at UTL_Halt. Sometimes it works continuously for longer time(multiple Blk_read calls) without any problem.  I attached the Disassembly window for reference

Can anybody help me to find out the problem?

Thanks & regards,

Chandra Shekhar Mishra

 

  • Hi,

    I debugged and noticed that my code gets hang inside blkmedia.c line no 1813..following is the code

     

     

     

    /* Wait for transfer to be completed */

     

     

    if  (SEM_pend(pDevice->asyncSema, SYS_FOREVER) != TRUE)

    {

    BLKMED_ERR_DEBUG(("\r\nBLK_MED: RAsyncSema take fail"));

    }

    It never returns from SEM_pend.

    Thanks & Regards

  • Hi Chandrashekhar,

    Since the block media is not at all able to come out of the SEM_pend(), It looks like you are not at all receiving any interrupt for the read operation.

    Can you put breakpoint in the AhciPortIntr() of the file Ahci.c, to observe the occurence of the interrupt?

    How often is this happening?

    Are you using the storage media in raw mode or in RTFS mode?

    What is the size of the data/file which you are trying to read? 

    Is this issue there while writing the data?

    Thanks and Regards,

    Sandeep K