/var/www/restricted/ssh/stm32/www/stm32circle/ STM CircleOS forum / USART2 - UART2 PLEAS HELP

Username:     
Password:     
             

Forum

# 1   2013-12-05 22:48:19 USART2 - UART2 PLEAS HELP

fscsi81
Member
Registered: 2013-11-14
Posts: 15

USART2 - UART2 PLEAS HELP

Hello

Can I ask for a code to UART2 (additional connector in EvoPrimer) under OS 4.61 Circle. I'm trying to write but I do not go. An example of acting on STM32f103G. I need him to finish the application.

A simplest code to send and receive characters during on USART2.

I also tried to take the code examples but I do not quit.
Please help

Offline

 

# 2   2013-12-06 10:35:59 USART2 - UART2 PLEAS HELP

Etienne.C
Administrator
Registered: 2012-12-04
Posts: 71

Re: USART2 - UART2 PLEAS HELP

Hello,

Did read and try the example provided in the project file:
http://www.stm32circle.com/projects/project.php?id=133.

Best regards,

Offline

 

# 3   2013-12-06 11:18:13 USART2 - UART2 PLEAS HELP

fscsi81
Member
Registered: 2013-11-14
Posts: 15

Re: USART2 - UART2 PLEAS HELP

Building C:\Users\ScSi\Desktop\Serial_USART_2\Application.c
Running: ARM Compiler
"C:\Raisonance\Ride\arm-gcc\bin\arm-none-eabi-gcc.exe" -MD -MT  "C:\Users\ScSi\Desktop\Serial_USART_2\objdebug\Application.o" -D_STM32F103VGT6_EVO_ -D_STM3x_ -D_STM32x_ -mthumb  -mcpu=cortex-m3  "C:\Users\ScSi\Desktop\Serial_USART_2\Application.c" -o "C:\Users\ScSi\Desktop\Serial_USART_2\objdebug\Application.o" -I "." -I "C:\Raisonance\Ride\Lib\ARM\CircleOS" -I "C:\Personal\Electronics\STM32\STM32EvoPrimer\STMLib" -c    -fsigned-char -DOPEN4  -g         -ffunction-sections         -mlittle-endian
In file included from C:\Raisonance\Ride\Lib\ARM\CircleOS/circle_api.h:54:0, 
from C:\Users\ScSi\Desktop\Serial_USART_2\Application.c:12: 
C:\Raisonance\Ride\Lib\ARM\CircleOS/circle_types.h:57:23: error: redeclaration of enumerator 'FALSE' 
C:\Users\ScSi\Desktop\Serial_USART_2\/stm32f10x.h:345:27: note: previous definition of 'FALSE' was here 
C:\Raisonance\Ride\Lib\ARM\CircleOS/circle_types.h:57:33: error: redeclaration of enumerator 'TRUE' 
C:\Users\ScSi\Desktop\Serial_USART_2\/stm32f10x.h:345:37: note: previous definition of 'TRUE' was here 
C:\Raisonance\Ride\Lib\ARM\CircleOS/circle_types.h:57:41: error: conflicting types for 'bool' 
C:\Users\ScSi\Desktop\Serial_USART_2\/stm32f10x.h:345:45: note: previous declaration of 'bool' was here 
  Error Code: 0x1

Offline

 

# 4   2013-12-12 09:52:22 USART2 - UART2 PLEAS HELP

Etienne.C
Administrator
Registered: 2012-12-04
Posts: 71

Re: USART2 - UART2 PLEAS HELP

Hello,

The STM library needed to be updated!
We made the different configuration and now, you shouldn't have problems to use this example.
Please try this new version:
http://www.stm32circle.com/projects/project.php?id=133.

Best regards,

Offline

 

Board footer