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.

SCI overflow

Hi,

My customer is using TMS470MF6607.

At present, they have a trouble on Serial Communication. Their condition is the below.

* TMS470M recieves 20-30kbytes data on SCI I/F each communication.

* The receive routine starts every 100ms by timer interrupt, and then that routine works within 10ms maximum.

* Next receiving never start until next timer interrupt(every 100ms).

* Customer can't use the interrupt routine for SCI.

Symptom:

The receive buffer of SCI is only 8bytes. So the overflow error happens, and customer can't receive the data.


If you have any idea solving the above trouble, please advise me.

Best regards,

Michi

  • Hi Michi,

         Thanks for your post.  Would you please help to share the CCS project with us?  Then we can find out where the problem lies. 

    Best Regards,
    Shelford

  • Shelford-san,

    Thank you for your reply.

    Unfortunately, our customer is using IAR, not CCS.

    Also I think that the root cause of this trouble is that customer does not use SCI receive interrupt. Because TMS470M on customer's system has two firmware. And, to escape the conflict to other firmware, customer does not use the interrupt of receive data.  In this condition, could you give me some advices?

    I appreciate your support.

    Best regards,

    Michi

  • Michi,

           Sorry for the late reply.  I am still confused with why can't you use the interrupt of the SCI module? Can you share more information with us?  I don't think the SCI interrupt will affect  the proper functioning of the system.

           You know, our TMS470M doesn't support DMA and have limited receive buffer,  so it's unlikely to receive so many dates at a time if you don't use SCI interrupt.  I will recommend your customer to use interrupt and define two buffers in the RAM for large sets of data.  When Buffer 0 is receiving the data,  CPU can deal with Buffer 1 and vice versa.

           If your customer really can't use the SCI interrupt,  then we will try to find another solution according the information that you provide to us. 

    Best Regards,
    Shelford

  • Dear Shelford-san,

    Thank you for your support.

    Good news!

    Our customer just started considering to use SCI interrupt. So if we can offer to our customer the sample code that it is your idea having two buffer solution, it is very helpful for our customer. Could you offer it to me?

    Best regards,

    Michi

  • Hi Michi-san,

           Thanks  for your effort. Would you please post the project then I can do some modification based on their codes?  If it is sensitive, you can send it to my mailbox. Shelford-Zhu@ti.com. Thanks. 

    Best Regards,

    Shelford