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.

RTFS sata example could not mount sata

Other Parts Discussed in Thread: SYSBIOS

Dear eyeryone:

I use the RTFS system to read and write SATA on the OMAP-L138 board. And I use bios_5_41_13_42, rtfs_1_10_02_32, pspdrivers_01_30_01.

I just use the example in ti\rtfs_1_10_02_32\packages\ti\rtfs\examples\sata\bios5\evm6748\ccs4. And I use mini sata.

The pure example project could secceed. But after I construct a new project based on it, which put the whole example program in the main task, and call the writereadData() function in other task. The result is the whole example program in the main task ran successfully, but it run fly in writereadData() of another task. Actually it stuck in the rtfs library function like  fopen(), open(), write(), read() etc.

 I consider maybe the sata did not mount on so I could not access the disk path, like rtfs:A:\\TopLevel\\dma\\indir.txt. So what's the actual problem?

I am very confused. Please help me. Thanks a lot.

Regards 

Samantha

  • Hi,

    We are working on this and will update shortly.

    Thanks & regards,
    Sivaraj K
  • Hi,

    Thanks for your post.

    I do think, there are known limitations on the SATA driver and the driver was written only to support 28 bit LBA; as such the maximum disk size is limited to 128GB.

    Also, as per the PSP drivers team that the SATA controller on the evmOMAPL138 supports up to 32 bit LBA.

    Kindly validate whether the above limitation would impact in not mounting SATA on RTFS sata example.

    Please refer the below e2e threads and see whether it helps out your issue

    https://e2e.ti.com/support/embedded/tirtos/f/355/t/176519#pi317008=2

    https://e2e.ti.com/support/embedded/tirtos/f/355/p/310194/1079986#1079986

    I would recommend you to place your request to TI-RTOS forum which would be the better choice.

    Thanks & regards,

    Sivaraj K

    -------------------------------------------------------------------------------------------------------

    Please click the Verify Answer button on this post if it answers your question

    -------------------------------------------------------------------------------------------------------

  • Dear Samantha,
    Sounds like you have not modified the code correctly.
    Why do you want to create a new project separately ?
    Please make sure that you are having the correct CCS project settings.
    Attach you project here and let me try.
  • Dear Titus S

    Thanks for your reply.

    I do need to use other task to accomplish my target. That is, I need both of them.This is my project.

    Best wishes!

    Regards

    Samantha

    sata_task.rar

  • Dear Sivaraj K,

    Thanks for your reply.

    I tried following your suggestion, but the program still ran fly as before and  it was  stuck in the rtfs library function like  fopen(), open(), write(), read() etc. Actually, base on the rtfs sata example, as long as I use a new task to write sata it was stuck. So what's the reason?

    Besides, do you have other way to read/write sata base on DSP/BIOS or SYS/BIOS? In fact, this is my primary purpose. Or do you have alike example?

    I am looking forward to your reply. Thanks a lot.

    Best wishes!

    Regards

    Samantha

  • Dear Titus S,

    My project "sata_task" need the external GPIO interrupt, so it may be troublesome to debug it. Or could please tell me the programming problems that I use task to write sata. I tried many times but there was the same error as I mentioned before. Please help me. 

    I am looking forward to your reply. Thanks a lot.

    Best wishes!

    Regards

    Samantha

  • Dear Samantha,
    Sorry, I don't have time to work with your project.
    I can suggest you to understand the code flow in our actual TI example then modify the code in SYSBIOS format (like executing code as tasks)
    So, please make sure that you are following and executing the code in correct flow as actual example is doing.
    You may have to priority for the tasks to follow the correct executions to avoid the write problem.