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.
The uart problem
Moderator: RoccoMarco
- 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
Which kind of board? if it is not one of the supported boards then you need to create new board files for it.
Giovanni
Giovanni
-
pigeon0411
- Posts: 7
- Joined: Thu Mar 19, 2015 11:01 am
Re: The uart problem
I use ARMCM3-STM32F103 in "demos",and change the target from STM32F103RB to STM32F103RE,
Just test the UART1,but it didnt work.
Just test the UART1,but it didnt work.
- 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
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
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:
- 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
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
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