Skip to main content
rpoon
Associate II
May 29, 2019
Solved

Reason of delay 200 ms after sd_lld_write function.

  • May 29, 2019
  • 1 reply
  • 787 views

Hello

Is there any specific reason behind putting this delay, if yes than what it is?

I want to manage time in my application so i tried to reduce the delay but in that case I am not able to transmit data properly.

below is the given function

 sd_lld_write(&SD1,CMD2,(uint16_t)(sizeof(CMD2)/sizeof(CMD2[0])));

osalThreadDelayMilliseconds(200);

    This topic has been closed for replies.
    Best answer by Erwan YVIN

    Hello rewatee ,

    it is better to use the Runtime IO component in SPC5Studio

    Best Regards

    Erwan

    1 reply

    Erwan YVIN
    Erwan YVINBest answer
    ST Employee
    June 28, 2019

    Hello rewatee ,

    it is better to use the Runtime IO component in SPC5Studio

    Best Regards

    Erwan

    rpoon
    rpoonAuthor
    Associate II
    July 16, 2019

    Hello Erwan

    I am facing same problem with the Runtime IO component as well. I have set the configuration parameter in Runtime io environment.

    I am using "function ioWrite(int fd, const void *buf, size_t count)" for data transmission.

    can you please provide some sample code?

    Regards

    Rewatee