Page 1 of 1

[stm32f3]Selecting uart pin

Posted: Wed Jan 14, 2015 9:22 pm
by lesto
Hi,
just an easy question, to choose from possible pin to use for usartX, i just have to activate their alternative mode them with:

Code: Select all

palSetPadMode(GPIOC, 4, PAL_MODE_ALTERNATE(7)); // used function : USART1_TX
palSetPadMode(GPIOC, 5, PAL_MODE_ALTERNATE(7)); // used function : USART1_RX


so does this also mean activanting altenate mode on two or more pair of TX/RX (of the same uart) use them all as uart?

Re: [stm32f3]Selecting uart pin

Posted: Wed Jan 14, 2015 9:33 pm
by Giovanni
Hi,

Note that the alternate modes must be selected only for a single pair of pins, you must not map the UART (or any other peripherals) to more than one pin so verify the defaults in board.h.

Giovanni

Re: [stm32f3]Selecting uart pin

Posted: Sun Jan 18, 2015 5:05 pm
by lesto
got this. thank you