/var/www/restricted/ssh/stm32/www/stm32circle/ STM CircleOS forum / Can I use both USARTS on Primer2 in a crcleOs Application

Username:     
Password:     
             

Forum
  • Index
  •  » STM32 primer
  •  » Can I use both USARTS on Primer2 in a crcleOs Application

# 1   2010-02-03 12:06:08 Can I use both USARTS on Primer2 in a crcleOs Application

steffen
New member
Registered: 2009-12-29
Posts: 3

Can I use both USARTS on Primer2 in a crcleOs Application

Hello,

I just getting started with STM32 mikrocontroller / Prime2.
The project I want to develop step by step needs two USARTS (one for a GPS module, the other for a compass module).

Is ist possible at all to use two USARTS on the primer?

There is only one connected with the extension connector, isn't it?
Is there another way to connect to the second USART?
Is it possible at all to use two USARTs in a circleOs App? (I read about that one USART ist used by the circleOS itself. If so, is ther a workaround?).

Thanks in advance,

Steffen

Offline

 

# 2   2010-02-04 07:34:17 Can I use both USARTS on Primer2 in a crcleOs Application

yrt
Administrator
From: Grenoble-France
Registered: 2008-06-11
Posts: 520
Website

Re: Can I use both USARTS on Primer2 in a crcleOs Application

Hi Steffen,

Yes, two USART are available on the extension connector :
USART2 on PA2/PA3, signals named Cx_UASRT_Tx/Cx_USART_Rx,
USART1 on PB6/PB7, signals named Cx_I2SCL/Cx_IS2SDA.

For use the second one, you must configure the port by remaping.
(Take a look at the "STM32F103xC/D/E datasheet" and STM32 reference manual on ST website).

The Irda is also connected to USART1 but on PA9/PA10, and it is not managed by CircleOS, it is only available for applications.

So you can use the two USART with your own application.

Yves

Offline

 

  • Index
  •  » STM32 primer
  •  » Can I use both USARTS on Primer2 in a crcleOs Application

Board footer