energia / Energia

Fork of Arduino for the Texas Instruments LaunchPad's
http://energia.nu
Other
795 stars 671 forks source link

Serial communication slow with release 13 #467

Closed RobertCarlRice closed 9 years ago

RobertCarlRice commented 9 years ago

Release 13 introduces pauses in the hardware serial communications for characters sent from my EX-TM4C1294XL Tiva C Series Connected Launchpad to my Mac desktop host application causing my app to generate timeout messages.

I have reverted to using release 12 without much analysis. There could be an unrelated problem having this effect, e.g., too much time being spent in interrupt processing.

spirilis commented 9 years ago

What else is your sketch doing, or what other libraries are involved/active? (curious if something else is impacting the serial I/O)

RobertCarlRice commented 9 years ago

Hi Eric,

Possibly a conflict with timer interrupts. Do they change with 13?

My sketch is using timer interrupts zero through 3.

Thanks, Bob Rice

On Sep 15, 2014, at 10:16 PM, Eric notifications@github.com wrote:

What else is your sketch doing, or what other libraries are involved/active? (curious if something else is impacting the serial I/O)

— Reply to this email directly or view it on GitHub https://github.com/energia/Energia/issues/467#issuecomment-55686540.

spirilis commented 9 years ago

Not that I know of, but as I replied in one of your other posts, issue #471 could be related--GCC is being run without any optimization enabled (and from past experience & reading I have seen that GCC is really not suited to be run without optimization, so all bets are off).

robertinant commented 9 years ago

as @spirilis mentioned, this is probably due to optimization turned off. I will send you a patch to see if it solves it. If it does then we can close most of the bugs reported around this blaming optimization being turned off.

rei-vilo commented 9 years ago

as @spirilis mentioned, this is probably due to optimization turned off. I will send you a patch to see if it solves it. If it does then we can close most of the bugs reported around this blaming optimization being turned off.

If confirmed, duplicate with #471

robertinant commented 9 years ago

@RobertCarlRice, can you please try the .jar file I posted here: http://forum.43oh.com/topic/5876-energia-0101e0013-how-turn-on-optimization-for-tivacc3200/?p=51199

Instructions on where to put it are in the thread. Would be great if you could report back here to let us know if it solved your problem..

robertinant commented 9 years ago

This has been fixed..