Skip to main content
geoff2399
Associate III
July 5, 2010
Question

USART1 Troubles

  • July 5, 2010
  • 4 replies
  • 1034 views
Posted on July 05, 2010 at 05:47

USART1 Troubles

    This topic has been closed for replies.

    4 replies

    geoff2399
    geoff2399Author
    Associate III
    May 17, 2011
    Posted on May 17, 2011 at 13:57

    Actually, now I have had a chance to connect a CRO to it, I am getting nothing via GPIO at all. Seems my .ld and .s is wrong for the toolchain, any hints on how to use ST Lib 3.3 with codesourcery?

    domen23
    Associate II
    May 17, 2011
    Posted on May 17, 2011 at 13:57

    Just to confirm my assumption... the code works with other usarts?

    i should be volatile, or compiler can optimise out the delay loop.

    geoff2399
    geoff2399Author
    Associate III
    May 17, 2011
    Posted on May 17, 2011 at 13:57

    Ok, got it working on USART3 but not 1 or 2, any thoughts?

    geoff2399
    geoff2399Author
    Associate III
    May 17, 2011
    Posted on May 17, 2011 at 13:57

    Found the problem, was iterating an array with sizeof, not the number of elements... duh! *face palm*