Skip to main content
ee_prasad
Associate
June 9, 2010
Question

USART Example code for STM32

  • June 9, 2010
  • 3 replies
  • 971 views
Posted on June 09, 2010 at 15:30

USART Example code for STM32

    This topic has been closed for replies.

    3 replies

    chikos332
    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 13:54

    Hi,

    download the ST FWLib

    http://www.st.com/stonline/products/support/micro/files/stm32f10x_stdperiph_lib.zip

    and go to ''STM32F10x_StdPeriph_Lib_V3.3.0\Project\STM32F10x_StdPeriph_Examples\USART\HyperTerminal_Interrupt''

    to find how to configure the USART to communicate with PC

    Use also the example in ''STM32F10x_StdPeriph_Lib_V3.3.0\Project\STM32F10x_StdPeriph_Examples\ADC\3ADCs_DMA'' to know how to use ADC in DMA mode...

    It should be enough for building a functional application.

    Cheers.

    Andrew Neil
    Super User
    May 17, 2011
    Posted on May 17, 2011 at 13:54

    ''i am still stuck on this with errors''

    Fixing build errors is an integral part of the software development process!

    Read each error message literally - it tells you what the problem is and, thus, what needs to be done to fix it;

    eg, if it says, ''x is

    un

    defined'' then the solution is to define x!

    Also remember that one error early in the source code can easily lead to many consequent errors in the rest of the file;

    in the example above, because x was undefined, everything that attempts to use x will also cause an error!

    Therefore, you need to start by fixingthe first error in the file, and work on from there...

    A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
    ee_prasad
    ee_prasadAuthor
    Associate
    May 17, 2011
    Posted on May 17, 2011 at 13:54

    Hello, thanks for your guide,

    but i am still stuck on this with errors,

    I followed all things that includes in help file and IAR 5.3 is still getting errors..

    if you have enough time.. please send working program ...

    please help me. I have Olimex STM32-103STK http://www.olimex.com/dev/stm32-103stk.html

    Best Regards

    Prasad