cancel
Showing results for 
Search instead for 
Did you mean: 

USART2 problem

yogee00
Associate II
Posted on May 02, 2013 at 19:16

The original post was too long to process during our migration. Please click on the attachment to read the original post.
16 REPLIES 16
Posted on May 02, 2013 at 19:21

Is there are question in there somewhere?

I'd recommend front testing for TXE, not back testing for TC which is woefully inefficient, and doesn't protect the data register properly.
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
yogee00
Associate II
Posted on May 02, 2013 at 19:30

thank you foe ur reply ...

I was truing to use both the USART2 and USART3

but I couldnt ...

I dont know where it is wrong .

can u please help me ???

yogee00
Associate II
Posted on May 02, 2013 at 19:37

this program is working fine ...

but not the other program ...:(

Posted on May 02, 2013 at 19:43

Can't use it how? Have you put a scope on it? Does USART1 work on a terminal?

Do you have some odd crystal on the board? Is this reflected in the HSE_VALUE defined value?

Suggest you start with a simple test of continuously sending a character, and confirming that on a scope for timing.

Double post [DEAD LINK /public/STe2ecommunities/mcu/Lists/STM32Discovery/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/STM32Discovery/USART2%20problem%206196&FolderCTID=0x01200200770978C69A1141439FE559EB459D75800084C20D8867EAD444A5987D47BE638E0F&TopicsView=https://my.st.com/public/STe2ecommunities/mcu/Lists/STM32Discovery/AllItems.aspx&currentviews=1]Here

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
yogee00
Associate II
Posted on May 02, 2013 at 19:56

thank you very much :)

yogee00
Associate II
Posted on May 02, 2013 at 22:53

I wanted to write a program for gsm interface to stm32 discovery...

controlling home appliances by SMS , can you suggest me how can I do it ..

 I want to use UART1, UART2, UART3 AS RX/TX serial ports.

5 leds connected to stm board should be controlled by text msg.

Posted on May 03, 2013 at 00:56

I wanted to write a program for gsm interface to stm32 discovery... controlling home appliances by SMS , can you suggest me how can I do it ..

You'll have to become familiar with the AT command set of your modem. Sending commands, interpreting responses, etc. This is somewhat beyond the scope of my forum participation. You should be able to do it with linear flowing code, or a state machine type implementation. It is important to wait for the modem to respond, and have command/network appropriate timeout and recovery handling.
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
yogee00
Associate II
Posted on May 03, 2013 at 11:07

okay ....

I know all the AT commands , and their output also .

here is a pdf by st.com ...

I couldnt find header files , where I can find them ???

thank you .

________________

Attachments :

gsm-stm.pdf : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HzZl&d=%2Fa%2F0X0000000bNl%2FgP1ZgMpvYHboZvRB3s4tjoM3ggf6H9idUxF27T_XyiI&asPdf=false
yogee00
Associate II
Posted on May 03, 2013 at 11:13

I am planing to use GSM interface library for surveillance applications

 

by st.com, I got only user manual.

where can I find other files like..

Application layer (gsm_appli.c)

SMS library (sms.c,atcommands.h)

STM32 USART library (stm32f10x_usart.c)

GSM stack (GSM module)

The files are organized in the following directory structure:

Application: (user app

lication layer files)

–main.c

– gsm_appli.c

– stm32f10x_it.c

– stm32f10x_vector.c

– gsm_appli.h

– stm32f10x_conf.h

– stm32f10x_it.h

SMS library

–sms.c

–sms.h

– atcommands.h

Library: the STM3210E-EVAL library

If u have any idea where I can get these files please inform me

thank you :)

thank you.