AnsweredAssumed Answered

Testing USART1 on STM32F429I-DISCO board

Question asked by qasim.hafiz on Oct 28, 2013
Latest reply on Nov 8, 2013 by qasim.hafiz
Hi All,

I am working on USART1 device for STM32F429I_DISCO board. [I have already tested my serial device (code) on stm32429i_eval1 board.]

I am using following USART setup/pin mapping

unsigned int temp;

/* Enable GPIOA on AHB1 */
ENABLE_PERIPHERAL_CLOCK(AHB1, GPIOA);

/* Select Alternate Function 7 for USART1 pins */
temp = GPIO_READ(A, AFRH);
temp &= (0xFFFFF0FF & 0xFFFFFF0F);
GPIO_WRITE(A, AFRH, (temp | (0x00000700 | 0x00000070)));

/* Select Alternate function for USART1 pins */
temp = GPIO_READ(A, MODER);
temp &= (0xFFCFFFFF & 0xFFF3FFFF);  
GPIO_WRITE(A, MODER, (temp | (0x00200000|  0x00080000)));   

/* Enable Clock for USART1 */
ENABLE_PERIPHERAL_CLOCK(APB2, USART1);


My Questions are
Can we test USART1 on STM32F429I_DISCO board?
If yes, then above mentioned pin mapping is correct?
If yes, then should we use JP4[TX, RX]  pins for this purpose?

Outcomes