The uart problem

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderator: RoccoMarco

Post Reply
pigeon0411
Posts: 7
Joined: Thu Mar 19, 2015 11:01 am

The uart problem

Post by pigeon0411 »

I run my code without chibios on the board,the uart1 do wrok well.
But I run the chibios demo,the uart1 cant transmit any dada.

The mcu is stm32f103re on the board.

help me ,please.
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: The uart problem

Post by Giovanni »

Which kind of board? if it is not one of the supported boards then you need to create new board files for it.

Giovanni
pigeon0411
Posts: 7
Joined: Thu Mar 19, 2015 11:01 am

Re: The uart problem

Post by pigeon0411 »

I use ARMCM3-STM32F103 in "demos",and change the target from STM32F103RB to STM32F103RE,
Just test the UART1,but it didnt work.
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: The uart problem

Post by Giovanni »

Giovanni wrote:Which kind of board? if it is not one of the supported boards then you need to create new board files for it.


Please focus on the question. The demo is done for a specific board, are you using the same board?

Giovanni
pigeon0411
Posts: 7
Joined: Thu Mar 19, 2015 11:01 am

Re: The uart problem

Post by pigeon0411 »

Giovanni wrote:
Giovanni wrote:Which kind of board? if it is not one of the supported boards then you need to create new board files for it.


Please focus on the question. The demo is done for a specific board, are you using the same board?

Giovanni


No,its not.

Are there some Guidance documents about modify code/config for specical board?

I am using board named Evvgc v1.3.

board schematic:


schematic
schematic
vpre1.3ce2_页面_1.jpg (267.14 KiB) Viewed 2820 times
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: The uart problem

Post by Giovanni »

Hi,

You need to duplicate the board directory of a board that uses the same MCU then modify board.mk and board.h to fit your design. The documentation is inside board.h, basically you need to define clocks and setup of GPIOs, the meaning of the numbers you will see there are found in the GPIO section of the STM32 Reference Manual.

After creating your board files modify the Makefile to point to your new board.mk file.

Giovanni
Post Reply