Page 1 of 1

The uart problem

Posted: Tue Apr 21, 2015 10:46 am
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.

Re: The uart problem

Posted: Tue Apr 21, 2015 11:12 am
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

Re: The uart problem

Posted: Wed Apr 22, 2015 2:59 am
by pigeon0411
I use ARMCM3-STM32F103 in "demos",and change the target from STM32F103RB to STM32F103RE,
Just test the UART1,but it didnt work.

Re: The uart problem

Posted: Wed Apr 22, 2015 8:25 am
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

Re: The uart problem

Posted: Wed Apr 22, 2015 9:22 am
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 2823 times

Re: The uart problem

Posted: Wed Apr 22, 2015 12:37 pm
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