cancel
Showing results for 
Search instead for 
Did you mean: 

USART Example code for STM32

ee_prasad
Associate
Posted on June 09, 2010 at 15:30

USART Example code for STM32

3 REPLIES 3
chikos332
Associate II
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.

ee_prasad
Associate
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

Andrew Neil
Evangelist III
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...